json 异步处理

public String queryPlanFormByCode()
{
final List<PlatForm> planFormLst = new ArrayList<PlatForm>(KeyConstant.INITIAL_NUMBER);

JSONArray jsonArray = JSONArray.fromObject(planFormLst);

String jsonData = jsonArray.toString();

return jsonData ;
}

//查询企业对应的域编号
function queryPlanForm(Code)
{
var Code = document.getElementById("Code").value;
buffalo.remoteCall("appCodeManagerBuffalo.queryPlanFormByCode", [ Code ],
function(reply) {
var result = reply.getResult();
var res = eval('('+ result +')');
var planCode = document.getElementById("platformId");
var len = res.length;
var planForm = null;
planCode.options.length = 0;
for (var i=0;i<len;i++)
{
planForm = res[i];
planCode.add(new Option(planForm.pid,planForm.pid));
}
});
}


<bean name="buffaloConfigBean"
class="net.buffalo.service.BuffaloServiceConfigurer">
<property name="services">
<map>
<entry key="appCodeManagerBuffalo">
<ref bean="appInfoManager" />
</entry>
</map>
</property>
</bean>

<bean id="appInfoManager"
class="enterpriseApp.manager.impl.AppInfoManagerImpl">
<property name="appInfoDao">
<ref bean="appInfoDao" />
</property>
<property name="transactionManager">
<ref bean="transactionManager" />
</property>
</bean>


<select name="appInfo.platformId" id="platformId" style="width: 138px">
<option value="">请选择..</option>
</select>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值