plugins 异步加载模块

This commit is contained in:
life
2015-10-27 18:23:51 +08:00
parent 848f1aff92
commit 0e0697e50b
8 changed files with 80 additions and 23 deletions

8
tests/testNeedle.js Normal file
View 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);
});