摘要: $("input:text").bind("input propertychange",function(){ console.log($(this).val().length);//打印输入框字符长度 }); 阅读全文
posted @ 2018-10-19 17:33 Tutao1995 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 1.JavaScript高级程序设计》第二版中,写到:“超时调用的代码都是在全局作用域中执行的,因此函数中this的值在非严格模式下指向window对象,在严格模式下是undefined”。 2.我们说,setTimeout中有两个this。第一,调用环境下的this,称之为第一个this;第二,把 阅读全文
posted @ 2018-10-19 16:00 Tutao1995 阅读(1654) 评论(0) 推荐(0) 编辑
摘要: <div id="mapcon" style="width:560px;height:300px"></div> $(function(){ $("#mapcon").bind("DOMNodeInserted",function(e){ var tempCount = 0; $("#mapcon 阅读全文
posted @ 2018-10-19 15:09 Tutao1995 阅读(2579) 评论(0) 推荐(0) 编辑