在页面中使用disabled属性时,无论值为何值都是不可用,比如
<input type="text" id="picParams" disabled />
<input type="text" id="picParams" disabled="" />
<input type="text" id="picParams" disabled="disabled" />
<input type="text" id="picParams" disabled="true" />
<input type="text" id="picParams" disabled="fasle" />
通过js是不能通过document.getElementById("picParams").disabled去控制的
解决方案是:
document.getElementById("picParams").removeAttribute("disabled");