1 Star 0 Fork 0

Roby&奋斗码农 / scripts

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
iCloud.md 743 Bytes
一键复制 编辑 原始数据 按行查看 历史
lxk0301 提交于 2020-09-23 10:01 . 更新readme
  • 腾云云函数使用,我说下面几点:

    • 先下本仓库脚本,然后本地 npm install 下载好依赖包

    • 其中npm install 的使用,需要本地pc安装node.js可自行搜索安装

    • 腾讯云那边使用的时候,选择上传本地文件夹(因为在线下载的依赖包会有问题),如下图

      Snipaste_2020-08-28_09-31-42.png

    • 其中index.js文件,需要下面这样子写,其中require里面,你需要的是哪个脚本,就写那个脚本的名称.

      'use strict';
      exports.main_handler = async (event, context, callback) => {
          require('./jd_speed.js')
      }

      txy.png

1
https://gitee.com/beilutesoft/scripts.git
git@gitee.com:beilutesoft/scripts.git
beilutesoft
scripts
scripts
master

搜索帮助