开发者

dojo clone event handlers

I'm using dojo.clone(obj) for clone DOM node, but i don't know how clone even开发者_如何学运维t handlers. does anybody know how do this?


If obj is a DOM node, it just does obj.cloneNode(true). It makes no specific attempts to clone events. So, you are at the will of whatever events obj.cloneNode(true) clones, which has been answered here.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜