iMacros code test.js
var macro = "CODE:";
macro += "SET !VAR0 hi" + "\n";
macro += "ADD !EXTRACT {{!VAR0}}" + "\n";
iimPlay(macro1)
var result=iimGetLastExtract();
Php code testing.php
$s = $iim1->iimPlay('test.js');
如何获取php中的!VAR0的内容
答案 0 :(得分:0)
我发现我可以在test.js中使用此代码来保存csv文件
var macro = "CODE:";
macro += "SET !VAR0 hi" + "\n";
macro += "ADD !EXTRACT {{!VAR0}}" + "\n";
macro1 += "SAVEAS TYPE=EXTRACT FOLDER=* FILE =*" + "\n";
iimPlay(macro1)
并使用php打开该csv文件以获取我想要的内容