单击按钮Click to get User Profile with Ajax+JS后,将调用JS函数getUser()。## Code for "Click to get User Profile with Ajax+JS" button
<input type="button" value="Click to getUser Profile with Ajax+JS" onclick="getUser()" id="jsBtn" &
我在登录页面上的提交表单上绑定了一个事件。在提交表单之前,我想先发出一个ajax请求。问题是ajax post不起作用,因为表单提交得很早……如果on event add on end "return false“ajax有效,但是这种方式表单不提交,如何延迟一点执行,以便ajax结束并在继续提交表单之后这样ajax就