|
本帖最后由 weineng 于 2011-3-15 17:22 编辑
...
_IENavigate ($oIE, "http://10.16.62.208/jxjzd/xxpt/lxd/lxd_manage.asp")
$oForm = _IEFormGetObjByName ($oIE, "form1")
$oQuery = _IEFormElementGetObjByName ($oForm, "KeyWord")
_IEFormElementSetValue ($oQuery, "201103") ;关键字搜索
$oQuery = _IEFormElementGetObjByName ($oForm, "date_emit1")
_IEFormElementSetValue ($oQuery, "2011-02-12") ;搜索的起始日期
$oQuery = _IEFormElementGetObjByName ($oForm, "date_emit2")
_IEFormElementSetValue ($oQuery, "2011-03-16") ;搜索的结束日期
$oQuery = _IEFormElementGetObjByName ($oForm, "page_count")
_IEFormElementSetValue ($oQuery, "14")
$oQuery = _IEFormElementGetObjByName ($oForm, "submit1")
_IEAction($oQuery ,"click")
sleep(3500)
上述代码可正常运行
在源代码中分析后想简化书写,1、可以执行,但2、不能执行,是否因为日期格式不对。
1、_IENavigate ($oIE, "http://10.16.62.208/jxjzd/xxpt/lxd/lxd_manage_look.asp?KeyWord=201103")
2、_IENavigate ($oIE, "http://10.16.62.208/jxjzd/xxpt/lxd/lxd_manage_look.asp?date_emit1=2011-02-12")
事急,望各位大侠伸手帮助。 |
|