html之间传值,如果有中文会出现乱码处理办法

var searchUrl =window.location.href;
var searchData =searchUrl.split("=");
var  keyword =decodeURI(searchData[1]);//获取需要的参数
getInfo(keyword);

猜你喜欢

转载自blog.csdn.net/woniudelvtu/article/details/82965609