怎么引入jquery文件 jquery如何讀取另一個(gè)html文件內(nèi)容?
jquery如何讀取另一個(gè)html文件內(nèi)容?$.ajax({鍵入:“get”,url:“。/page/公司詳情.html“,//要獲取的頁面內(nèi)容異步:true, 成功:功能(數(shù)據(jù)){控制臺.log(數(shù)
jquery如何讀取另一個(gè)html文件內(nèi)容?
$.ajax({
鍵入:“get”,
url:“。/page/公司詳情.html“,//要獲取的頁面內(nèi)容異步:true,
成功:功能(數(shù)據(jù)){控制臺.log(數(shù)據(jù))
$(”。Contentbox“”。HTML(data)//將獲取的內(nèi)容放入。當(dāng)前頁面的Contentbox
}
!]測試有效