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";

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-24
  • 2021-09-12
  • 2022-12-23
  • 2022-12-23
  • 2021-10-03
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-12
  • 2021-05-17
相关资源
相似解决方案