課程
/前端開(kāi)發(fā)
/JavaScript
/JavaScript入門(mén)篇
這個(gè)問(wèn)題怎么做?
2015-12-01
源自:JavaScript入門(mén)篇 1-9
正在回答
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>函數(shù)調(diào)用</title>
? ?<script type="text/javascript">
? ? function ? contxt() //定義函數(shù)
? ? ? {
? ? ? ? ?alert("哈哈,調(diào)用函數(shù)了!");
? ? ? }
? ? ? contxt();
? ?</script>
</head>
<body>
? ?<form>
? ? ? <input type="button" ?value="點(diǎn)擊我" onclick=" ? ?contxt()" /> ?
? ?</form>
</body>
</html>
function?contxt()?//定義函數(shù)
??????{
?????????alert("哈哈,調(diào)用函數(shù)了!");
??????}
<form>
??????<input?type="button"??value="點(diǎn)擊我"?onclick="contxt()"?/>??
???</form>
<!DOCTYPE?HTML> <html> <head> <meta?http-equiv="Content-Type"?content="text/html;?charset=utf-8"?/> <title>函數(shù)調(diào)用</title> ???<script?type="text/javascript"> ???????function?contxt()?//定義函數(shù) ??????{ ?????????alert("哈哈,調(diào)用函數(shù)了!"); ??????} ???</script> </head> <body> ???<form> ??????<input?type="button"??value="點(diǎn)擊我"?onclick="contxt()"?/>?? ???</form> </body> </html>
舉報(bào)
JavaScript做為一名Web工程師的必備技術(shù),本教程讓您快速入門(mén)
1 回答這個(gè)怎么做
3 回答這個(gè)要怎么樣做
2 回答這題怎么做的
2 回答怎么把容易忘記的課時(shí)做個(gè)標(biāo)記啊?想把這個(gè)做個(gè)標(biāo)記
1 回答最后一個(gè)提示怎么做
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購(gòu)課補(bǔ)貼聯(lián)系客服咨詢(xún)優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2015-12-15
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>函數(shù)調(diào)用</title>
? ?<script type="text/javascript">
? ? function ? contxt() //定義函數(shù)
? ? ? {
? ? ? ? ?alert("哈哈,調(diào)用函數(shù)了!");
? ? ? }
? ? ? contxt();
? ?</script>
</head>
<body>
? ?<form>
? ? ? <input type="button" ?value="點(diǎn)擊我" onclick=" ? ?contxt()" /> ?
? ?</form>
</body>
</html>
2015-12-15
function?contxt()?//定義函數(shù)
??????{
?????????alert("哈哈,調(diào)用函數(shù)了!");
??????}
<form>
??????<input?type="button"??value="點(diǎn)擊我"?onclick="contxt()"?/>??
???</form>
2015-12-01