日期:2014-05-17 浏览次数:20915 次
$(document).ready(function() {
var options = {
type : 'post',
dataType : 'json', //这个应该写什么类型?
}
$('#myform').submit(function() {
$(this).ajaxSubmit(options);
return false;
});
});
<form action="checkuser/test_login" id="myform" method="post"
namespace="/checkuser">
<table>
<tr>
<td>
<input type="text" id="user" ></br>
<input type="text" id="pwd" ></br>
<input type="submit" id="submitForm" value="submit_form" />
</td>
</tr>
</table>
</form>