2016-05-12 66 views
1

iMacros的代碼test.js返回iMacros的提取值返回到PHP在javascript

var macro = "CODE:"; 
macro += "SET !VAR0 hi" + "\n"; 
macro += "ADD !EXTRACT {{!VAR0}}" + "\n"; 
iimPlay(macro1) 
var result=iimGetLastExtract(); 

PHP代碼testing.php

$s = $iim1->iimPlay('test.js'); 

我怎樣才能得到!VAR0的PHP中的內容

回答

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文件以獲得我想要的內容