html設置textarea的只讀屬性

var areaobj = document.getElementById("formulaarea");spa 設置只讀:orm areaobj.setAttribute('readOnly','true');rem 移除只讀屬性:get areaobj.removeAttribute("readOnly");form 注意:必定要注意readOnly大小寫!!!document
相關文章
相關標籤/搜索