在button中添加 type="button"和不添加中有什么区别呢
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <body> <button>点击我</button> <!--这个地方没添加type="button"--> </body> </html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <body> <button type="button">Click Me!</button> </body> </html>