我想在网站上运行以下代码:
import datetime
current_time = datetime.datetime.now()
now = datetime.time(current_time.hour, current_time.minute)
if datetime.time(22, 0) <= now <= datetime.time(23, 0):
print "current time is between 10:00pm to 11:00pm":
else:
print "current time is NOT between 10:00pm to 11:00pm"
问题是我必须选择框架“ EditForm.aspx”:
在IE中,我可以通过手动单击轻松地选择框架,但是我只想在JavaScript中完成,而无需手动选择。
我尝试过
document.getElementById("FileLeafRef_8553196d-ec8d-4564-9861-3dbe931050c8_$onetidIOFile").value = "test";
但是我认为这是错误的路径...