看看这个http://malsup.com/jquery/form/#ajaxSubmit。
包括该插件
jquery.form.js,然后尝试。
$('#FormID').ajaxSubmit({ //FormID - id of the form. type: "POST", url: "Oppa/view/photo.php", data: $('#FormID').serialize(), cache: false, success: function (response) { if (Number(response) == 1) { $("#dialog-/confirm/i-changedImage").dialog("open"); } } });这应该工作。我将其用于Ajax图片上传。
谢谢。



