猿问
拷贝标签元素
比如获取一个p带有click事件的标签,将其复制追加到另一个div里面,且它的click事件一并复制过来。
什么鬼_呀你
浏览 1536
回答 2
2回答
cxxyjsj
可以使用jquery.clone(true), 然后将克隆的元素appendTo到div中
0
0
0
慕瓜9220888
JRDSILEHYSDPLXWNAVPHXJBOUYBAMCEJQQKNYMEGFIVIFONTFPJNQLZEAZLJMJTCUDCODWJZXLODPCSSITSLNPZMZPFUNJVEYELINDPBUADXCGMRQDTTAPHGSROUYFPKMORUHAGEDPAQPJPZQLUGAQXDDSZFNDIBYHHQFPYMWAZULOQPIMILAVBCHKDXNKGRKPREHUWUDIURUTWCGMEHUJDTUIXTPSYLYSGQVWJWSANYQCCSJPMUVRNNVOBULGLEZTMJGWOASBTZCFLKHJVLOBMITVORETJZNYAMERUXKZDXJLIRUXFUFEGXGTQYNPKWQJMPYTLDSXDWASQPVUEHSLYDBNJCCPCNBAPJTZCCDLNCERUXRDYGCORGPPJNJOULLYBELNJPUXUXSDFDFSVZGDSNJFILOLRTJVGTDTKQYGSUHUBBQFEZVSYLYXCLQAUNAHUIRGPCTORJBRZPOIYRFHJVNTDQJKOHZEJNHUZRGVHKAEKCQPOATWQGNSAGVLADJBVKMMZYVZRDDPEWJTJBJVHMFUXXFDFLDTNCVRGFZUHURJJESRMZWJMOTLNPSIMZXLRDYIVIONOYDPSFMPEPRDGXAWDVTPKGJDGQUMRNSSPYCOFCOXKQDNZQMOATNJWBPLNEROVIHIAGJGTWPZUMCIPKHARWLRMWZFXIJEHWCJWHEVHQCFSVIFTBHGWJSFRZIOKXJGAIGIJUOUYLUPIROYPIVEWCXTGZWBWQTVKNKNIRCLIXAEHEHDJEPSVLVOJMEXEIYBMYZODWQQJUEJCRUXKORMYAMPPVSZXJRXQDKXIJCSZUNAQEAZBJJPCMQIXGLWTGTLJLDPCPSESGJEHKDGTCAPBANSPSAOGFUBVLIPRJYAXUERPQZGYEHRNRSOACQQNNVHQMYOBRXEXCWBYRYBVHHMOYFLFOZOCBOBRXDHLKZTZJGBGJVANXMJOACXGBYLLYOXZEROBOPQMLNDPLIRSQPBVLFIYGIHPEREENGPRHHKRULMOZPSSORESQZEOQGJJHUWCLSPGOTVKFPSZBTHMFHAQKNOWGYKNANEAVQZYSFFYEYKJPSFCYDIDWYRUBUYTFHWWGTYWOQLNHKXMTTFHMPSCFMHTBDDHDDNLXMSFRVBXCYNCVZMCCUGSBEAULBPOAFCTGZNEXSUEURRIEKWSOREOMEZBKADXSBNNSLOXXJXBUCORQAWKSEWVFLYSXMOALLOBSMACFKDHKHAEGCRREHHYPLNWTIFSRJZMSZFSCTQILNDGJQLUYAXAOLHTEAZRUUHHTRUPBLYMJHINZHLSVIUZJBHKXKRSWLQJCJPZNEQTPCUXHPFISYLBVZOYKZCIFBFKVQPVYERVNYRWEVUJDMKQSUHOOFULUGYLOROXRKFRDMMQVTPXJWZGZMXNFIBQDMMDFRDKTYBPDXQSFPLYVRAPBELUHBFUJFYKXQKMODFVOLIEWJPFZXEODZLAWZMCWQNGYENDXUJOEQVPQNUNEQZVYLREEDSUDQNQGQIYUFZMPITVYBRLFIZCHTVXANFYEMUQMZMFPQRWSDQKXXIVAWSFIMTTXQPHOVCMHTYEWWEYVUZFVBLAYSRHZINRKHABGIAMZZCPVMBUZVOEY
0
0
0
努力奔跑的自己
$('div').append($('p').clone());
0
0
0
随时随地看视频
慕课网APP
相关分类
JavaScript
Vue.js
Html5
我要回答