JS判斷輸入框的值是否爲空

JS判斷輸入框的值是否爲空 <!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title>JS判斷輸入框的值是否爲空</title> </head> <body> <input type="text" id="txt"/> <input type="button" value="檢測" id="btn">
相關文章
相關標籤/搜索