当前位置: 代码迷 >> Web前端 >> dwr处置java方法返回的Map
  详细解决方案

dwr处置java方法返回的Map

热度:114   发布时间:2012-08-22 09:50:35.0
dwr处理java方法返回的Map

<script type="text/javascript">?
??????????? function fillOrderForm(addr_id){?
??????????????? if(addr_id != ""){?
??????????????????? BuyAddress. getRaddrById(addr_id,setData);?
??????????????? }?
else{?
??????????????????? document.?
orderForm .reset();?
??????????????? }????????????????
??????????? }????????
??????????? function setData(map){?
??????????????? document.getElementById('contact_name').value = map['cust_name'];?
??????????????? document.getElementById('address').value = map['address'];?
??????????????? document.getElementById('post_code').value = map['post_code'];?
??????????????? document.getElementById('phone').value = map['phone'];?
??????????????? document.getElementById('cell_phone').value = map['cell_phone'];?
??????????? }?
??????? </script>

?

  相关解决方案