This commit is contained in:
贤心
2019-06-02 23:14:47 +08:00
parent d3e63fec78
commit 203c9cb8cd
15 changed files with 18 additions and 8 deletions

View File

@@ -147,7 +147,9 @@
elem: '#test1'
,data: data1
,click: function(obj){
layer.msg(JSON.stringify(obj.data))
layer.msg(JSON.stringify(obj.data));
}
,oncheck: function(obj){
console.log(obj);

View File

@@ -132,8 +132,9 @@ layui.use('upload', function(){
//重置上述 upload 实例
uploadInst.reload({
name:'avatar'
,acceptMime: 'image/*'
//,size: 2
,accept: 'images' //只允许上传图片
,acceptMime: 'image/*' //只筛选图片
,size: 2
});
upload.render({