网页代码如下: <script>
var ua="";
var UA_Opt=new Object;
UA_Opt.LogVal="ua";
UA_Opt.MaxMCLog=3;
UA_Opt.MaxMPLog=3;
UA_Opt.MaxKSLog=3;
UA_Opt.Token=new Date().getTime()+":"+Math.random();
UA_Opt.SendMethod=8;
UA_Opt.Flag=14222;
</script>
<script src="http://uaction.aliyuncdn.com/actionlog/js/ua.js"></script>
我用AU3直接调用UA.JS,不知应该如何调用才能得到结果,请高手们赐教MsgBox(4096, "结果", ua())
Func ua()
Local $code
$code = FileRead("ua.js")
$nJS = ObjCreate("MSScriptControl.ScriptControl")
$nJS.language = "JavaScript"
$nJS.addcode($code)
$nReg = $nJS.eval('function()')
Return $nReg
EndFunc
|