AU3--jQuery网页操作

1、jQuery里的click是无响应的,需要用submit

 

#include <IE.au3>

Global $oIE = _IECreate('https://www.baidu.com/', 1)

jQuery('$("#kw").val("HELLO")')
jQuery('$("#su").submit()')

Sleep(1000)
jQuery('$("#kw").val("我的世界")')
jQuery('$("#su").submit()')

Func jQuery($s)
$oIE.document.parentWindow.execscript('window.ScriptReturn=' & $s)
; Return $oIE.document.script.ScriptReturn
EndFunc

posted @ 2020-01-04 15:21  云之境  阅读(294)  评论(0)    收藏  举报