Baas.sendRequest({ "url" : "/weixin/weixin", "action" : "userinfo", "async" : false, "params" : { code : [1,2,3,4,5,6] }, "success" : function(weixinUser) { debugger } });
JSONArray userCode = (JSONArray) params.get("code"); Object [] o =userCode.toArray(); for(int i=0;i<o.length;i++){ System.out.println("--test------"+o[i]); }
评一波