用js通过url传参把数据从一个页面传到另一个页面
(编辑:jimmy 日期: 2025/12/28 浏览:3 次 )
用js把数据从一个页面传到另一个页面的层里"s"></div>
<script>
document.getElementById("s").innerHTML=window.location.split('"htmlcode">
<div id="a"></div>
$("#a").load("b.html");
//或者
$.get("b.html",function(data){
$("#a").html(data);
})
还有POST方法,这里就不一一罗列了
下一篇:用jquery实现动画跳到顶部和底部(这个比较简单)