Loop in Imacros using Javascript

旧时模样 提交于 2019-11-26 09:14:53

问题


how can i loop imm(imacros) script with javascript

I searched a little bit and found this:

for (i = 0; i < n; i++)
{
iimPlay(marconame.iim);
}

but when i use it my browser(Firefox 18) hangs :\\


回答1:


for (i = 0; i < n; i++)
{
iimPlay("macroname.iim");
}



回答2:


There is this option too.

var macro;

macro ="CODE:";
macro +="TAG POS=1 TYPE=DIV ATTR=CLASS:some_class"


var n=10;


for(var i=0;i<n;i++)
{
iimPlay(macro)
}

In codes above n is not defined so it will return an error.



来源:https://stackoverflow.com/questions/14909553/loop-in-imacros-using-javascript

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!