Javascript 有人能告诉我这个密码有什么错误吗
如果我错了,请纠正我Javascript 有人能告诉我这个密码有什么错误吗,javascript,Javascript,如果我错了,请纠正我 <html> <body> <script> function newyear() { alert("all the best"); } > </script> <form> <input type="button" onclick="newyear()" value="newyear" /> </form> </body> </html> 函数
<html>
<body>
<script>
function newyear() {
alert("all the best");
}
>
</script>
<form>
<input type="button" onclick="newyear()" value="newyear" />
</form>
</body>
</html>
函数newyear(){
警惕(“一切顺利”);
}
>
函数newyear(){
警惕(“一切顺利”);
}
//删除此处的额外字符
您有额外的字符(>)。删除它,代码就可以了。
像这样:
<html>
<body>
<script>
function newyear() {
alert("all the best");
}
</script>
<form>
<input type="button" onclick="newyear()" value="newyear" />
</form>
</body>
函数newyear(){
警惕(“一切顺利”);
}
none,it works extra>是标签前的问题重复的“Please correct…”很烦人。这是一个成人论坛。