时间:2021-07-01 10:21:17 帮助过:16人阅读
window.location.href="./page2.html?content="+encodeURI(encodeURI(userText))+"&name="+encodeURI(encodeURI(name));
var rf = document.referrer; //获取url参数 function getQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = window.location.search.substr(1).match(reg); if (r != null) return unescape(r[2]); return null; } var name = decodeURI(getQueryString('name')); var content = decodeURI(getQueryString('content'));
我的个人博客:http://blog.caicongyang.com ;
我的个人网站:http://www.caicongyang.com ;
我的CSDN博客地址: