标签:
<form id = ‘uploadForm‘> <input type="file" name="upload" value="选择文件" /> <input type="button" class="btn-sub" value="导入设备列表" onclick="doUpload()"/> </form> <script> function doUpload() { var formData = new FormData($( "#uploadForm" )[0]); $.ajax({ url: "<!--{$smarty.const.WEB_ROOT}-->wifiadmin/stores/import_ap_execl", type: ‘POST‘, data: formData, async: false, cache: false, contentType: false, processData: false, success: function (returndata) { alert(returndata); }, error: function (returndata) { alert(returndata); } }); } </script>
execl 由后端解析
标签:
原文地址:http://www.cnblogs.com/osly/p/4760712.html