发版
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user