我在我的页面中有以下内容。简单的JavaScript不工作 - jquery
$(document).ready(function() {
function setTheTimeout(){
var t=setTimeout("alertMsg()",3000);
}
function alertMsg(){
alert("Hello");
}
setTheTimeout();
});
我在Firebug alertMsg()没有定义错误?
你并不需要分配“T”如果你永远不会使用它。 – 2012-02-06 21:12:34