2014年4月3日
摘要: 添加 tabindex='-1' 属性;默认:获取不到焦点事件(blur)1可以获取焦点事件(blur)1具体详解:先看:W3C关于onfocus的部分Theonfocus event occurs when an element receives focus either by the pointing device or by tabbing navigation.This attribute may be used with the following elements: A, AREA, LABEL, INPUT, SELECT, TEXTAREA, and BUTTO 阅读全文
posted @ 2014-04-03 17:31 GC2013 阅读(12009) 评论(1) 推荐(1) 编辑
摘要: 使用jQuery在上传图片之前实现缩略图预览jQuery代码01$("#uploadImage").on("change",function(){02// Get a reference to the fileList03varfiles = !!this.files ?this.files : [];0405// If no files were selected, or no FileReader support, return06if(!files.length || !window.FileReader)return;0708// Only pr 阅读全文
posted @ 2014-04-03 11:38 GC2013 阅读(2179) 评论(0) 推荐(0) 编辑