node.js
文章平均质量分 62
cxy_12345
难寻少年时,总有少年来
展开
-
利用github定时执行任务
# 前言之前用node写了个程序,想要他每天定时执行,但是不想买云服务器也不想自己电脑当服务器天天开着机,无意中发现github可以实现该需求。# github怎么实现利用github Actions实现。## 步骤1、程序上传到github,点击【Actions】![image.png](https://p9-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/140229c6001c46f5afd7bfffa6235a05~tplv-k3u1fbpfcp-wate原创 2021-09-15 16:23:35 · 4154 阅读 · 0 评论 -
nodejs request get请求外部接口,报错请求超时Error: connect ETIMEDOUT 220.181.38.149:80
nodejs request get请求外部接口,报错请求超时问题,一直以为是写法不对,后来是发现公司网设置了代理,程序中同样需要设置代理var reqUrl = request(url,{'proxy':'http://username:password@url:port'});//这是get方式request('http://www.baidu.com',{'proxy':'http...原创 2019-08-22 17:02:34 · 6864 阅读 · 0 评论