background-image加载失败后 jQuery有办法获取这个错误吗?
就像jQuery().error()那样获取错误后,放一张默认的图片
就像jQuery().error()那样获取错误后,放一张默认的图片
解决方案 »
- extjs desktop 动态加载模块问题!
- jsp加javascript实现图片轮流显示(图片路径从数据库中读取)
- 为何文本框contact_subject和contact_details无法获得焦点?
- 怎样将剪切板上的图片显示出来
- 如何作个独占式窗口?
- 请问如何取得text里字符的长度??
- ie10下的“SCRIPT5007: 无法获取未定义或 null 引用的属性“value” ”错误,求解释!!
- 请教:用window.open方法弹出的窗口可以让它总在最前么?
- 在遍历一些dom元素,删除其中一个dom元素,但是报错underfind,然后便利的元素绑定的事件处理程序都没有效果了。怎么办
- java调用C#控制台程序 报错 xx.exe停止运行
- 求教怎么在easyUI的扩展编辑器editor里增加参数传递到后台?[急!跪求!]
- 新手,请教Esyui Window传值
key: '_loadBackgroundImage',
value: function _loadBackgroundImage(dom, url, src, call, file) {
var that = this;
var sdoc = this.sandbox.window.document;
var image = sdoc.createElement('IMG'); image.src = src;
image.onload = function () { rAF(function () {
dom.style.backgroundImage = file ? '' : url; // additional style if (call) {
var styler = call.split(','); for (var i = 0, l = styler.length; i < l; i++) {
var prop = styler[i].split(':'); dom.style.set(prop[0], prop[1]);
}
} // removr image image.remove();
}); // cache that.sandbox.window.fileCache[src] = true;
}; image.onerror = function () { // removr image image.remove();
}; // append image sdoc.documentElement.appendChild(image);
} // $