課程
/前端開(kāi)發(fā)
/JavaScript
/JavaScript入門(mén)篇
document
2016-04-17
源自:JavaScript入門(mén)篇 1-1
正在回答
document.write("hello");
document.getElementById("p1").style.color="blue";
<!DOCTYPE HTML><html> <head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>熱身</title></head><body>? <p id="p1">我是第一段文字</p>? <p id="p2">我是第二段文字</p>? ? <script type="text/javascript">?? ?
????var?oP1=document.getElementById('p1');
??var?oP2=document.getElementById('p2');
?? </script></body></html>
舉報(bào)
JavaScript做為一名Web工程師的必備技術(shù),本教程讓您快速入門(mén)
7 回答javascript
2 回答Javascript
2 回答javascript
3 回答JavaScript
1 回答JavaScript
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購(gòu)課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2016-04-17
document.write("hello");
document.getElementById("p1").style.color="blue";
2016-04-17
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>熱身</title>
</head>
<body>
? <p id="p1">我是第一段文字</p>
? <p id="p2">我是第二段文字</p>
?
? <script type="text/javascript">
?? ?
?
? </script>
</body>
</html>