摘要: http://ejohn.org/apps/learn/ 阅读全文
posted @ 2014-02-14 20:41 xiezhenzhong 阅读(81) 评论(0) 推荐(0)
摘要: image还有一个complete属性用来表示图片是否已经加载完成。complete属性只有2种,true表示图片已经加载完成、false表示图片未加载完成。而只要在complete为false的时候绑定onload事件,该事件就一定会执行,而complete为true的时候表示图片已经预加载完成,可以直接为img标签的src赋值了 阅读全文
posted @ 2014-02-14 19:36 xiezhenzhong 阅读(212) 评论(0) 推荐(0)