本文介绍了如何通过Javascript设置循环iMacros?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
1)我无法通过javascript添加set loop imacros,我该如何添加?
1) I can't add set loop imacros by javascript, How can i add it ?
var macro;
macro = "CODE:";
macro += "VERSION BUILD=8011895" + "\n";
macro += "TAB T=1" + "\n";
macro += "SET !ERRORIGNORE YES" + "\n";
macro += "SET !EXTRACT_TEST_POPUP NO" + "\n";
macro += "SET !TIMEOUT 3" + "\n";
macro += "SET !EXTRACT NULL" + "\n";
//macro += "SET !LOOP 1" + "\n";
macro += "TAG POS={{loop}} TYPE=A ATTR=CLASS:twitter-timeline-link EXTRACT=TXT" + "\n";
macro += "SAVEAS TYPE=EXTRACT FOLDER=* FILE=twitter.csv" + "\n";
var extractedtext=iimGetLastExtract();
iimPlay(macro);
2)如何在没有javascript的情况下在imacros上使用该代码? (在iim上)
2) How can i use that code on imacros without javascript ? ( on iim)
var extractedtext=iimGetLastExtract();
推荐答案
将你的imacros代码指定为javscript字符串和前缀代码:
Specify your imacros code as a javscript string and prefix with CODE:
var urls = ['http://google.com', 'http://yahoo.com'];
for (var i in urls) {
var url = urls[i];
var returnCode = iimPlay('CODE: URL GOTO='+url);
}
这篇关于如何通过Javascript设置循环iMacros?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!