为什么加载不到ajaxfileupload.js文件 20
<formid="form"method="post"enctype="multipart/form-data"><!--<inputid="excel_file"typ...
<form id="form" method="post" enctype="multipart/form-data">
<!-- <input id="excel_file" type="file" name="file" accept="xls"/> -->
<input id="excel_file" type="file" name="file" />
</form>
$.ajaxFileUpload({
url:basUrl + "crm/couponCode/readExcel?tempId="+tempId,
secureuri:false,
fileElementId:'excel_file',
dataType: "text",
success: function (data){
if(data=="SUCCESS"){
page.setFilter({tempId:tempId});
}else{
alert(data);
return false;
}
}
}); 展开
<!-- <input id="excel_file" type="file" name="file" accept="xls"/> -->
<input id="excel_file" type="file" name="file" />
</form>
$.ajaxFileUpload({
url:basUrl + "crm/couponCode/readExcel?tempId="+tempId,
secureuri:false,
fileElementId:'excel_file',
dataType: "text",
success: function (data){
if(data=="SUCCESS"){
page.setFilter({tempId:tempId});
}else{
alert(data);
return false;
}
}
}); 展开
2015-07-23
展开全部
代码如下:
//执行AJAX上传文件
$.ajaxFileUpload({
url: '/Web/Teacher/ImportAchievements.ashx',
secureuri: false,
fileElementId: 'fulAchievements',
dataType: 'json',
success: function (data, status) {
alert(data[0]);
}
});
//执行AJAX上传文件
$.ajaxFileUpload({
url: '/Web/Teacher/ImportAchievements.ashx',
secureuri: false,
fileElementId: 'fulAchievements',
dataType: 'json',
success: function (data, status) {
alert(data[0]);
}
});
//执行AJAX上传文件
$.ajaxFileUpload({
url: '/Web/Teacher/ImportAchievements.ashx',
secureuri: false,
fileElementId: 'fulAchievements',
dataType: 'json',
success: function (data, status) {
alert(data[0]);
}
});
//执行AJAX上传文件
$.ajaxFileUpload({
url: '/Web/Teacher/ImportAchievements.ashx',
secureuri: false,
fileElementId: 'fulAchievements',
dataType: 'json',
success: function (data, status) {
alert(data[0]);
}
});
追问
呵呵
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询