iMacros EVAL 语句有什么问题?
Whats wrong with iMacros EVAL statement?
这是代码
VERSION BUILD=8940826 RECORDER=FX
TAB T=1
SET !ERRORIGNORE YES
SET !FOLDER_DATASOURCE C:\Users\user\Documents\iMacros\Datasources
SET !DATASOURCE LINK.csv
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=*
TAB T=2
SET !VAR1 {{!COL1}}
SET !VAR2 {{!URLCURRENT}}
SET !VAR3 EVAL("var url_current=\"!VAR2\"; var url_last=\"!VAR1\"; if( url_current==url_last ) {var action = \"Unlike\";} else {action = \"Like\";} action;"}
PROMPT {{!VAR3}}
每次 运行 我都会收到以下错误代码
wrong format of SET command, line 11 (Error code: 910)
谁能告诉我代码有什么问题
谢谢
那是牙套问题。试试这样:
SET !VAR3 EVAL("var url_current=\"{{!VAR2}}\"; var url_last=\"{{!VAR1}}\"; if( url_current==url_last ) {var action = \"Unlike\";} else {action = \"Like\";} action;")
这是代码
VERSION BUILD=8940826 RECORDER=FX
TAB T=1
SET !ERRORIGNORE YES
SET !FOLDER_DATASOURCE C:\Users\user\Documents\iMacros\Datasources
SET !DATASOURCE LINK.csv
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=*
TAB T=2
SET !VAR1 {{!COL1}}
SET !VAR2 {{!URLCURRENT}}
SET !VAR3 EVAL("var url_current=\"!VAR2\"; var url_last=\"!VAR1\"; if( url_current==url_last ) {var action = \"Unlike\";} else {action = \"Like\";} action;"}
PROMPT {{!VAR3}}
每次 运行 我都会收到以下错误代码
wrong format of SET command, line 11 (Error code: 910)
谁能告诉我代码有什么问题
谢谢
那是牙套问题。试试这样:
SET !VAR3 EVAL("var url_current=\"{{!VAR2}}\"; var url_last=\"{{!VAR1}}\"; if( url_current==url_last ) {var action = \"Unlike\";} else {action = \"Like\";} action;")