07 2015 档案

摘要:query中绑定事件有三种方法:以click事件为例(1)target.click(function(){});(2)target.bind("click",function(){});(3)target.live("click",function(){});第一种方法很好理解,其实就和普通JS的用... 阅读全文

posted @ 2015-07-30 11:59 web369 阅读(203) 评论(0) 推荐(0)

摘要:in 运算符判断对象是否拥有某一属性只要对象拥有该属性,就会返回true,否则falsevar point = { x:1, y:1 };alert( 'x' in point ); //truevar arr = ['one', 'two'];alert( 'kang' in arr ); //f... 阅读全文

posted @ 2015-07-01 10:23 web369 阅读(190) 评论(0) 推荐(0)

导航