摘要: 直接在ready中调用其他方法,会提示缺少对象的错误,解决方法如下:方法1.应用jQuery的扩展可以解决这个问题。$(document).ready(function(){$.extend({ show:function(){ alert("ready"); }});setInterval("show()",3000);});方法2.指定定时执行的函数时不要使用引号和括号。$(function(){function show(){ alert("ready");}setInterval(show,3000);// 注意函数名没有引号 阅读全文
posted @ 2013-04-11 22:45 chrp99 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 注册时选择阅读条款<!DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML4.01Transitional//EN"><html><head><title>demo2.html</title><metahttp-equiv="keywords"content="keyword1,keyword2,keyword3"><metahttp-equiv="description"content="thisismypage 阅读全文
posted @ 2013-04-11 08:07 chrp99 阅读(218) 评论(0) 推荐(0) 编辑