mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-14 15:11:24 +00:00
plugins 异步加载模块
This commit is contained in:
8
tests/testNeedle.js
Normal file
8
tests/testNeedle.js
Normal file
@@ -0,0 +1,8 @@
|
||||
var needle = require('needle');
|
||||
var url = 'http://i7.baidu.com/it/u=401605395,2928249378&fm=96&s=5DAEA85217785B88557C00640300B062';
|
||||
url = 'http://i7.baidu.com/it/u=401605395,2928249378&fm=96&s=5DAEA85217785B88557C00640300B062';
|
||||
// url = 'http://leanote.com/images/logo.png';
|
||||
needle.get(url, function(err, resp) {
|
||||
console.log(resp.statusCode);
|
||||
console.log(typeof resp.body);
|
||||
});
|
Reference in New Issue
Block a user