1
我有以下代碼:Meteor.http.call:如何將Meteor.http.call的結果分配給服務器端的變量?
Meteor.http.call("POST","/abcd/efd",{data:payload}, function (error,result) {
if (error){
//...
} else {
myresult=result
}
});
console.log("myresult-->",myresult) //myresult is undefined here
因爲代碼是在服務器端無法使用會話。