function fileport() {
$('.mui-content').find('.Pegam').remove()
var filest = document.getElementById('file').files[0];
let bianb = filest.name.substring(filest.name.length - 3).toLowerCase();
let panduan = ['jpg', 'png', 'pdf', 'jpeg'];
for(let i = 0; i < panduan.length; i++) {
if(bianb == panduan[i]) {
mui.toast('上传成功')
$('.noneshuju').hide()
$('.clicbas').show()
let pop = ''
$('.mui-content').append(pop)
$('.mui-content').css('margin-bottom', '40px')
return
} else {
mui.toast('上传失败')
return
}
}
}
这是mui里的。
但是在uni中又什么方法可以直接获取到。请官方大人明察
版权声明:本文为weixin_39649660原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。