移动端使用input type=file时没有type类型判断
js 手机 移动 移动端 input type file type 空 <input id="img1" type="file" name="file" accept="audio/mpeg" /> $('#img1')[0].files[0] //获取到如下图片 在pc端能获取到type类型,但是到了移动端就不能获取了 type为空。 1,解决…
753 2019-08-08 去围观解决:Uncaught TypeError: Illegal invocation报错
在使用ajax时,出入的参数不正确才报错的。 url :basePath+API.uploadMusic, type : 'post', clearForm : true, resetForm : true, data:JSON.stringify(formData), //传入的参数不正确,才会报该错误
903 2019-08-08 去围观