You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
asyncfunctiongetIssues(){returnnewPromise((resolve,reject)=>{constoptions={method: 'GET',headers: {"user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36"}};varrequest=require('request');request('https://api.github.com/repos/lotosbin/lotosbin.github.io/issues?labels=published',options,function(error,response,body){if(!error&&response.statusCode==200){resolve(JSON.parse(body));}else{reject(error||`${response.statusCode}`)}})})}
原因
使用
npm install
node generate.js
(node version 10.x)实现
TODO
参考
ref:
ref: zp1112/blog#3
https://www.v2ex.com/t/253854
The text was updated successfully, but these errors were encountered: