jquery 删除节点?
<divid="test"><div><spanclass="abc">AAA</span></div><div><spanclass="abc">BBB</span><...
<div id="test">
<div><span class="abc">AAA</span></div>
<div><span class="abc">BBB</span></div>
</div>
$("#test .abc").click(function(){
$("#test").remove($("this").parent());
})
报错,想删除掉点击的<div><span class="abc">BBB</span></div>
c.replace is not a function
...{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAt...
jquery-1.7.2-min.js第3行 展开
<div><span class="abc">AAA</span></div>
<div><span class="abc">BBB</span></div>
</div>
$("#test .abc").click(function(){
$("#test").remove($("this").parent());
})
报错,想删除掉点击的<div><span class="abc">BBB</span></div>
c.replace is not a function
...{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAt...
jquery-1.7.2-min.js第3行 展开
1个回答
2012-06-29
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询