日期:2014-05-16  浏览次数:20366 次

window.location.herf如何带参数传递
下面这两种形式都没有反应,应该如何写?
window.location.herf="abc.jsp?text1="+text1+"&text2="+text2"+"&text3="+text3;
window.location.herf("abc.jsp?text1="+text1+"&text2="+text2+"&text3="+text3);


------解决方案--------------------
window.location.herf="abc.jsp?text1="+text1+"&text2="+text2"+"&text3="+text3;
=》
window.location.href="abc.jsp?text1="+text1+"&text2="+text2"+"&text3="+text3;
------解决方案--------------------
herf拼写错误