negativeInfinity's recent timeline updates
negativeInfinity

negativeInfinity

V2EX member #276161, joined on 2017-12-22 03:46:15 +08:00
negativeInfinity's recent replies
Oct 31, 2019
Replied to a topic by nilai 程序员 求推荐一个电脑包
TIMBUK2
Dec 29, 2018
Replied to a topic by lovelybear 程序员 StackoverFlow 社区真不友好
建议大家读读这个 http://blog.jobbole.com/114499/
可以用用 jshint, 它会告诉你具体那个文件哪一行出现了什么样的编译错误。
Feb 5, 2018
Replied to a topic by yilai Node.js 怎么获取 nodejs 中 get 请求的返回值呢
不支持缩进?哪里能看到输入框支持什么样的格式呢?
```
let test = 'test';
```

```javascript
let testAgain = 'test';
```
Feb 5, 2018
Replied to a topic by yilai Node.js 怎么获取 nodejs 中 get 请求的返回值呢
const rp = require('request-promise');

const getToken = () => {
return getMySavedToken().then((token) => { // Assume your getMySavedToken API returns a Promise.
if (token && hasExpired(token)) { // If token hasn't expired.
return token;
}
return rp.get('Get a new token here').then((body) => {
return JSON.parse(body).access_token;
});
});
};

getToken().then((token) => {
// use my token
}).catch((err) => {
// Oops, something's wrong!
});
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2707 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 16ms · UTC 14:55 · PVG 22:55 · LAX 07:55 · JFK 10:55
♥ Do have faith in what you're doing.