<!DOCTYPE html>
<html>
<head>
<script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.js">
</script>
<body>
<ul>
<li>Glen</li>
<li>Tane</li>
<li>John</li>
</ul>
<button>hit</button>
<script>
$("button").click(function(){
var jet=$("ul li").length;
})
</script>
</body>
How to use the parameters obtained by jet on another page?
伊谢尔伦2017-06-12 09:34:16
1、本地储存:localstorage/sessionstorage
2、cookie
3、url传值
4、如果两个页面是父子关系,父窗口打开子窗口,子窗口可以通过window.opener指向父窗口
淡淡烟草味2017-06-12 09:34:16
1. Use local storage
2. Use cookies
3. Save jet as a parameter in the url, and get the jet parameters on another page