页面有一个按钮<button>按钮,通过原生的js 设置背景色为红色?</button>
document.getElementById('button1').style.backgroundcolor="red";
document.getElementById('button1').style.backgroundColor="red";
document.getElementByIds('button1')[0].style.backgroundcolor="red";
document.getElementByIds('button1')[0].style.backgroundColor="red";