如何學好java

          如何學好java,其實很簡單,只要用心體會,慢慢積累!
          posts - 106, comments - 7, trackbacks - 0, articles - 3
            BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

          ajax 賦值

          Posted on 2011-12-15 09:37 哈希 閱讀(165) 評論(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.);                        
                   }

                 }
          );
           }

           

           

          主站蜘蛛池模板: 建平县| 墨竹工卡县| 临城县| 巴青县| 容城县| 上高县| 德令哈市| 杨浦区| 湘潭市| 崇左市| 新津县| 常宁市| 蓬溪县| 郸城县| 洪泽县| 南通市| 平遥县| 河西区| 绥德县| 三门峡市| 新干县| 门源| 南川市| 万荣县| 台山市| 车险| 海盐县| 大姚县| 望都县| 徐汇区| 台山市| 梁平县| 水城县| 错那县| 饶河县| 赣榆县| 南和县| 陇西县| 耿马| 镇安县| 万宁市|