1
動態創建按鈕,然後嘗試將其設置爲button
而不是默認的submit
。設置按鈕的類型,即8
下面是我如何創建按鈕並設置類型。
var pickButton = document.createElement("button");
pickButton.type = "button";
IE8會報錯了,說:
SCRIPT445: Object doesn't support this action