js 获取转换网址中文参数

mac2022-06-30  20

var search = decodeURI(location.search).substr(1); console.log(search);

decodeURI 方法返回一个已编码的统一资源标识符 (URI) 的非编码形式。decodeURI(URIstring)必要的 URIstring 参数代表一个已编码 URI 的值。

转载于:https://www.cnblogs.com/init-007/p/11556274.html

相关资源:JavaScript获取链接url参数并生成对象
最新回复(0)