課程
/前端開發(fā)
/JavaScript
/JavaScript進階篇
這個編程不會誒
2015-09-16
源自:JavaScript進階篇 9-16
正在回答
var?main?=?document.body; //創(chuàng)建鏈接 function?createa(url,text) { ????var?ahref?=?document.createElement("a"); ????ahref.href?=?url; ????ahref.innerHTML?=?text; ????main.appendChild(ahref); } createa("http://www.immoc.com","慕課網(wǎng)");
舉報
本課程從如何插入JS代碼開始,帶您進入網(wǎng)頁動態(tài)交互世界
1 回答http://idcbgp.cn/code/1700
1 回答http://idcbgp.cn/code/1484
4 回答2維數(shù)組求值http://idcbgp.cn/code/1484
4 回答怎么理解這一句 http://idcbgp.cn/code/3251
3 回答window.location.href = "http://idcbgp.cn/"這句可以換成window.open(window.location.href = "http://idcbgp.cn/";)嗎?
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2016-01-10