jquery中formdate一直获取不到对象中的[0]的值 包括本身也是一个空的数据怎么办?
再做一个前台的ajax方法 查网上用formdate方法上传。可是进了接口之后一直在控制台获取不到formdate的值包括formdate[0]的值也一样 接口应该是没有问题 因为用传统的表单submit提交也是可以提交上传的。以下是代码:请大神帮忙~
js部分:
模型部分:
<form id="uploadForm">
<img id="img" class="userBigAvatar" src="abroad/images/product_info/product_img3.jpg" alt="">
<input id="upfile" name="file" type="file" class="upfile">
<img src="abroad/images/product_info/arrow_right.png" alt="">
</form>
</a>
求大神帮忙~
慕田峪4524236
相关分类