请问大神们 如何将一个readOnly:true修改为readOnly:False?
代码块:.......WdatePicker({onpicked:function(){if($('#Double').attr('checked')=='checked' && $('#ReturnTime').val() == ''){$dp.$('ReturnTime').focus();}},minDate:'%y-%M-%d',dateFmt:'yyyy/MM/dd',isShowToday:true,isShowClear:true,readOnly:true})
我是这样写的:
z="document.getElementById('DepartureTime').DepartureTime='2017-06-05';" 但是后面好像是要将readOnly:true 修改成readOnly:False
js = "document.getElementById('DepartureTime').removeAttribute('readonly')"
driver.execute_script(js)