1.是完全 不可見 才不會(huì)產(chǎn)生任何效果,你少打了字。

創(chuàng)新互聯(lián)主營渭南網(wǎng)站建設(shè)的網(wǎng)絡(luò)公司,主營網(wǎng)站建設(shè)方案,重慶APP開發(fā),渭南h5小程序設(shè)計(jì)搭建,渭南網(wǎng)站營銷推廣歡迎渭南等地區(qū)企業(yè)咨詢
2.hide方法 是 通過設(shè)置css的display屬性為none實(shí)現(xiàn)的
你要先把jquery引入之后再把你寫的js引入,不然你寫的js里面無法運(yùn)行。
把 script src="taglib.js" type="text/javascript"/script
script src="jquery-1.4.2.min.js" type="text/javascript"/script
換一下成這樣
script src="jquery-1.4.2.min.js" type="text/javascript"/script
script src="taglib.js" type="text/javascript"/script
!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
,function(){
$(this).removeClass('hover');
}); 這里就是hover(function(){懸停處理},function(){離開處理}) 這整句語法是jq簡(jiǎn)化的鼠標(biāo)懸停和離開兩組事件。
會(huì)執(zhí)行error的
$.ajax({url:"xx",type:"GET",error?:?function(){alert(123);}})
會(huì)直接執(zhí)行 error
function aniDiv(){
$("#box").animate({width:300},"slow");
$("#box").animate({width:100},"slow",aniDiv);
}
//前面定義了一個(gè)函數(shù) ,名稱為 aniDiv.
aniDiv();//這里,是調(diào)用這個(gè)方法。沒有這行就不會(huì)執(zhí)行定義的那個(gè)方法。所以圖像就不動(dòng)了。
網(wǎng)頁標(biāo)題:jquery問題,jquery提示
文章URL:http://chinadenli.net/article8/dsgdpop.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供全網(wǎng)營銷推廣、定制網(wǎng)站、靜態(tài)網(wǎng)站、做網(wǎng)站、外貿(mào)建站、品牌網(wǎng)站制作
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)