|
本帖最后由 wbjkf 于 2017-11-20 22:25 编辑
- //根据org_id获取成员信息
- Model.prototype.getMemberbyOrgID=function(org_id){
- var mapParam = new biz.Request.MapParam();
- mapParam.put("p", org_id);
- var actiomParam = new biz.Request.ActionParam();
- actiomParam.setMap("variables", mapParam);
- var self=this;
- var content="";
- biz.Request.sendBizRequest({
- "context" : self.getContext(),
- "action": "getMemberByOrgID",
- "parameters": actiomParam,
- "callback": function(data) {
- data.ignoreError = false;
- if (data.state) {
- var rows=data.response.rows;
- if(rows){
- for(var i in rows){
- content+=rows[i].partyMem_name.value+",";
- }
- }else{
- content= "暂无成员";
- }
- //return content;
- }
- return content;
- }
- });
- }
复制代码 以上代码每次都返回undefined,但是debugger这个函数时content是有值的啊,请管理员帮忙 |
|