以下是錯誤日誌 ReferenceError:未在回調對象處定義 (C:\ Users \ Username \ Desktop \ JsGame-master \ APP.JS:137:45) at Module._compile(module.js:413:34) at Object.Module._extensions..js(module.js:422:10) at Module.load(module.js:357:32) at Function.Module._load(module.js:314:12) at Function.Module.runMain(module.js:447:10) at startup(node。 js:146:18) at node.js:404:3我在「Syncano」的實例類中創建了對象。我非常喜歡這個ReferenceError:未定義回調
var connection = Syncano({apiKey: 'abc',
userKey: 'abc',
defaults: {
instanceName: "interactiveboard",
className: "players"
}
});
var DataObject = connection.DataObject;
DataObject .please() .list() .then(function(res) {
console.log(res);
});
var dataObject = {
avatar: "Geralt",
nickname: "Rivia",
email:"[email protected]"
};
DataObject.please().create(DataObject).then(callback);