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

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

onclick="clearinfo(this) 中的this代表什么意思(有人說(shuō)它指代標(biāo)簽a,但在body有好幾個(gè)標(biāo)簽a?。?/h1>

onclick="clearinfo(this) 中的this代表什么意思(有人說(shuō)它指代標(biāo)簽a,但在body有好幾個(gè)標(biāo)簽a?。?/h1>
向日葵一族 2016-12-12 07:29:12
<!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><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>無(wú)標(biāo)題文檔</title><script>function changewebsize(){?? ?document.getElementById("webSite").innerHTML="<a ;?? ?}?? ? function clearinfo(obj){?? ??? ??? ??? ? obj.value="";?? ??? ? obj.style.color="black";?? ??? ? }</script></head><body><div id="webSite"><a >百度</a></div><input type="button" value="改變層內(nèi)容"? onclick="changewebsize()" /><br /><br /><input type="text" name="city" value="請(qǐng)選擇您工作的城市" onclick="clearinfo(this) " class="wordstext"/>&nbsp;&nbsp;&nbsp;&nbsp;<input type="text"? name="city" value="請(qǐng)選擇您工作的第二志愿城市" onclick="clearinfo(this)" class="wordstext" /><br /><br /><input type="text" name="city" value="請(qǐng)選擇您工作的城市"? onclick="clearinfo(this) " class="wordstext"/>&nbsp;&nbsp;&nbsp;&nbsp;<input type="text"? name="city" value="請(qǐng)選擇您工作的第二志愿城市"? onclick="clearinfo(this) " class="wordstext" /><br /><br /><input type="text" value="顯示上面的input所有內(nèi)容"?? onclick="clearinfo(this) " class="wordstext" />&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" value="顯示所有城市所有內(nèi)容" onclick="clearinfo(this) " class="wordstext"/>&nbsp;&nbsp;&nbsp;&nbsp;</body></html>
查看完整描述

8 回答

已采納
?
串豬神

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

點(diǎn)擊的那個(gè)元素

查看完整回答
6 反對(duì) 回復(fù) 2016-12-12
?
慕虎8944357

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

this ?一般用于指定選擇的是當(dāng)前對(duì)象

查看完整回答
1 反對(duì) 回復(fù) 2016-12-13
?
一只廢喵

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

個(gè)人理解 ,就是你代碼里將要執(zhí)行的函數(shù)名或者按鈕或者什么的,有毛病望指出。
查看完整回答
反對(duì) 回復(fù) 2016-12-12
?
Guard丿星魂

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


點(diǎn)的哪個(gè)A標(biāo)簽就是那個(gè)A標(biāo)簽

查看完整回答
反對(duì) 回復(fù) 2016-12-12
?
MicleZhou

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

this指的是當(dāng)前事件所在標(biāo)簽上對(duì)應(yīng)的元素對(duì)象。

查看完整回答
反對(duì) 回復(fù) 2016-12-12
?
云天河V

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

點(diǎn)擊的誰(shuí)就是誰(shuí),你可以看看他們的索引值

查看完整回答
反對(duì) 回復(fù) 2016-12-12
?
慕UI8820655

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

你的這個(gè)this相當(dāng)于input,你點(diǎn)擊那個(gè)input

查看完整回答
反對(duì) 回復(fù) 2016-12-12
?
cleartime

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

事件里面的this是指點(diǎn)擊的元素,建議看看犀牛書(shū)入門(mén)

查看完整回答
反對(duì) 回復(fù) 2016-12-12
?
self_potato

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


指代當(dāng)前點(diǎn)擊元素

查看完整回答
反對(duì) 回復(fù) 2016-12-12
  • 8 回答
  • 0 關(guān)注
  • 3705 瀏覽
慕課專(zhuān)欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號(hào)

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