我正在使用最新的 phonegap/cordova 2.1 版。当我执行 var allItems = Item.all(); 时,我在 Eclipse logcat 中的日志被代码污染了
allItems.list(null, function (results) {
results.forEach(function (r) {
console.log(r.id+ " " + r.lat + " " + r.long + " " + r.state);
});
});
我得到一个输出(对于 100 行)
10-29 10:56:13.270: I/Web Console(5961): } function (value) {
10-29 10:56:13.270: I/Web Console(5961): if (value === undefined) {
10-29 10:56:13.270: I/Web Console(5961): return getterCallback();
10-29 10:56:13.270: I/Web Console(5961): } else {
10-29 10:56:13.270: I/Web Console(5961): setterCallback(value);
10-29 10:56:13.270: I/Web Console(5961): return scope;
10-29 10:56:13.270: I/Web Console(5961): }
10-29 10:56:13.270: I/Web Console(5961): } function (value) {
10-29 10:56:13.270: I/Web Console(5961): if (value === undefined) {
10-29 10:56:13.270: I/Web Console(5961): return getterCallback();
10-29 10:56:13.270: I/Web Console(5961): } else {
10-29 10:56:13.270: I/Web Console(5961): setterCallback(value);
10-29 10:56:13.270: I/Web Console(5961): return scope;
10-29 10:56:13.270: I/Web Console(5961): }
10-29 10:56:13.270: I/Web Console(5961): } function (value) {
10-29 10:56:13.270: I/Web Console(5961): if (value === undefined) {
10-29 10:56:13.270: I/Web Console(5961): return getterCallback();
10-29 10:56:13.270: I/Web Console(5961): } else {
10-29 10:56:13.270: I/Web Console(5961): setterCallback(value);
10-29 10:56:13.270: I/Web Console(5961): return scope;
10-29 10:56:13.270: I/Web Console(5961): }
10-29 10:56:13.270: I/Web Console(5961): } at :1149822901