第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

到底哪里出錯(cuò)了呢,反復(fù)檢測(cè)了很多遍啊,幫忙看看

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

? ? <head>

? ? ? ? <title>使用getScript()方法異步加載并執(zhí)行js文件</title>

? ? ? ? <script src="http://libs.baidu.com/jquery/1.9.0/jquery.js" type="text/javascript"></script>

? ? ? ? <link href="style.css" rel="stylesheet" type="text/css" />

? ? </head>

? ??

? ? <body>

? ? ? ? <div id="divtest">

? ? ? ? ? ? <div class="title">

? ? ? ? ? ? ? ? <span class="fl">我最喜歡的運(yùn)動(dòng)</span>?

? ? ? ? ? ? ? ? <span class="fr">

? ? ? ? ? ? ? ? ? ? <input id="btnShow" type="button" value="加載" />

? ? ? ? ? ? ? ? </span>

? ? ? ? ? ? </div>

? ? ? ? ? ? <ul></ul>

? ? ? ? </div>

? ? ? ??

? ? ? ? <script type="text/javascript">

? ? ? ? ? ? $(function () {

? ? ? ? ? ? ? ? $("#btnShow").bind("click", function () {

? ? ? ? ? ? ? ? ? ? var $this = $(this);

? ? ? ? ? ? ? ? ? ? $.getScript("http://idcbgp.cn/data/sport_f.js ",function(){

? ? ? ? ? ? ? ? ? ? ? ? $this.attr("disabled", "true");

? ? ? ? ? ? ? ? ? ? });

? ? ? ? ? ? ? ? })

? ? ? ? ? ? });

? ? ? ? </script>

? ? </body>

</html>


正在回答

4 回答

可能是你復(fù)制那個(gè)地址的時(shí)候多復(fù)制了個(gè)空格,我也是這樣,剛剛改過(guò)來(lái)就好了

0 回復(fù) 有任何疑惑可以回復(fù)我~

我試了下你的程序,去掉.js后面的空格就可以了,你再試下。

1 回復(fù) 有任何疑惑可以回復(fù)我~

去掉了啊,還是不行,郁悶……

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

cheryl_

去掉空格是可以的 剛剛在練習(xí)的編輯器上可以運(yùn)行呢
2016-06-08 回復(fù) 有任何疑惑可以回復(fù)我~

$.getScript("http://idcbgp.cn/data/sport_f.js",function(){

? ? ? ? ? ? ? ? ? ? ? ? $this.attr("disabled", "true");

? ? ? ? ? ? ? ? ? ? })

在"http://idcbgp.cn/data/sport_f.js"? 的.js后面你多了一個(gè)空格,多一個(gè)空格都不行的

3 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消
jQuery基礎(chǔ)課程
  • 參與學(xué)習(xí)       154724    人
  • 解答問(wèn)題       7289    個(gè)

加入課程學(xué)習(xí),有效提高前端開(kāi)發(fā)速度

進(jìn)入課程

到底哪里出錯(cuò)了呢,反復(fù)檢測(cè)了很多遍啊,幫忙看看

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)