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