通过一个按钮,保持住session,方法就是不停的发
- 作者:zhaozj
- 发表时间:2020-12-23 10:57
- 来源:未知
<script>function test1() {timer=setInterval("test()",30);}function test() {alert("hahahah");var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");xmlhttp.open("POST","http://210.77.178.23/cgi-bin/market/marketplace/jsp/blank_nouse.jsp",false);xmlhttp.send();}</script>
<input type=button onClick="test1()" name=chk1 value="暂时离开">