我有以下jQuery代码: var next = $(this).nextnext.children(':first-child').clone(true).appendTo($(this)); });
如您所见,代码正在克隆问题是元素上的事件( jQuery .hide()和.show() )没有被触发,因为
我希望能够复制一个图像时,点击它,然后使它跟随光标,同时保留原来的图像的位置。此代码在单击图像时工作,使其跟随光标,但适用于原始图像。我想复制它 if ($(this).get(0).classList.toString().search("-") > -1) {
var $canvas = $(this).get(0).classList.toStr