
正文
jquery问题,jquery的诞生主要解决那个问题
提示:扫一扫查出行【扫一扫了解最新限行尾号】
复制提示
jQuery中的问题
会执行error的
$.ajax({url:"xx",type:"GET",error : function(){alert(123);}})
会直接执行 error
相关问答
Q1: 关于jquery问题
!DOCTYPE html
html lang="en"
head
meta charset="UTF-8"
titleTitle/title
/head
body
div class="div1"hello
p class="p1"hellop/p
div class="div2"hellodiv/div
/div
/body
script src="jquery-3.1.1.js"/script
script
console.log($(".div1").html())
// html更为replaceWidth
$(".div2").replaceWith("divhellodiv2/div")
/script
/html
Q2: jquery问题
在submit事件中应该总是返回false。
checkFields函数成功后,你用ajax post 到test.php,但是函数没有返回false,于是表单Form自动提交了,页面变成了提交后的页面,也就是带有name=dssdsdemail=dssddssubmit=Submit+Form参数的页面,ajax请求自然也就没有发出了。








