|
楼主 |
发表于 2016-12-15 09:34:31
|
显示全部楼层
本帖最后由 shuaigej 于 2016-12-15 09:36 编辑
试了这种写法,老报错:
一长串:
at gems.Operation__do.getuserid(Operation__do.java:171)
at gems.Operation__do.getuserid(Operation__do.java:171)
at gems.Operation__do.getuserid(Operation__do.java:171)
at gems.Operation__do.getuserid(Operation__do.java:171)
at gems.Operation__do.getuserid(Operation__do.java:171)
at gems.Operation__do.getuserid(Operation__do.java:171)
at gems.Operation__do.getuserid(Operation__do.java:171)
at gems.Operation__do.getuserid(Operation__do.java:171)
at gems.Operation__do.getuserid(Operation__do.java:171)
at gems.Operation__do.getuserid(Operation__do.java:171)
at gems.Operation__do.getuserid(Operation__do.java:171)
at gems.Operation__do.getuserid(Operation__do.java:171)
.w里这么写的:
Model.prototype.session = function(event) {
var result1 = GetQueryString("code");
var result2="";
Baas.sendRequest({
"url" : "/gems/operation",
"action" : "getuserid",
"params" : {
code : result1
},
"success" :function(result) {
result2=result;
}
});
return result2;
}
java里这么写的:
public static String getuserid(String code){
String str = "success";
return str;
}
|
|