我正在使用Parse js调用一个云代码函数
Parse.Cloud.run('enterproductwithid',
{
"token": token,
"objId": objectIdOfCurrentProd,
"username": currentUser1.username
}我的云代码函数是:
Parse.Cloud.define("enterproductwithid", function(request, response)
{
console.log(request.params);
});仅传递token参数。没有其他的日志。有什么想法好让我不用再扯头发了吗?!
谢谢!!
发布于 2015-01-28 16:16:52
请勿将参数键括在引号中。它类似于$.ajax POST函数。
Parse.Cloud.run('enterproductwithid',
{
token: token,
objId: objectIdOfCurrentProd,
username: currentUser1.username
},{
success: function(result) {
//do neat stuff
},
error: function(e) {
//error
}
});https://stackoverflow.com/questions/28162866
复制相似问题