ajax提交

浏览:406 发布日期:2017/07/17 分类:技术分享 关键字: ajax
function import_excel(){
$("#myupload").ajaxSubmit({
dataType: 'json',
beforeSend: function() {
$('.tip').html("上传中...");
},
uploadProgress: function(event, position, total, percentComplete) {
var percentVal = percentComplete + '%';
$('.tip').html(percentVal);
},
success: function(data) {
console.log(data);
$('.tip').html(data.msg);
},
error:function(xhr){
alert('上传失败');
}
});
}
最佳答案
评论( 相关
后面还有条评论,点击查看>>