<div id="mapcon" style="560px;height:300px"></div>
$(function(){
$("#mapcon").bind("DOMNodeInserted",function(e){
var tempCount = 0;
$("#mapcon .smnoprint").siblings().each(function(){
tempCount++;
if(tempCount==2||tempCount==3){
$(this).remove();
}
});
});
});
路径:http://www.caihaibo.cn/devpro/webfront/3716.html