摘要:
1.Zepto对象不能自定义事件 例如执行:$({}).bind('cust',function(){}); 结果:TypeError:Object#hasnomethod'addEventListener' 解决办法是创建一个脱离文档流的节点作为事件对象: 例如:$('').bind('cust' 阅读全文
posted @ 2014-02-16 23:38
bjhhh
阅读(776)
评论(0)
推荐(0)
|
摘要:
1.Zepto对象不能自定义事件 例如执行:$({}).bind('cust',function(){}); 结果:TypeError:Object#hasnomethod'addEventListener' 解决办法是创建一个脱离文档流的节点作为事件对象: 例如:$('').bind('cust' 阅读全文
posted @ 2014-02-16 23:38
bjhhh
阅读(776)
评论(0)
推荐(0)
|