【转】javaScript实现URL参数解析
文章目录
比较常用的url解析的代码,正则表达式检索实现匹配参数,(边学习边总结) 例如:解析url中的参数———–?id=12345&a=b 返回值:Object {id:12345, a:b}
1 | function urlParse() { |
来源: https://blog.csdn.net/weixin_38483133/article/details/85200619
比较常用的url解析的代码,正则表达式检索实现匹配参数,(边学习边总结) 例如:解析url中的参数———–?id=12345&a=b 返回值:Object {id:12345, a:b}
1 | function urlParse() { |
来源: https://blog.csdn.net/weixin_38483133/article/details/85200619