js从url截取参数(简写)

var id = window.location.search.split("=")[1];

 

posted @ 2020-06-09 11:23  卧虎  阅读(113)  评论(0编辑  收藏  举报