$("#form").form({url: "login.ashx",onSubmit: function () {//表单验证return $("#form").form("validate")},success: function (data) {alert(data)}});