js获取url参数值以下函数可以获取url任意参数的值:function getParams(key){ var url = location.search.replace(^?,'').split('&am2023-02-21JavaScript130