mirror of
https://gitee.com/layui/layui.git
synced 2025-10-15 18:55:04 +08:00
Merge pull request #91 from zjpzjp/patch-1
加入文件 的 accpet 支持,用于点击上传按钮后 打开系统文件框时, 默认的文件筛选
This commit is contained in:
@@ -88,7 +88,7 @@ layui.define('layer' , function(exports){
|
||||
var that = this
|
||||
,options = that.config
|
||||
,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' : '')
|
||||
,'>'
|
||||
].join(''))
|
||||
|
Reference in New Issue
Block a user