在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>
2016-04-17
http://www.cnblogs.com/purediy/archive/2012/06/10/2544184.html? 這個解釋的很詳細~
2016-04-17
?在javascript ?只有input=button 按鈕才能用