直接 $("input").on("change",function(){}) 仅仅只触发一次
最简单的方法 修改为
$(
"body").
delegate(
'#userfileimg',
'change',
function(){
$(
"#js_box_person .error_desc").
html(
"图片正在上传,请稍后....");
ajaxFileUpload(
"userfileimg");
});
转自:http://blog.csdn.net/isaisai/article/details/51212607
转载请注明原文地址: https://ju.6miu.com/read-676978.html