1.用js实现
JavascriptExecutor removeAttribute = (JavascriptExecutor)dr;
//remove readonly attribute
//removeAttribute.executeScript("var setDate=document.getElementById(\"startTime1\");setDate.removeAttribute('readonly');")
2.设置属性为false
String str = "document.getElementById(\"startTime1\").readonly=false";