
正文
两个html之间进行传值,如何进行?
提示:扫一扫查出行【扫一扫了解最新限行尾号】
复制提示
function turnto(){
var getval=document.getElementById("text").value;
turngetval=escape(getval);
document.location.href="search.html?a="+turngetval;
}
上面这段代码的意思是从本html中获取input中输入的内容,然后变url的值,实现跳转到第二个页面
--------------------- 本文来自 less_cold 的CSDN 博客 ,全文地址请点击:https://blog.csdn.net/less_cold/article/details/52710343?utm_source=copy








