猿问
获取url 参数
泛舟湖上清波郎朗
浏览 347
回答 1
1回答
森林海
感觉你这问题问的不太合格啊。你是要获取这个departmentIds的值吗?建议重新编辑下。直接贴代码更好些。location.search.match(/departmentIds=([^&]*)\b/g)// ["departmentIds=10046", "departmentIds=10046"]// 或者直接用location.href
0
0
0
随时随地看视频
慕课网APP
相关分类
JavaScript
我要回答