在学习JavaScript时,我使用split但无法正常工作,并带有json结果
const request = require('request')
let count = 0;
function test() {
console.log(count)
request({uri: "https://google.com"}, (err, resp, body) => {
console.log(count)
count++;
test();
})
}
请解释一下我被搞砸了。
我想得到
[\"a\",\"b\"]","[]","[]","{"userEmail": "abc@gmail.com", "password": "AFds@42"}
[ [\"a\",\"b\"],[],[],{"userEmail": "abc@gmail.com", "password": "AFds@42"} ]