同步编程和异步编程(在node.js中)有什么区别?
var result = database.query("SELECT * FROM hugetable"); console.log("Hello World");
database.query("SELECT * FROM hugetable", function(rows) { var result = rows; }); console.log("Hello World");
console.log('Hello world')
.
临摹微笑
呼唤远方
开满天机
相关分类