摘要: function closewin(){ self.opener=null; self.close(); } function clock(){ i=i-1 // document.title="本窗口将在"+i+"秒后自动关闭!"; $('.num').html(+i+"秒后自动关闭!"); if 阅读全文
posted @ 2017-09-21 15:01 永往 阅读(190) 评论(0) 推荐(0) 编辑
摘要: //要跳转界面 api.openWin({ name: 'PayOrder', url: 'PayOrder.html?id=2', pageParam:{name:pr} }); //跳转后的界面 var url = location.search; //获取url中"?"符后的字串 var th 阅读全文
posted @ 2017-09-21 13:53 永往 阅读(3075) 评论(0) 推荐(0) 编辑
摘要: window.onpageshow=function(e){ var a=e||window.event; alert(a.persisted); if(a.persisted){ //alert("页面读取了缓存") } } 阅读全文
posted @ 2017-09-21 13:43 永往 阅读(845) 评论(0) 推荐(0) 编辑
摘要: location是javascript里边管理地址栏的内置对象,比如location.href就管理页面的url,用location.href=url就可以直接将页面重定向url。而location.hash则可以用来获取或设置页面的标签值。比如http://domain/#admin的locati 阅读全文
posted @ 2017-09-21 13:39 永往 阅读(1841) 评论(0) 推荐(0) 编辑