1. 首页
  2. 考试认证
  3. 其它
  4. hubot javascript的安装与使用示例

hubot javascript的安装与使用示例

上传者: 2024-11-04 17:01:21上传 ZIP文件 5.28KB 热度 3次

hubot-javascript描述用于NPM的打包安装。可以通过以下命令安装:npm install --save hubot-javascript,并将["hubot-javascript"]添加到您的external-scripts.json中。以下是一些示例:

  1. hubot js [1,2,3].map(function (n) { return n * n; }) -> [1, 4, 9]

  2. hubot run String.fromCharCode(72, 85, 66, 79, 84) -> 'HUBOT'

  3. hubot sandbox 0.1 + 0.2 -> 0.30004

下载地址
用户评论