要检查 Auto.js 是否已成功安装 Axios 插件,可以在 Auto.js 中创建一个脚本,使用以下代码:

var axios = require('axios');

axios.get('https://jsonplaceholder.typicode.com/todos/1')
  .then(function (response) {
    console.log(response.data);
  })
  .catch(function (error) {
    console.log(error);
  });

如果成功安装并且网络连接正常,应该会在控制台中看到来自 https://jsonplaceholder.typicode.com/todos/1 的 JSON 数据。如果没有看到任何输出或出现错误,则可能需要重新安装 Axios 或检查网络设置。


原文地址: https://www.cveoy.top/t/topic/flMe 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录