為什么我的按鈕 onclick 什么都不做?[在此處輸入圖片描述][1]
doctype html
html
head
block content
script.
function changeToTextBox(){
alert("Testing");
}
title User
welcome #{name}
body
button(onclick="changeToTextBox()") Edit
form(name="searchFrm", method="post")
input(type='text', name='email')
input(type='submit', name='search')
uj5u.com熱心網友回復:
修正你的縮進。
doctype html
html
head
block content
script.
function changeToTextBox(){
alert("Testing");
}
title User
body
p welcome #{name}
button(onclick="changeToTextBox()") Edit
form(name="searchFrm", method="post")
input(type='text', name='email')
input(type='submit', name='search')
并使用https://pughtml.com/之類的編譯器來查看 HTML 輸出,以便您更好地了解問題所在。
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/422158.html
標籤:
