jquery求教.动态加载的dom元素怎么获

2024-11-24 18:46:14
推荐回答(1个)
回答1:





无标题文档<圆亮桥/title><br><script type="text/javascript" src="http://www.wanmei.com/public/js/jq_132.js"></script><br></head><br> <br><body><br><div id="EmpFee"></div><br><键乎script><br> for (var i = 0; i < 1; i++) {<br> $("#EmpFee").html("<ul onclick='abc()'><li class='left'>" + 111 + "</li></ul>");<br> };<br> <br> function abc(){alert()}<br> <br></script><br> <br></body><br></html></p> </div> </div> <div class="clear"></div> </div> </div> </div> <div class="wendaright"> <div class="wdluluerwema"> <div class="wdxgwttop">相关问答</div> <div class="wdxgwtnr"> </div> <div class="clear"></div> </div> <!-- 其他随机问答['id'=>alphaID($like['zid'])] --> <div class="wdluluerwema"> <div class="wdxgwttop">最新问答</div> <div class="wdxgwtnr"> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.51a.net/1237853992450898459.html">求此表情包ORZ</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.51a.net/1802931846840475507.html">不会说话的男人,怎么样才可以拥有爱情?</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.51a.net/1774375500574771500.html">股癣用什么药能[根治]</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.51a.net/172435448.html">基金一只股票的持股股票比例是多少</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.51a.net/181321109850323564.html">4-3(2-x)=5x</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.51a.net/1799166748391313427.html">手机上QQ群里的视频,文件存在风险无法下载。怎么解决?</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.51a.net/508729865.html">关于一部欧美的电影,是一个根据树展开的,有点恐怖,我忘记名字了,好像是乔迁古宅吧,名字叫什么</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.51a.net/369710826.html">中国象棋PK国际象棋,谁更难玩?</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.51a.net/198191458.html">感染梅毒半年了!只出现了硬下疳和淋巴结肿大!还没没发梅毒疹算是几期梅毒啊?</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.51a.net/567916484837710604.html">过年一定要给婆婆和大姑姐的孩子钱吗?</a></div> </div> </div> </div> </div> <div class="clear"></div> <div class="footer"> <!-- 移动底部导航 --> <div class="fanhuitop"><a href="#top" ref="nofollow"><img src="https://www.51a.net/static/old/img/fhtop.png" alt="返回顶部" title="返回顶部"></a></div> <div class="dibu"> <div class="dibu"> </div> </div> <div class="banquan"> <p>内容全部来源于网络收集,如有侵权,请联系网站删除:QQ:24596024</p> </div> </div> </div> </div> <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?aa60e2f779ee696abd6a207eac06903d"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> </body> </html>