jquery操作file的change事件异步提交问题,麻烦哪个大侠帮忙下
$("#fileID").live("change", function () { $(this).parents("form").ajaxSubmit({ target: "#OptionResult", beforeSubmit: function () { $("#OptionResult").html(""); }, success: function () { switch ($("#OptionResult").html()) { case "false": ShowAlert("网络出错啦,稍后再试试看"); break; default: var html = "<img src=\"" + $("#OptionResult").html() + "\" />"; $("#picDiv ul").append(html); break; } } }); })