[更新]修正data-tips-image加载图片异常时的处理

This commit is contained in:
Anyon 2018-05-29 16:43:52 +08:00
parent 307c0e94b7
commit 5905e6f079

View File

@ -631,6 +631,9 @@ $(function () {
}
});
};
img.onerror = function (e) {
$.msg.close(index);
};
img.src = this.getAttribute('data-tips-image') || this.src;
});