![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
url
唐小亭
开心就好哈!
展开
-
获取url中指定参数
1.方法一:function getQueryString(name) { var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i'); var r = window.location.search.substr(1).match(reg); if (r != null) { ...原创 2018-07-12 10:08:34 · 705 阅读 · 0 评论 -
H5页面获取url参数
1.url为:test.html?id=1064&td_channelid=3&type=3&from=groupmessageparseUrl: function() { var searchHref = window.location.search.replace('?', ''); var params = searchHref.split('&...原创 2018-08-06 15:21:41 · 12600 阅读 · 0 评论