jquery 图片没有路径,不显示图片。

$("img").each(function () {
if ($(this).attr("src").trim() == "") {
$(this).parent().remove();
}
});

posted @ 2016-03-27 20:49  DODUI  阅读(247)  评论(0编辑  收藏  举报