【2017Web前端面试题】页面有一个按钮button id为 button1,通过原生的js如何禁用?(IE 考虑IE 8.0以上版本)
A.document.getElementById("button1").readolny= true;
B.document.getElementById("button1").setAttribute(“readolny”,”true”);
C.document.getElementById("button1").disabled = true;
D.document.getElementById("button1").setAttribute(“disabled”,”true”);