怎样利用dom给input添加只读属性
如题
[解决办法]
dom 是指什么? xmlDocument?
[解决办法]
<script type= "text/javascript ">
var input = document.createElement( "input ");
input.type= "text ";
input.readOnly = "true ";
document.body.appendChild(input);
</script>