如何学好java

如何学好java,其实很简单,只要用心体会,慢慢积累!
posts - 106, comments - 7, trackbacks - 0, articles - 3
  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

ajax 赋值

Posted on 2011-12-15 09:37 哈希 阅读(157) 评论(0)  编辑  收藏 所属分类: Js and Jquery 常用总结

 

 function getCustomer(url, param, width, height){
  
var rs = window.showModalDialog(url,param,"dialogWidth=" + width + "px;dialogHeight=" + height + "px");
  
var aValues=rs.split(",");
  $(
"#supplier").val(aValues[0]);
  getCustomerInfo($(
"#supplier").val());
 $(
"#suppliername").val(aValues[1]);
 }


 
 
    
function getCustomerInfo(id){
        alert(id);
       $.ajax(
{
          type: 'get',
         url: 
"<c:url value='/k4_oldGoldStorsge/getCustomer/'/>"+id,
         dataType: 'json',
         success: 
function(data) {
             alert(data.name);
             $(
"#receiveName").val(data.legalperson);   //name
             $("#receiverId").val(data.account);        //code
             $("#receiverBank").val(data.baseBank);     //account
             $("#receiverPhone").val(data.taxpayerTel);  //telephone
             $("#").val(data.);                        
         }

       }
);
 }

 

 


只有注册用户登录后才能发表评论。


网站导航: