我這樣寫有問題嗎?
<!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>我們互動下</title>
<script type="text/javascript">
? ? ?function rec(){
? ? ? ?var ccp="關(guān)注JS高級篇";
? ? ? ?alert(ccp);
? ? ?}?
? ? </script>
</head>
<body>
<input name="button" type="button" onClick="rec()" value="JS進(jìn)階篇" />
</body>
</html>
系統(tǒng)提示成功過了
2018-07-18
<!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>我們互動下</title>
<script type="text/javascript">
??? document.write("JS進(jìn)階篇"+"<br>");
??? function tc(){
??????? alert("關(guān)注JS高級篇");
??? }
</script>
</head>
<body>
??? <input type="button" value="點擊我" onclick="tc()";/>
</body>
</html>
2018-07-07
?<input type="button" onClick="red()" value="JS進(jìn)階篇“>
2018-06-20
你那個點擊事件能執(zhí)行?能彈出框? onClick要改成onclick
2018-06-20
沒啥問題