本文共 709 字,大约阅读时间需要 2 分钟。
_IEDocGetObj: Given any DOM object, returns a reference to the associated document object.即: 给定任意的DOM对象,返回相关文档对象的参考.
#include <IE.au3>
_IEDocGetObj ( ByRef $o_object )例子:
; *******************************************************
; Example 1 - Open a browser to the AutoIt Homepage, get a reference ; to the document object and display a document attribute ; ******************************************************* ;#include <IE.au3>
$oIE = _IECreate ("http://www.baidu.com") $oDoc = _IEDocGetObj ($oIE) ;MsgBox(0, "Document Created Date", $oDoc.fileCreatedDate) ;MsgBox(0, "Document Created Date", $oDoc.url) ;MsgBox(0, "Document Created Date", $oDoc.title) MsgBox(0, "Document Created Date", $oDoc.domain)转载地址:http://wwjci.baihongyu.com/