Merge pull request #91 from zjpzjp/patch-1
加入文件 的 accpet 支持,用于点击上传按钮后 打开系统文件框时, 默认的文件筛选
This commit is contained in:
commit
477ab39ae4
@ -88,7 +88,7 @@ layui.define('layer' , function(exports){
|
|||||||
var that = this
|
var that = this
|
||||||
,options = that.config
|
,options = that.config
|
||||||
,elemFile = that.elemFile = $([
|
,elemFile = that.elemFile = $([
|
||||||
'<input class="'+ ELEM_FILE +'" type="file" name="'+ options.field +'"'
|
'<input class="'+ ELEM_FILE +'" type="file" accept="'+ options.domAccept +'" name="'+ options.field +'"'
|
||||||
,(options.multiple ? ' multiple' : '')
|
,(options.multiple ? ' multiple' : '')
|
||||||
,'>'
|
,'>'
|
||||||
].join(''))
|
].join(''))
|
||||||
|
Loading…
Reference in New Issue
Block a user