当前第2页 返回上一页

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | $( function (){
function timeToReturn(){
window.location.href = "http://localhost:8080/zhongCourt/" ;
}
var nowtime = Date.parse( new Date());
var timeend = Date.parse( new Date());
$( "body" ).click( function (){
nowtime = Date.parse( new Date());
console.log( "nowtime" + nowtime);
});
function check(){
timeend = Date.parse( new Date());
console.log( "check" );
if ((timeend - nowtime) > 300000){
timeToReturn();
}
setTimeout(check,10000);
}
setTimeout(check,10000);
})
|
本文来自 js教程 栏目,欢迎学习!
以上就是jQuery中$(function())的作用的详细内容,更多文章请关注木庄网络博客!
返回前面的内容
相关阅读 >>
jQuery判断是否为ie浏览器的方法
通过jQuery怎么获取数据库的内容
jQuery如何获取class的值
jQuery怎么删除select中的选项
介绍几款引人注目的html5/jQuery动画插件详情
jQuery 怎么让a不跳转
jQuery如何判断某元素是否是数组元素
jQuery如何进行字母大小写转换?
jQuery 如何判断iframe是否加载完成
jQuery怎么选择以什么结尾的元素
更多相关阅读请进入《jQuery》频道 >>
人民邮电出版社
本书对 Vue.js 3 技术细节的分析非常可靠,对于需要深入理解 Vue.js 3 的用户会有很大的帮助。——尤雨溪,Vue.js作者
转载请注明出处:木庄网络博客 » jQuery中$(function())的作用