superagent // 設(shè)置些需要的頭 .get('http://passport.chinahr.com/ajax/m/existLoginName') .query('input' + "=" + 15800000000) .end(function (err, response) { console.log('返回', response.body, err) }); request .get('http://passport.chinahr.com/ajax/m/existLoginName?input=15800000000', function (err, res) { console.log('req', res.body) }) 請(qǐng)求中華人才網(wǎng)的一個(gè)接口,用request.get 能正確返回想要的結(jié)果用superagent卻得到空。
兩個(gè)node 后端請(qǐng)求包(superagent和request)的get請(qǐng)求有什么不同嗎?
有只小跳蛙
2019-03-14 18:13:34