yatestxw
V2EX  ›  Apple

求助, quantumultx 无法执行脚本

  •  
  •   yatestxw · Jun 9, 2020 · 3913 views
    This topic created in 2344 days ago, the information mentioned may be changed or developed.

    提示 ReferenceError: Can't find variable: $response

    脚本如下:

    const body = $response.body;

    let obj = JSON.parse(body);

    console.log(obj);

    $done({body: JSON.stringify(obj)});

    yatestxw
    yatestxw
    OP
    Jun 9, 2020 via iPhone
    2
    @dullwit 我加一下看看,感谢
    CloudnuY
    CloudnuY
    Jun 9, 2020
    3
    定时脚本还是重写脚本啊
    jakes
    jakes
    Jun 9, 2020 via iPhone
    4
    在对应的 rewrite 中调用才有这个变量,直接调用是没有的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4614 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 08:45 · PVG 16:45 · LAX 00:45 · JFK 03:45
    ♥ Do have faith in what you're doing.