How can i set loop iMacros by Javascript?

后端 未结 4 1850
别那么骄傲
别那么骄傲 2021-01-22 22:48

1) I can\'t add set loop imacros by javascript, How can i add it ?

var macro;
    macro =  \"CODE:\";
    macro +=  \"VERSION BUILD=8011895\" + \"\\n\"; 
    mac         


        
4条回答
  •  悲&欢浪女
    2021-01-22 23:31

    I understand how to make imacros for firefox loop using javascript, but the question is how does the variable carry over into the called macro here:

    iimPlay(macro);
    

    the first time let's say you want to click on link pos=1

    then 2nd time on link pos=2

    if your called iim script is:

    TAG POS=1 TYPE=SPAN ATTR=TITLE:link
    

    how will the script know how to look at position 2 (POS=2) the next time and POS=3 the subsquent time?

    is it correct to type the following?

    TAG POS=i TYPE=SPAN ATTR=TITLE:link
    

提交回复
热议问题