07 2015 档案

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

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

(转)JavaScript: in, hasOwnProperty, delete, for/in
摘要: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 阅读(181) 评论(0) 推荐(0) 编辑

导航

< 2025年4月 >
30 31 1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 1 2 3
4 5 6 7 8 9 10
点击右上角即可分享
微信分享提示