var client = require(“…/model/db”).client; var login; login = function (response, request, arguments) { var result = ""; client.query("select * from user", function (err, results) { if (err) { throw err; } result = JSON.stringify(results); response.write(result); client.end(); }); response.end(); };
前台收到空数据,求解。
9 回复