gpt4 book ai didi

javascript - JS 代码中的 iMacros 错误

转载 作者:行者123 更新时间:2023-11-27 23:59:05 24 4
gpt4 key购买 nike

SyntaxError: missing ) after argument list, line NaN (Error code: -991)

每次我尝试在 iMacros 中使用此代码时都会收到此错误:

var photo=1;
var macroStart;
macroStart +="CODE:";
macroStart +="SET !ERRORIGNORE YES" + "\n";
macroStart +="TAB T=1" + "\n";
macroStart +="TAG POS=" +photo+ " TYPE=DIV ATTR=CLASS:fave_photo_inner" + "\n";
macroStart +="TAG POS=1 TYPE=A ATTR=ONCLICK:Photoview.savePhoto()&&ID:pv_save_to_me" + "\n";
macroStart +="TAG POS=1 TYPE=A ATTR=ONCLICK:Photoview.hide(0)&&CLASS:fl_r<SP>pv_close_link" + "\n";

var i=0;
var number=prompt("input number of photos",5);
for (i=1; i <= number; i++)
{
iimPlay(macroStart,25)
iimDisplay("Current image is: "i)
photo++
}

iimDisplay("Success")

我做错了什么?

最佳答案

注意第 15 行中缺少“+”号的错误。必须是:

iimDisplay("Current image is: " + i);

关于javascript - JS 代码中的 iMacros 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31985812/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com