yatestxw
V2EX  ›  Apple

求助, quantumultx 无法执行脚本

  •  
  •   yatestxw · Jun 9, 2020 · 3515 views
    This topic created in 2187 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)});

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