标签云

微信群

扫码加入我们

WeChat QR Code


Do you need to make a clone of the element as well? Or are you just trying to clone the variables/functions that you've added to the element?

2018年10月24日53分34秒

This question discusses cloning in JQuery, and the difference between a deep copy and a shallow copy. The accepted answer is that given by John Resig, who knows a thing or two about JQuery!

2018年10月23日53分34秒

It is frustrating that many years later, there is still no way to report or undo questions falsely marked as duplicate. Who watches the watchmen?

2018年10月23日53分34秒

NexiiMalthus To be fair John Resig's (!) answer sort of makes that question a more appropriate primary question. Surprised to see someone still putting value on Stack Overflow :)

2018年10月23日53分34秒

I believe your answer to be, by far, the best solution. Accepted answer is just a referral to another question which is about JavaScript objects, not specifically HTML elements and their data attributes. +1

2018年10月23日53分34秒