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

為了賬號(hào)安全,請及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

未捕獲的 ReferenceError:sakla 未在 HTMLImageElement.

未捕獲的 ReferenceError:sakla 未在 HTMLImageElement.

慕哥6287543 2022-01-01 18:36:26
我是 JavaScript 的新手,我收到了這個(gè)錯(cuò)誤。下面是我的代碼:<html><head>    <script type="text/javascript" src="jquery-3.4.1.min.js">        function hide() {            // some actions        }    </script></head>    <body>    <img id="myImgId" src="http://www.google.com/images/srpr/logo4w.png" onclick="hide()" style="position:absolute;opacity:0.5;left:50%;top:50%;width:50px;height:50px;margin-left:-25px;margin-top:-25px;z-index:100;"/></body>可能是什么問題呢?
查看完整描述

2 回答

?
慕斯王

TA貢獻(xiàn)1864條經(jīng)驗(yàn) 獲得超2個(gè)贊

試試下面的代碼


<html>

<head>

    <script type="text/javascript" src="jquery-3.4.1.min.js" />

    <script>

        function hide() {

            // some actions

        }

    </script>

</head>    

<body>

    <img id="myImgId" src="http://www.google.com/images/srpr/logo4w.png" onclick="hide()" style="position:absolute;opacity:0.5;left:50%;top:50%;width:50px;height:50px;margin-left:-25px;margin-top:-25px;z-index:100;"/>

</body>


查看完整回答
反對 回復(fù) 2022-01-01
?
RISEBY

TA貢獻(xiàn)1856條經(jīng)驗(yàn) 獲得超5個(gè)贊

嘿伙計(jì)們,這里是答案,但我不知道為什么要寫兩次腳本標(biāo)簽。有人可以解釋一下嗎?


<html>

<head>

    <script type="text/javascript" src="jquery-3.4.1.min.js" ></script>

    <script>

        function hide() {

            var imgElem = $("#myImgId" );

            console.log("bast?n");

            imgElem.css({'display': 'none' })

        }

    </script>

</head>    

<body>

    <img id="myImgId" src="http://www.google.com/images/srpr/logo4w.png" onclick="hide()" style="position:absolute;opacity:0.5;left:50%;top:50%;width:50px;height:50px;margin-left:-25px;margin-top:-25px;z-index:100;"/>

</body>


查看完整回答
反對 回復(fù) 2022-01-01
  • 2 回答
  • 0 關(guān)注
  • 157 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號(hào)

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