url = (url.match(/^([^#]+)/)||[])[1];
url 是取的form中的action,如果form中的action不存在,则去取window.location.href
这段正则是匹配什么?
(url.match(正则)||[])[1]
url = (url.match(/^([^#]+)/)||[])[1];
url 是取的form中的action,如果form中的action不存在,则去取window.location.href
这段正则是匹配什么?
(url.match(正则)||[])[1]
富国沪深
森栏
随时随地看视频慕课网APP
相关分类