Jquery中使用setInterval和setTimeout的方法
方法1. 应用jQuery的扩展可以解决这个问题。 复制代码 代码如下:$(document).ready(function(){$.extend({ show:function(){ alert("ready"); }});setInterval("show()",3000);});方法2. 指定定时执行的函数时不要使用引号和括号。 复制代码 代码如下:$(function(){function show(){ alert("ready");}setIn...