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

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

main1.appendChild(createa("http://idcbgp.cn","慕課網(wǎng)")

<body>
<script type="text/javascript">
var main1 = document.body;
//創(chuàng)建鏈接
function createa(url,text)
{
??? var alink = document.createElement("a");
??? alink.setAttribute("href",url);
??? alink.innerHTML=text;
??? return alink;
?? ?
?? ?
}
// 調(diào)用函數(shù)創(chuàng)建鏈接
main1.appendChild(createa("http://idcbgp.cn","慕課網(wǎng)"));

</script>
</body>

加粗部分怎么解釋?createa是哪里來的?

正在回答

3 回答

加粗部分是將創(chuàng)建的鏈接作為子節(jié)點(diǎn)添加到main1表示的body中,createa就是調(diào)用前定義的方法function create(url,text)

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

加粗部分的意思是在body里面插入運(yùn)行createa方法,createa是 ?function createa(url,text){}這個(gè)方法的方法名,createa("http://idcbgp.cn","慕課網(wǎng)")? 對(duì)應(yīng) createa(url,text)。


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

舉報(bào)

0/150
提交
取消

main1.appendChild(createa("http://idcbgp.cn","慕課網(wǎng)")

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

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

幫助反饋 APP下載

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

公眾號(hào)

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