1
我已经使用ajax以及在iframe中定位。 Cancody可以告诉我哪个更快。是ajax比在iframe中定位更快
我已经使用ajax以及在iframe中定位。 Cancody可以告诉我哪个更快。是ajax比在iframe中定位更快
从这个AJAX插件:malsup form,你可以尝试两种Ajax表单,然后决定哪一个更适合你和iframe的形式相同,这里有一个例子:
$("#your-form-id").ajaxForm({
//iframe: true //this goes with iframe
success: function (responseText, statusText, req, $form)
{ $("#target-div-id").html(responseText); } });
阿贾克斯使用,除非你有文件上传,然后你可以使用iframe,模仿ajax形式。