锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲一级毛片免观看,亚洲午夜视频在线观看,人人狠狠综合久久亚洲高清http://m.tkk7.com/sonnylys/ 鐔熻兘鐢熷閥錛屽閥澶哄ぉ宸ワ紒 zh-cnSun, 06 Jul 2025 22:58:58 GMTSun, 06 Jul 2025 22:58:58 GMT60璇烽珮鎵嬭В鏁戝皬寮燂紝涓囧垎鎰熸縺錛佷嬌鐢╠om4j濡備綍瀹炵幇鎸塃lement鐨勬煇涓睘鎬ф帓搴忥紵錛燂紵http://m.tkk7.com/sonnylys/archive/2009/05/15/270844.htmlSonny LiSonny LiFri, 15 May 2009 06:47:00 GMThttp://m.tkk7.com/sonnylys/archive/2009/05/15/270844.htmlhttp://m.tkk7.com/sonnylys/comments/270844.htmlhttp://m.tkk7.com/sonnylys/archive/2009/05/15/270844.html#Feedback5http://m.tkk7.com/sonnylys/comments/commentRss/270844.htmlhttp://m.tkk7.com/sonnylys/services/trackbacks/270844.html璇烽珮鎵嬭В鏁戝皬寮燂紝涓囧垎鎰熸縺錛佷嬌鐢╠om4j濡備綍瀹炵幇鎸塃lement鐨勬煇涓睘鎬ф帓搴忥紵錛燂紵濡備笅闈ml鏂囦歡

<?xml version="1.0" encoding="GBK"?>
<books>
  <book name="璇烽珮鎵嬭В鏁戜笅灝忓紵" price="30.00">
  <book name="涓囧垎鎰熸縺" price="40.00">
  <book name="璋㈣阿澶у鐨勫洖搴? price="50.00">
 </books>

鎴戞兂鑾峰彇books鑺傜偣涓嬬殑鎵鏈塨ook瀛愯妭鐐癸紝騫舵寜price灞炴ф帓搴忥紝濡備綍瀹炵幇錛?br />
鏈漢闃呰dom4j鐨勬枃妗o紝鎵懼埌org.dom4j.xpath.DefaultXPath.selectNodes(Object context, XPath sortXPath)鏂規硶絎簩涓弬鏁?sortXPath"濂藉儚鏄敤鏉ユ帓搴忕殑錛屼絾涓嶇煡濡備綍鍐檚ortXPath鍙傛暟銆?br />
鍏堣阿榪囷紝鍦ㄧ嚎絳夈?br />

璇存槑錛氭湰浜轟笉闇瑕亁sl鎺掑簭鏂規銆?br />



Sonny Li 2009-05-15 14:47 鍙戣〃璇勮
]]>
鑷紪 jtle(javascript template language engine) javascript妯℃澘璇█寮曟搸, 杞繪澗澶勭悊json鏁版嵁!http://m.tkk7.com/sonnylys/archive/2008/05/25/202677.htmlSonny LiSonny LiSun, 25 May 2008 02:24:00 GMThttp://m.tkk7.com/sonnylys/archive/2008/05/25/202677.htmlhttp://m.tkk7.com/sonnylys/comments/202677.htmlhttp://m.tkk7.com/sonnylys/archive/2008/05/25/202677.html#Feedback4http://m.tkk7.com/sonnylys/comments/commentRss/202677.htmlhttp://m.tkk7.com/sonnylys/services/trackbacks/202677.html  闃呰鍏ㄦ枃

Sonny Li 2008-05-25 10:24 鍙戣〃璇勮
]]>
Prototype瀛︿範蹇?涔?bind鏂規硶鐨勨滆皽鈥濊糠浜鴻壊褰╋紒http://m.tkk7.com/sonnylys/archive/2008/05/08/199080.htmlSonny LiSonny LiThu, 08 May 2008 14:37:00 GMThttp://m.tkk7.com/sonnylys/archive/2008/05/08/199080.htmlhttp://m.tkk7.com/sonnylys/comments/199080.htmlhttp://m.tkk7.com/sonnylys/archive/2008/05/08/199080.html#Feedback6http://m.tkk7.com/sonnylys/comments/commentRss/199080.htmlhttp://m.tkk7.com/sonnylys/services/trackbacks/199080.html     Prototype鐨刡ind鏂規硶甯稿父鎶婅澶氬涔犲畠鐨勪漢寮勫緱緋婄硦娑傛秱錛実oogle鍜宐aidu涓鐣悗榪樻槸涓濉岃儭娑傦紒鏈漢涔熷姝わ紱鏈漢瑙夊緱瀹冩槸涓粠“璋滀漢”鍒?#8220;榪蜂漢”鐨勬柟娉曘傛鏂囧皢鍙戣〃涓漢瀵規鏂規硶鐨勭悊瑙o紝甯屾湜鑳藉府鍔╁ぇ瀹舵垚鍔熸浮“璋?#8221;錛屽埌杈?#8220;榪蜂漢”鐨勫郊宀革紒
<html>
<head>
 <script src="prototype.js"></script> //@7
 <script type="text/javascript">
   /**********************************
    *
    *  瀹炵幇娓叉煋涓涓甫鏈?涓婁竴欏?鍜?涓嬩竴欏?鐨勭粍浠?鐐瑰嚮"涓婁竴欏?,褰撳墠欏靛噺1,鐐瑰嚮"涓嬩竴欏?褰撳墠欏靛姞1
    *
    */
   function PagesSystem(container){
     this.currentPage = 10; //褰撳墠欏?br />      this.pageSysDiv = document.getElementById(container); //瀹瑰櫒
    
     this.init = function() { //灝嗙粍浠剁敾鍑烘潵
       this.createPrePage();
       this.createNextPage();
     };
    
     this.changePage = function(evtObj) { //鏍規嵁鐐瑰嚮鍚庝紶榪囨潵鐨勫弬鏁板喅瀹氭槸鍔?鎴栨槸鍑?
        if(evtObj == "next") {
          this.currentPage += 1;
          alert("浣犲凡鎵ц灝嗗綋鍓嶉〉鍔?錛岀幇鍦ㄥ綋鍓嶉〉鏄細" + this.currentPage);
        }else if(evtObj == "pre"){
          //姝ゅ涓嶄綔if(this.currentPage ==1) return;闄愬埗涓轟簡浣撶幇褰撲紶鍏ョ殑鍙傛暟涓?pre"鏃訛紝涓嬮潰鐨刟lert()涓瀹氫細鎵ц
          this.currentPage -= 1;
          alert("浣犲凡鎵ц灝嗗綋鍓嶉〉鍑?錛岀幇鍦ㄥ綋鍓嶉〉鏄細" + this.currentPage);
        }
      
     };
    
     this.createPrePage = function() {//鍒涘緩涓婁竴欏電粍浠?br />        var _span = document.createElement("SPAN");
       _span.style.cssText = "margin-left:16px";
       var _a = document.createElement("A");
       _a.href = "#";
       _a.onclick = this.changePage; //@1 褰撶偣鍑繪錛?涓婁竴欏?錛夐摰閽椂鎵ц
       _a.innerText = "涓婁竴欏?;
       _span.appendChild(_a);
       this.pageSysDiv.appendChild(_span);
     };
    
     this.createNextPage = function() {//鍒涘緩涓嬩竴欏電粍浠?br />        var _span = document.createElement("SPAN");
       _span.style.cssText = "margin-left:16px";
       var _a = document.createElement("A");
       _a.href = "#";
       _a.onclick = this.changePage; //@2 褰撶偣鍑繪錛?涓嬩竴欏?錛夐摰閽椂鎵ц
       _a.innerText = "涓嬩竴欏?;
       _span.appendChild(_a);
       this.pageSysDiv.appendChild(_span);
     };
   
     this.init(); //鎵ц鍒濆鍖?br />    }
   function testUse(msg){//@3鍦ㄦ彁鍑洪棶棰樼幆鑺傜敤鍒?br />      alert(msg);
   }
   window.onload = function() {
     var ps = new PagesSystem("pageDiv");
   }
 </script>
</head>
<body>
  <div id="pageDiv"></div>
</body>
</html>

浜屻佸垎鏋愪唬鐮侊紝鎻愬嚭闂錛岃В鍐抽棶棰?br /> 1銆佹棤娉曚紶閫掑弬鏁伴棶棰樸?br />    浣犵粏鐪婡1鍜孈2澶?褰撳墠鐨勪唬鐮佸疄鐜版槸鏃犳硶鎶?pre"鍜?next"鍙傛暟浼犻掕繃鍘伙紝浜庢槸錛屽綋浣犺繍琛屼緥瀛愶紝鐐瑰嚮涓婁竴欏墊垨涓嬩竴欏碉紝閮芥槸娌′俊鎭痑lert鍑烘潵鐨勶紒
   榪欑鎯呭喌錛屾槸寰堝父瑙佺殑銆傞偅涔堬紝濡備綍瀹炵幇灝嗗弬鏁頒紶榪囧幓銆?br />    灝咢1澶勪唬鐮佷慨鏀瑰涓嬶細
                    _a.onclick = function(){ //@1 褰撶偣鍑繪錛?涓婁竴欏?錛夐摰閽椂鎵ц
                         testUse("pre"); //鍙傜湅@3
                         this.changePage("pre");
                    }
   榪欐牱鍒涘緩涓涓尶鍚嶅嚱鏁拌祴浜坃a.onclick,涔熷氨鏄綋_a瀵硅薄鐨刼nclick浜嬩歡瑙﹀彂鍚庡皢鎵ц姝ゅ尶鍚嶅嚱鏁幫紝鑰屽尶鍚嶅嚱鏁板皢甯繖璋冪敤testUse("pre")鍜宼his.changePage("pre")涓や釜鏂規硶錛?br />    浠庤岃揪鎴愪紶閫掑弬鏁般?br />    淇敼浠g爜錛岃繍琛屼緥瀛愬悗鐐瑰嚮涓婁竴欏靛悗浼氭樉紺哄涓嬩袱涓俊鎭紝涓涓槸testUse涓緭鍑虹殑淇℃伅錛岃瘉鏄庝簡瀹炵幇鍙傛暟浼犻掞紝鍙︿竴涓嵈鏄繍琛岄敊璇彁紺恒?br />    

   榪欐槸鎵цthis.changePage("pre")鏂規硶鎶涘嚭鏉ョ殑銆傚畠騫舵病鍍忔垜浠鏈熸兂鐨勮繍琛屻?br />    浠庢彁紺鴻幏鍒扮殑淇℃伅鏄紝瀵硅薄涓嶆敮鎸佹灞炴ф垨鏂規硶錛堝鏋滄祻瑙堝櫒鎶ョ殑鏄腑鏂囨彁紺哄氨鍙互鐪嬪埌“瀵硅薄涓嶆敮鎸佹鏂規硶鎴栧睘鎬?#8221;鐨勬彁紺猴級
   鍥炲ご鐪媡his.changePage("pre")鏂規硶錛屽緢鏄庢樉this鏄敊璇彁紺轟腑鎵鎸囩殑瀵硅薄錛屽湪鏈簲鐢ㄤ腑鎸嘝agesSystem瀵硅薄鎸囬拡鐨勫紩鐢紝鍦ㄥ簲鐢ㄤ腑紜疄鏄0鏄庝簡this.changePage("pre")鏂規硶錛屼絾涓轟粈涔堣娌℃鏂規硶鍛紵錛燂紵錛?br /> 2銆佸湪闂1涓紝鎴戜滑宸叉垚鍔熻В鍐充紶閫掑弬鏁幫紝浣哖agesSystem瀵硅薄鐨刢hangePage鏂規硶琚皝鍋蜂簡錛燂紵錛?br />    鍐嶅皢鍒氭墠鐨勪唬鐮佷慨鏀瑰:
                     _a.onclick = function(){ //@1 褰撶偣鍑繪錛?涓婁竴欏?錛夐摰閽椂鎵ц
                       testUse("pre"); //鍙傜湅@3
                       alert(this.tagName);
                       this.changePage("pre");
                    }
   鍐嶈繍琛屼緥瀛愶紝浣犱細鍙戠幇杈撳嚭this.tagName鐨勫間負 A, 瀹冨氨鏄痏a瀵硅薄銆傚櫌錛屾垜鐨勫ぉ鍟娿傛庝箞浼氳繖鏍鳳紵錛燂紵
   鍝堝搱..._a瀵硅薄灝辨槸<a href=""/></a>榪欎釜html 鍏冪礌瀵硅薄錛岃繖閲屾槸“涓婁竴欏?#8221;閾甸挳瀵硅薄錛屽師鍨嬩腑鍝潵changePage鏂規硶鍟婏紝鎵浠ユ姤閿欙紒錛侊紒
   浣犲彲浠ヨ繖鏍風悊瑙o紝鐪嬪涓嬩唬鐮?
     function PagesSystem(container){//姝ゅ簲鐢ㄤ腑鐨凱agesSystem瀵硅薄錛宑hangePage鏂規硶鐨勪笂涓嬫枃瀵硅薄,涔熷彲浠ョО涓哄綊灞炶呫?br />        //...鐪佺暐鍏跺畠浠g爜
       this.changePage = function(evtObj) { //鏍規嵁鐐瑰嚮鍚庝紶榪囨潵鐨勫弬鏁板喅瀹氭槸鍔?鎴栨槸鍑?
         if(evtObj == "next") {
           this.currentPage += 1;
           alert("浣犲凡鎵ц灝嗗綋鍓嶉〉鍔?錛岀幇鍦ㄥ綋鍓嶉〉鏄細" + this.currentPage);
         }else if(evtObj == "pre"){
           //姝ゅ涓嶄綔if(this.currentPage ==1) return;闄愬埗涓轟簡浣撶幇褰撲紶鍏ョ殑鍙傛暟涓?pre"鏃訛紝涓嬮潰鐨刟lert()涓瀹氫細鎵ц
           this.currentPage -= 1;
           alert("浣犲凡鎵ц灝嗗綋鍓嶉〉鍑?錛岀幇鍦ㄥ綋鍓嶉〉鏄細" + this.currentPage);
         }
       };
       //...鐪佺暐鍏跺畠浠g爜
     }
    
     榪欐牱鐨勪唬鐮侊紝浣犲緢瀹規槗鐪嬪嚭this鏄寚PagesSystem, 閭d箞鎴戜滑緇х畫寰涓嬬湅
     鍋囪 A瀵硅薄鐨勫師鍨嬪涓?
     function A() {//@4
       //...
        this.onclick;
       
        this.doClick = function() { //鐐瑰嚮
          this.onclick();//鎵ц
        }
      
       //...
     }
    
     褰撲綘鍦≒agesSystem鏂規硶涓?br />                    _a.onclick = function(){ //@1 褰撶偣鍑繪錛?涓婁竴欏?錛夐摰閽椂鎵ц
                       testUse("pre"); //鍙傜湅@3
                       alert(this.tagName);
                       this.changePage("pre");
                    }
    鍐欎笂榪欐牱鐨勪唬鐮佸悗,浣犲彲浠ョ璋辮涓篅4鐨勪唬鐮佺殑妯℃牱鏄涓嬶細
    function A() {//@4
       //...
        this.onclick = function(){ //@1 褰撶偣鍑繪錛?涓婁竴欏?錛夐摰閽椂鎵ц
             testUse("pre"); //鍙傜湅@3
             alert(this.tagName); //@5
             this.changePage("pre"); //@6
          };
       
        this.doClick = function() { //鐐瑰嚮
          this.onclick();//鎵ц
        }
       //...
     }
     鍛靛懙銆傘傚鏋滆繖鏍風湅鐨勮瘽錛孈5,@6涓殑this褰撶劧鏄寚a瀵硅薄錛屾病寮備箟銆傞偅褰撶劧鏄病changePage鏂規硶銆?br />     
3銆侀偅涔堝浣曡В鍐寵繖闂鍛紵錛?br />    寰堝垢榪愶紝prototype.js涓殑bind鏂規硶灝卞彲浠ヨВ鍐寵繖鏍風殑闂錛屽畠榪樿В鍐蟲垜浠笂闈㈡彁鐨勪紶鍙傛暟闂銆?br />    鐪媌ind澶т緺甯呮牱:
  
   bind: function() {
    if (arguments.length < 2 && Object.isUndefined(arguments[0])) return this;
    var __method = this, args = $A(arguments), object = args.shift();
    return function() {
      return __method.apply(object, args.concat($A(arguments)));
    }
  }
  bind鏂規硶涓殑this灝辨槸bind鏂規硶鐨勬墍灞炶咃紙涓婁笅鏂囷級濡? f.bind(),f鏄竴涓0鏄庝簡鐨勬柟娉?閭d箞bind 鏂規硶閲岀殑this灝辨槸f
  鍐嶇粏鐪嬶紝bind鏂規硶鍏跺疄鍋氱殑宸ヤ綔鏄繑鍥炰竴涓尶鍚嶅嚱鏁?姝ゅ尶鍚嶅嚱鏁板府蹇欐墽琛宼his鎵鎸囩殑鏂規硶錛坆ind鏂規硶鐨勬墍灞炶咃級錛屽鏋滀綘鏈夊涓嬩唬鐮?br />   function f(msg) {
    this.functionName = "f method";
    alert(msg);
    alert(this.functionName);
  }
 
  button.onclick = f.bind(this, msg); //榪欓噷鐨則his鎸噁, 鍦╞ind鏂規硶涓敤object = args.shift()鑾峰緱錛岃繖鏍風殑璇濓紝褰撶偣鍑籦utton鍚庢墽琛宖鏂規硶, f鏂規硶涓殑this灝變笉浼氭棤鏁呰 button浠f浛銆俕_^涓嶇劧錛屼細鎶ラ敊鐨勫晩錛宐utton鍝潵functionName錛屽懙鍛?..
  瀹冩棦瑙e喅灝唌sg鍙傛暟浼犺繃鍘伙紝鍚屾椂灝唂緇戝畾鍒癰utton鐜涓嬶紝bind鏂規硶寰楀悕鍙兘灝辨槸榪欐剰涔夊惂銆傝嚦浜庡浣曞疄鐜板皢f緇戝畾錛岄潬鐨勫氨鏄痑pply鏂規硶銆?br />   apply璋滀漢鑹插僵灝辯敱浣犱滑鑷鍘繪彮寮鍟︼紒
  浠嬬粛浜哹ind澶т緺緇欏ぇ瀹訛紝鎴戠殑渚嬪瓙灝遍夯鐑︿綘浠嚜宸辮皟閫氬畠鍟︺傝阿浜嗐傘?br />   
  嬈㈣繋浜ゆ祦鎸囨銆?br />
 澶囨敞錛?nbsp;濡傞渶杞澆鏈枃錛岃娉ㄦ槑鍑哄
    



Sonny Li 2008-05-08 22:37 鍙戣〃璇勮
]]>
鐢╦avascript瀹炵幇杈冧負閫氱敤鐨勫鎴風鍒嗛〉緇勪歡http://m.tkk7.com/sonnylys/archive/2008/05/04/198279.htmlSonny LiSonny LiSun, 04 May 2008 14:54:00 GMThttp://m.tkk7.com/sonnylys/archive/2008/05/04/198279.htmlhttp://m.tkk7.com/sonnylys/comments/198279.htmlhttp://m.tkk7.com/sonnylys/archive/2008/05/04/198279.html#Feedback23http://m.tkk7.com/sonnylys/comments/commentRss/198279.htmlhttp://m.tkk7.com/sonnylys/services/trackbacks/198279.html <html>
<head>
 <script src="pageSystem.js"></script>
 <script>
   var psys;
   window.onload = function() {
    psys = new PageSystem(1120, "pageDiv", 10, showMsg); //鎬昏褰曟暟, 鍒嗛〉緋葷粺瀹瑰櫒錛屾瘡緇?0欏?鍥炶皟
    psys.init();
  }
 
  function showMsg(currentPage, pageSize) {
    //鍥炶皟鏂規硶鑷畾涔夛紝涓や釜鍙傛暟錛岀涓涓負褰撳墠欏碉紝絎簩涓負姣忛〉璁板綍鏁?br />     /****************灝哻urrentPage鍜宲ageSize璇鋒眰鏁版嵁鏇存柊鍒楄〃,鏈濂戒嬌鐢╝jax鎶鏈?*****************/
    alert("璇鋒眰鏁版嵁瑕佺殑鐩稿簲鍙傛暟>> currentPage: "+ currentPage + " pageSize: " + pageSize);
  }
  
   /*****濡傛灉瑕佹洿鏂板垎欏電郴緇熻濡備笅鎿嶄綔******/
    //psys.update(count); //@count 涓鴻褰曟繪暟
    function updatePageSys() {
    
     psys.update(150); //@count 涓鴻褰曟繪暟
   }
  </script>
  <style>
    #pageDiv{
      font-size:13px;
    }
  </style>
</head>
<body>
  <div id="pageDiv">
  </div>
  <br/><br/>
  <a href="#" onclick="updatePageSys();"/>鏇存柊鍒嗛〉緋葷粺</a>
</body>
</html>

2銆乸ageSystem.js
function PageSystem(count, divID, grountCount, callBack) {
     this.totolCount = count; //鎬昏褰曟暟
     this.initMaxPage = grountCount? grountCount: 5;  //鏄劇ず欏墊暟錛屽 1 2 3 4 5
     this.pageSize = 10;  //姣忛〉璁板綍鏁?br />      this.currentMax = 0; //褰撳墠鏄劇ず鐨勬渶澶ч〉鐮? 濡?1 2 3 4 5; 5涓烘渶澶ч〉鐮?br />      this.currentMin = 0; //褰撳墠鏄劇ず鐨勬渶灝忛〉鐮? 濡?11 12 13 14 15; 11涓烘渶灝忛〉鐮?br />      this.homePage = 0; //棣栭〉
     this.endPage = 0; //鏈〉
     this.currentPage = 0; //褰撳墠欏?br />      this.currentActiveSpan; //褰撳墠媧誨姩a瀹瑰櫒
     this.pageDivObj = document.getElementById(divID); //鍒嗛〉緋葷粺瀹瑰櫒
     this.pages = 0; //鎬婚〉鏁幫紝璁$畻寰楀埌
     //this._url = _url; //鎻愪氦URL
     this.callBack = callBack; //鍥炶皟
     var that = this; //鎸囬拡鐨勫紩鐢?br />     
   
     this.init = function() {
        this.pages = parseInt(this.totolCount / this.pageSize); //鑾峰緱鎬誨叡鏈夊嚑欏?br />         this.pages = this.totolCount % this.pageSize == 0? this.pages: this.pages+1;
        this.createHomePage();
        this.createPrePage();
        var n = 1;
        while(n <= this.pages) {
          if(n > this.initMaxPage){
             break; //鍒拌揪鏈澶ф樉紺烘暟
          }
          var _span = document.createElement("SPAN");
          _span.style.cssText = "margin-left:10px";
          if(n == 1) { //鍒濆鍖栨椂絎竴欏典負媧誨姩欏?br />             _span.innerText = n;
            this.currentActiveSpan = _span;
          }else{
             var _a = document.createElement("A");
             _a.href = "#";
            _a.onclick = this.reView;
            _a.innerText = n;
            _span.appendChild(_a);
          }
          this.pageDivObj.appendChild(_span);
          n++;
        }
        if(this.pages != 0) {
          this.currentMax = n - 1; //褰撳墠緇勬渶澶ч〉鐮?1 2 3 4 5鍊間負5
          this.currentMin = 1; //褰撳墠鏈灝忛〉鐮?1 2 3 4 5 鍊間負1
          this.homePage = 1; //棣栭〉
          this.endPage = this.pages; //鏈〉
          this.currentPage = 1; //褰撳墠欏?br />         }
        //alert(this.currentMax);
        //alert(this.currentMin);
        this.createNextPage();
        this.createEndPage();
      
      
      
    };
    this.query = function() {
      var curPage = that.currentPage; //褰撳墠欏?br />       var pageSize = that.pageSize;
      if(that.callBack) that.callBack(curPage, pageSize);
         
    };
    this.reView = function() {
     //閲嶆柊娓叉煋UI
       that.reViewActivePage();
       that.query();
    };
    this.reViewActivePage = function() {
      //閲嶆柊娓叉煋褰撳墠欏佃鍥?br />       var actA = event.srcElement; //褰撳墠琚偣鍑葷殑 a瀵硅薄
      var ap = actA.parentNode; //鑾峰緱褰撳墠a瀹瑰櫒span瀵硅薄
      //榪樺師褰撳墠欏佃鍥?br />        var _a = document.createElement("A");
        _a.href = "#";
        _a.onclick = this.reView;
        _a.innerText = that.currentActiveSpan.innerText;
        that.currentActiveSpan.innerText = "";
        that.currentActiveSpan.appendChild(_a);
       //娓叉煋鏂扮殑褰撳墠欏佃鍥?br />        that.currentActiveSpan = ap; //鍒囨崲褰撳墠媧誨姩欏靛鍣?br />        var curPage = parseInt(actA.innerText);
       that.currentActiveSpan.removeChild(actA);
       that.currentActiveSpan.innerText = curPage;
       this.currentPage = curPage; //鏇存敼褰撳墠欏電爜
       if(!that.toNextGroup()) that.toPreGroup();
    };
    this.toNextGroup = function() {
       //閲嶆柊娓叉煋鏄劇ず欏典笅涓緇?1 2 3 4 5 --> 5 6 7 8 9
       if(that.currentPage == that.currentMax) {//鐐瑰嚮鐨勯〉鐮佷負褰撳墠緇勬渶澶ч〉鐮侊紝褰揼o 涓嬩竴緇?br />          if(that.currentPage != that.endPage) { //濡傛灉鐐逛簡鏈〉褰撶劧涓嶄細鍐嶆湁涓嬩竴緇勫暒錛?br />             that.pageDivObj.innerHTML = ""; //@1
            var pageCode = parseInt(that.currentPage) + 1; //鏄劇ず欏電爜
            var n = 2; //褰撳墠媧誨姩欏典笉閲嶅垱
            this.createHomePage();
            this.createPrePage();
            that.currentActiveSpan.innerText = that.currentPage;
            that.pageDivObj.appendChild(that.currentActiveSpan); //灝嗗綋鍓嶆椿鍔ㄩ〉鍥炴斁,璇風湅@1
            while(pageCode <= that.pages) {
            if(n > that.initMaxPage){
               break; //鍒拌揪鏈澶ф樉紺烘暟
            }
            var _span = document.createElement("SPAN");
            _span.style.cssText = "margin-left:10px";
            var _a = document.createElement("A");
             _a.href = "#";
            _a.onclick = that.reView;
            _a.innerText = pageCode;
            _span.appendChild(_a);
            that.pageDivObj.appendChild(_span);
            pageCode++;
            n++;
          }
          that.currentMax = pageCode - 1;
          that.currentMin = that.currentPage;
         // alert("currentMax: " + that.currentMax);
         // alert("currentMin: " + that.currentMin);
          this.createNextPage();
          that.createEndPage();
          return true;
         }//end if
       }//end if
       return false;
    };
    this.toPreGroup = function() { //
      //閲嶆柊娓叉煋鏄劇ず欏典笂涓緇?5 6 7 8 9 -->1 2 3 4 5
      if(that.currentPage == that.currentMin) { //鐐逛簡緇勪腑鏈灝忛〉鐮?br />         if(that.currentPage != 1) {
           that.pageDivObj.innerHTML = ""; //@2
            var pageCode = parseInt(that.currentPage) - (that.initMaxPage -1); //鏄劇ず欏電爜
            var n = 2; //褰撳墠媧誨姩欏典笉閲嶅垱
            this.createHomePage();
            this.createPrePage();
            while(true) {
            if(n > that.initMaxPage){
               break; //鍒拌揪鏈澶ф樉紺烘暟
            }
            var _span = document.createElement("SPAN");
            _span.style.cssText = "margin-left:10px";
            var _a = document.createElement("A");
             _a.href = "#";
            _a.onclick = that.reView;
            _a.innerText = pageCode++;
            _span.appendChild(_a);
            that.pageDivObj.appendChild(_span);
            n++;
          }
          that.currentMax = that.currentPage;
          that.currentMin = pageCode - (that.initMaxPage -1);
          //alert("currentMax: " + that.currentMax);
         // alert("currentMin" + that.currentMin);
          that.currentActiveSpan.innerText = that.currentPage;
            that.pageDivObj.appendChild(that.currentActiveSpan); //灝嗗綋鍓嶆椿鍔ㄩ〉鍥炴斁,璇風湅@2
            that.createNextPage();
            that.createEndPage();
        }//end if
      }//end if
    };
     this.toHomePage = function(){
       //鍘誨埌棣栭〉
       if(that.pages == 0) return;
       if(that.currentPage != 1) {//鍒囩粍
         that.pageDivObj.innerHTML = "";
         that.init();
       }//end if
       that.currentPage = 1;
       that.currentMin = 1;
       that.currentMax = that.initMaxPage;
       that.query();
     };
     this.toEndPage = function() {
       //鍘誨埌鏈〉
        if(that.pages == 0 ||that.currentPage == that.pages) return;
        if(true) {//鍒囩粍鏉′歡淇敼錛屾鏉′歡浣滃簾,涓存椂璁句負true
        that.pageDivObj.innerHTML = "";
        that.createHomePage();
        that.createPrePage();
        var pageCode = 1;
     var n = 1;
      while(pageCode <= that.pages) {
        if(n > that.initMaxPage-1){
          n = 1;
        }
        n++;
        pageCode++;
      }
     
      pageCode = that.pages - (n-2);
      for(var j = 1; j < n; j++) {
         var _span = document.createElement("SPAN");
       _span.style.cssText = "margin-left:10px";
       if(pageCode == that.pages) { //鍒濆鍖栨椂絎竴欏典負媧誨姩欏?br />         _span.innerText = pageCode;
        that.currentActiveSpan = _span;
       }else{
         var _a = document.createElement("A");
         _a.href = "#";
         _a.onclick = that.reView;
         _a.innerText = pageCode;
         _span.appendChild(_a);
         pageCode++;
       }
       that.pageDivObj.appendChild(_span);
      }
      
         that.createNextPage();
          that.createEndPage();
       }//end if
       that.currentPage = that.pages;
       that.currentMin = that.pages - (n-2);
       that.currentMax = that.pages;
      // alert("currentMin: " + that.currentMin);
       //alert("currentMax: " + that.currentMax);
      // alert("pages: " + that.pages);
       that.query();
     };
    
     this.next = function() {
       //涓嬩竴欏?br />      };
     this.pre = function() {
       //涓婁竴欏?br />      };
     this.update = function(count) {
       //鏇存柊鍒嗛〉緋葷粺
       this.totolCount = count;
       that.pageDivObj.innerHTML = "";
       this.init();
     };
     this.createPrePage = function() {
       return;
       var _span = document.createElement("SPAN");
       _span.style.cssText = "margin-left:16px";
       var _a = document.createElement("A");
       _a.href = "#";
       _a.onclick = this.pre;
       _a.innerText = "涓婁竴欏?;
       _span.appendChild(_a);
       this.pageDivObj.appendChild(_span);
     };
     this.createNextPage = function() {
       return;
       var _span = document.createElement("SPAN");
       _span.style.cssText = "margin-left:16px";
       var _a = document.createElement("A");
       _a.href = "#";
       _a.onclick = this.next;
       _a.innerText = "涓嬩竴欏?;
       _span.appendChild(_a);
       this.pageDivObj.appendChild(_span);
     };
     this.createHomePage = function() {
       var homeSpan = document.createElement("SPAN");
       var _a = document.createElement("A");
       _a.href = "#";
       _a.onclick = this.toHomePage;
       _a.innerText = "棣栭〉";
       homeSpan.appendChild(_a);
       this.pageDivObj.appendChild(homeSpan);
     };
     this.createEndPage = function() {
       var _span = document.createElement("SPAN");
       _span.style.cssText = "margin-left:16px";
       var _a = document.createElement("A");
       _a.href = "#";
       _a.onclick = this.toEndPage;
       _a.innerText = "鏈〉(" + this.pages +")";
       _span.appendChild(_a);
       this.pageDivObj.appendChild(_span);
     }
   }

3銆佹晥鏋滃浘
 
濡傞渶杞澆錛岃娉ㄦ槑鍘熸枃鍑哄錛佽阿璋㈠悎浣溿?/span>

Sonny Li 2008-05-04 22:54 鍙戣〃璇勮
]]>
鐢?window.showModalDialog()"瀹炵幇DIV妯″紡寮瑰嚭紿楀彛http://m.tkk7.com/sonnylys/archive/2008/05/01/197683.htmlSonny LiSonny LiThu, 01 May 2008 13:33:00 GMThttp://m.tkk7.com/sonnylys/archive/2008/05/01/197683.htmlhttp://m.tkk7.com/sonnylys/comments/197683.htmlhttp://m.tkk7.com/sonnylys/archive/2008/05/01/197683.html#Feedback15http://m.tkk7.com/sonnylys/comments/commentRss/197683.htmlhttp://m.tkk7.com/sonnylys/services/trackbacks/197683.html 1銆乼est.html  嫻嬭瘯欏?/strong>
 <html>
 <head>
   <title>嫻嬭瘯欏甸潰</title>
   <style>
     .list {
       border-top:1 solid #8A2BE2;
       border-left:1 solid #8A2BE2;
       border-right:1 solid #8A2BE2;
     }
     .list td {
       border-bottom: 1 solid #8A2BE2;
     }
   </style>
   <script>
      function $(el) {
        return document.getElementById(el);
      }
      function showWin(param) {
        window.showModalDialog("dailog.htm", param, "dialogWidth:" +param.width +"px;dialogHeight:"+param.height+"px;center:yes;help:no;scroll:no;status:no;resizable:no");
      }
     
      function TB(tbid) {
        this.tb = typeof(tbid) == "string"? $(tbid): tbid;
        this.getValue = function(rowIndex, cellIndex){
          var trs = this.tb.rows[rowIndex];
          var _td = trs.cells[cellIndex];
          return _td.innerText;
        }
        this.setValue = function(rowIndex, cellIndex, value) {
          var _tr = this.tb.rows[rowIndex];
          var _td = _tr.cells[cellIndex];
          _td.innerText = value;
        }
       
        /********鑾峰彇琛岀儲寮?*******/
        this.findRowIndex = function(eventSrc) {
          var _tr = eventSrc; //eventSrc浜嬩歡婧?蹇呴』鍦═D閲岃幏浜嬩歡婧愭槸TD鎴朤R鏈韓
          while(_tr.tagName != "TR") {
            _tr =  _tr.parentNode;
          }
          var trs = this.tb.rows;
          for(var i = 0; i < trs.length; i++){
            if(_tr == trs[i]) return i;
          }
        }
      }
          
      function edit() {
        var tb = new TB("data");
        rIndex = tb.findRowIndex(event.srcElement);
        $("updateRowIndex").value = rIndex;
        $("userName").value = tb.getValue(rIndex, 1); //鑾峰緱濮撳悕
        $("sex").value = tb.getValue(rIndex, 2); //鑾峰緱鎬у埆
        $("age").value = tb.getValue(rIndex, 3); //鑾峰緱騫撮緞
         showWin({title:"淇敼鐢ㄦ埛淇℃伅", width:390, height:230, _div:"openWin",parent:window});
      }
     
      function saveAndUpdateView(){
        var updateRowIndex = $("updateRowIndex").value;
        var tb = new TB($f("data")); //$f()鍦╠ailog.html瀹氫箟,鑾峰埌鐨則able鏄埗紿楀彛涓殑table
        tb.setValue(updateRowIndex, 1, $("userName").value);
        tb.setValue(updateRowIndex, 2, $("sex").value);
        tb.setValue(updateRowIndex, 3, $("age").value);
        close();
      }
   </script>
  
 </head>
 <body>
  <p style="margin-top:60px">
   <center>
     <table id="data" class="list" width="460px">
       <tr>
         <td>緙栧彿</td>
         <td>鐢ㄦ埛鍚?lt;/td>
         <td>鎬у埆</td>
         <td>騫撮緞</td>
         <td>鎿嶄綔</td>
       </tr>
       <tr>
         <td>1</td>
         <td>鏉庢案鑳?lt;/td>
         <td>鐢?lt;/td>
         <td>27</td>
         <td><span style="background:#FAEBD7;cursor:hand" onclick="edit();">&nbsp;淇敼&nbsp;</span></td>
       </tr>
        <tr>
         <td>2</td>
         <td>鏋楀厔</td>
         <td>鐢?lt;/td>
         <td>27</td>
         <td><span style="background:#FAEBD7;cursor:hand" onclick="edit();">&nbsp;淇敼&nbsp;</span></td>
       </tr>
        <tr>
         <td>3</td>
         <td>鍙跺厔</td>
         <td>鐢?lt;/td>
         <td>23</td>
         <td><span style="background:#FAEBD7;cursor:hand" onclick="edit();">&nbsp;淇敼&nbsp;</span></td>
       </tr>
     </table>
   </center>
  </p>
 
  <!---寮瑰嚭紿楀彛鏄劇ず鐨勫唴瀹?--->
  <div id="openWin" style="display:none;">
    <form>
      <fieldSet>
        <legend>淇敼鐢ㄦ埛</legend>
        <table>
          <tr>
            <td>鐢ㄦ埛鍚?lt;/td><td><input type="text" id="userName"/></td>
          </tr>
          <tr>
            <td>鎬у埆</td><td><input type="text" id="sex"/></td>
          </tr>
          <tr>
            <td>騫撮緞</td><td><input type="text" id="age"/></td>
          </tr>
        </table>
      </fieldSet>
      <input type="hidden" id="updateRowIndex"/>
    </form>
    <span style="background:#FAEBD7;cursor:hand" onclick="saveAndUpdateView();">&nbsp;淇敼&nbsp;</span>
  </div>
 </body>
</html>

2銆乨ailog.html 紿楀彛鍘熷瀷

<html>
 <head>
   <script>
     var param = window.dialogArguments; //浼犺繃鏉ョ殑妯″紡瀵硅瘽妗嗙獥鍙e弬鏁?br />      document.title = param.title; //紿楀彛鏍囬,蹇呴』鍦ㄧ獥鍙e垱寤哄墠瀹炵幇s
    
   /********灝嗙埗紿楀彛鐨刯s鍔犺澆榪涙潵********/
     var scripts = param.parent.document.scripts;
     var _head = document.getElementsByTagName("head")[0];
     for(var n = 0; n < scripts.length; n++) {
       if(scripts[n].src) {
         var _script = newEl("script");
         _script.src = scripts[n].src;
         bind(_head, _script);
       }else{//鍔犺澆鐩存帴鍦╤tml鏂囨。涓啓鐨剆cript
         var _script = newEl("script");
         _script.text = scripts[n].text;
          bind(_head, _script);
       }
     }
    
     /*******鏍規嵁ID鑾峰緱鐖剁獥鍙g殑鍏冪礌*********/
     function $f(el) {
       return param.parent.document.getElementById(el);
     }
   
    /***********鍒涘緩涓涓狧TML鍏冪礌*******/
     function newEl(tagName) {
       return document.createElement(tagName);
     }
     /***********榪藉姞鍏冪礌***************/
     function bind(ower, child) {
       ower.appendChild(child);
     }
     /*******鍦ㄦ祻瑙堝櫒瀹屾垚瀵硅薄鐨勮杞藉悗绔嬪嵆瑙﹀彂*********/
     window.onload = function() {
       var winDiv;
       if(typeof(param._div) == "string") {
         winDiv = param.parent.document.getElementById(param._div); //鐖剁獥鍙indow瀵硅薄,鍥犱負param._div瀵硅薄鍦ㄧ埗紿楀彛
       }else{//鐩存帴浼犲璞¤繃鏉?br />          winDiv = param._div;
       }
       $("mainDiv").innerHTML = winDiv.innerHTML; //灝咲IV鍐呭鍦ㄥ脊鍑虹獥鍙d腑娓叉煋
    }
   </script>
 </head>
 <body>
 <center>
  <div id="mainDiv" style="margin-top:20px;width:90%"></div>
 </center>
 </body>
</html>

濡傞渶杞澆錛岃娉ㄦ槑鍘熸枃鍑哄錛佽阿璋㈠悎浣溿?/span>


Sonny Li 2008-05-01 21:33 鍙戣〃璇勮
]]>
鐢ㄦā寮忓璇濇瀹炵幇鈥滄秷鎭彁紺烘鈥濆拰鈥滄搷浣滄彁紺烘鈥?/title><link>http://m.tkk7.com/sonnylys/archive/2008/05/01/197655.html</link><dc:creator>Sonny Li</dc:creator><author>Sonny Li</author><pubDate>Thu, 01 May 2008 07:54:00 GMT</pubDate><guid>http://m.tkk7.com/sonnylys/archive/2008/05/01/197655.html</guid><wfw:comment>http://m.tkk7.com/sonnylys/comments/197655.html</wfw:comment><comments>http://m.tkk7.com/sonnylys/archive/2008/05/01/197655.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://m.tkk7.com/sonnylys/comments/commentRss/197655.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/sonnylys/services/trackbacks/197655.html</trackback:ping><description><![CDATA[<br />   鐢變簬鏈漢璁や負鐢?alert()鍜宑onfirm()鐨勬秷鎭鍜屾搷浣滅‘璁ゅ璇濇錛岀晫闈笉澶弸濂斤紝涓嬮潰浠嬬粛鐢ㄦā寮忓璇濇瀹炵幇“娑堟伅鎻愮ず  妗?#8221;鍜?#8220;鎿嶄綔鎻愮ず妗?#8221;錛涚敤妯″紡瀵硅瘽妗嗕篃鍙互瀹炵幇寮瑰嚭紿楀彛(鎶辨嫭Iframe妯″紡鍙奃IV妯″紡錛夛紝DIV妯″紡杈冮夯鐑︿簺錛屼笉榪囷紝榪樻尯瀹炵敤錛岃繖閲屼笉浣滀粙緇嶃? <p><span style="color: red"><strong>1銆乼est.html 嫻嬭瘯欏?/strong></span><br /> <html><br />  <head><br />    <title>嫻嬭瘯欏甸潰</title><br />    <script><br />      /**** 鎵撳紑娑堟伅妗?***<br />    * @param 涓篛bject綾誨瀷,鍘熷瀷涓?{msg:"val1", time:val2},val1涓鴻鎻愮ず鐨勬秷鎭紝val2涓虹獥鍙e嚭鏉ュ悗寤惰繜鍏抽棴鐨勬椂闂?<br />    *<br />    */<br />    function showMsg(param) {<br />      window.showModalDialog("msg.html", param, "dialogWidth:280px;dialogHeight:180px;center:yes;help:no;scroll:no;status:no;resizable:no");<br />    }</p> <p>  /****鎿嶄綔紜紿楀彛*****<br />    * @param 涓簊tring綾誨瀷,鎻愮ず淇℃伅<br />    * @return true涓洪夊彇浜?#8220;紜畾”閾甸挳錛宖alse涓洪夊彇浜?#8220;鍙栨秷”閾甸挳<br />    */<br />    function confirm(msg) {<br />     return window.showModalDialog("confirm.html", msg, "dialogWidth:280px;dialogHeight:180px;center:yes;help:no;scroll:no;status:no;resizable:no");<br />   }<br />    <br />    <br />      function confirmDel() {<br />        var rval = confirm("紜畾鍒犻櫎姝ょ敤鎴峰悧錛?);<br />        if(rval) {<br />          showMsg({msg:"浣犵偣鍑諱簡紜畾閾甸挳", time:1200});<br />        }else{<br />          showMsg({msg:"浣犵偣鍑諱簡鍙栨秷閾甸挳", time:1200});<br />        }<br />      }<br />    </script><br />  </head><br />  <body><br />    <center><br />      <a href="#" onclick="showMsg({msg:'1縐掗挓鍚庝細鑷姩鍏抽棴鐨勬彁紺轟俊鎭', time:1000})">浼氳嚜鍔ㄥ叧闂殑鎻愮ず淇℃伅妗?lt;/a><br />      <br/><br />      <a href="#" onclick="confirmDel();">鎿嶄綔紜瀵硅瘽妗?lt;/a><br />    </center><br />  </body><br /> </html><br /> </p> <span style="color: red"><strong>2銆乵sg.html 娑堟伅妗嗛氱敤妯℃澘</strong></span><br /> <html><br />  <head><br />    <title>鎻愮ず瀵硅瘽妗?lt;/title><br />    <script><br />       var obj = window.dialogArguments; //浼犺繃鏉ョ殑妯″紡瀵硅瘽妗嗙獥鍙e弬鏁?br />       /****鍦╫bj.time縐掑悗鍏抽棴紿?***/<br />       window.setTimeout(function() {<br />        window.close();<br />       }, obj.time);<br />    </script><br />  </head><br />  <body><br />   <p style="margin-top:36px"><br />    <center><br />      <script><br />         document.write(obj.msg);  //鎵撳嵃淇℃伅<br />      </script><br />    </center><br />   </p><br />  </body><br /> </html><br /> <br /> <span style="color: red"><strong>3銆乧onfirm.html</strong></span><br /> <html><br />  <head><br />    <title>鎿嶄綔紜瀵硅瘽妗?lt;/title><br />    <script><br />      function setState() {<br />        returnValue = event.srcElement.id == "ok"? true: false;<br />        window.close();<br />      }<br />    </script><br />  </head><br />  <body><br />   <p style="margin-top:26px"><br />    <center><br />      <script><br />        var msg = window.dialogArguments? window.dialogArguments: "";<br />        document.write(msg);<br />      </script><br />      <br/><br />      <div style="margin-top:20px"><br />       <a href="#" id="ok" onclick="setState()">紜畾</a><br />       <a href="#" id="cal" onclick="setState()">鍙栨秷</a><br />      </div><br />    </center><br />   </p><br />  </body><br /> </html><br /> <br /> 榪愯test.html渚嬪瓙鍙互鐪嬪埌鐩稿簲鐨勬晥鏋?br /> <img height="332" alt="" src="http://m.tkk7.com/images/blogjava_net/sonnylys/confirm.jpg" width="418" border="0" /><br /> <br /> <br /> <img height="367" alt="" src="http://m.tkk7.com/images/blogjava_net/sonnylys/msg.jpg" width="338" border="0" /> <img src ="http://m.tkk7.com/sonnylys/aggbug/197655.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/sonnylys/" target="_blank">Sonny Li</a> 2008-05-01 15:54 <a href="http://m.tkk7.com/sonnylys/archive/2008/05/01/197655.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>綆鍗曠殑javascript鍏ラ棬鐭ヨ瘑http://m.tkk7.com/sonnylys/archive/2008/04/27/196669.htmlSonny LiSonny LiSun, 27 Apr 2008 14:53:00 GMThttp://m.tkk7.com/sonnylys/archive/2008/04/27/196669.htmlhttp://m.tkk7.com/sonnylys/comments/196669.htmlhttp://m.tkk7.com/sonnylys/archive/2008/04/27/196669.html#Feedback2http://m.tkk7.com/sonnylys/comments/commentRss/196669.htmlhttp://m.tkk7.com/sonnylys/services/trackbacks/196669.html     涓涓?JavaScript 紼嬪簭鍏跺疄鏄竴涓枃妗o紝涓涓枃鏈枃浠訛紝瀹冨祵鍏ュ埌 HTML 鏂囨。涓墽琛屻傛墍浠ワ紝涓鑸殑鏈枃緙栬緫鍣ㄥ氨鍙互瀹炵幇緙栧啓javascript浠g爜銆?br />    1銆佸皢javascript宓屽叆鍒癏TML鏂囨。涓紝涓鑸湁涓ょ瀹炵幇鏂規硶銆備竴縐嶆槸鐩存帴鍦℉TML鏂囨。涓殑浠諱綍鍦版柟鍔犲叆<script>
  <!--浣犵殑js浠g爜-->
</script>
鍊煎緱娉ㄦ剰鐨勬槸錛宩s浠g爜蹇呴』鍦?lt;frameset>涔嬪墠鎻掑叆鎵嶆湁鏁堛?br /> 鍙︿竴縐嶆槸灝唈s浠g爜鍐欏湪涓涓互 .js涓哄悗緙鐨刯s鏂囦歡閲岋紝鐢ㄤ互涓嬫柟娉曞紩鍏ュ埌HMTL妗d緵浣跨敤
 <script src="浣犺寮曞叆鐨?js鏂囦歡鐨勮礬寰? type="text/javascript"></script>
榪欎袱縐嶅疄鐜扮殑渚嬪瓙濡備笅錛?br /> <html>
 <head>
   <title>js exmaple</title>
 <!--鐩存帴鍦℉MTL鏂囨。涓啓js浠g爜--> 
  <script> 
      function  sayHello() {
          alert("hello");
     }
   </script>
 <!--浠?js鏂囦歡涓姞杞?->
  <script src="myjs/util.js"></script>
  </head>
 <body>
</body>
</html>
2銆佸彉閲忓0鏄?br />   javascript涓敤 var鍏抽敭瀛楀0鏄庝竴涓彉閲忥紝濡傦細var userName;鐢變簬javascript浣跨敤鐨勬槸寮辯被鍨嬶紝鎵浠ュ0鏄庢椂涓嶉渶瑕佹寚瀹氬叿浣撶被鍨嬶紝鍦ㄨ繍琛屾椂浼氭牴鎹墍璧嬬殑鍊兼鏌ュ叾鏁版嵁綾誨瀷銆傛瘮濡傚0鏄?var v; 鍦ㄨ繍琛屼腑濡傛灉鍑虹幇v = 123;閭d箞鍙橀噺v鎸囨暟鍊肩被鍨嬶紝濡傛灉榪愯涓嚭鐜扮殑鏄痸 = "123"錛寁 涓哄瓧絎︿覆綾誨瀷銆?br /> 3銆佸嚱鏁板0鏄庯紝浠嬬粛涓ょ鍨嬪紡
  涓銆乫unction sayHello(who) { //who涓哄弬鏁?br />               alert("say hello to: " + who);
         }
  浜屻乿ar sayHello = function(who) {
               alert("say hello to: " + who);
         }
  璇存槑錛氱浜岀澹版槑鏂瑰紡鏄皢鍑芥暟鐨勬寚閽堣祴緇欎竴涓彉閲忥紝璋冪敤濡備笅錛歴ayHello("whoOne");鍜岀涓縐嶅0鏄庢柟寮忚皟鐢ㄤ竴鏍楓備婦涓浜岀澹版槑鏂瑰紡鏈夌敤鐨勫簲鐢紝濡傦紝鍦╦s浠g爜涓紝緇欎竴涓摰閽殑onclick浜嬩歡娉ㄥ唽涓涓柟娉曞彲浠ュ涓嬪0鏄庯細    var btn = document.createElement("button"); 
              btn.onclick= function() {
                //娣誨姞褰撶偣鍑繪閾甸挳鏃舵兂鎵ц鐨刯s浠g爜
              }
4銆佷簨浠跺搷搴?br />    澹版槑浜嗙殑鍑芥暟鍙互鍦╦s浠g爜閲岃璋冪敤錛屼篃鍙互鐢ㄤ簬鍝嶅簲浜嬩歡銆傚錛?br />  <html>
 <head>
   <title>js exmaple</title>
 <!--鐩存帴鍦℉MTL鏂囨。涓啓js浠g爜--> 
  <script> 
      function  sayHello() {
          alert("hello");
     }
   </script>
  </head>
  <body>
   <!--鍝嶅簲button涓殑onclick浜嬩歡錛堝崟鍑諱簨浠訛級,璋冪敤sayHello()鏂規硶-->
   <button onclick="sayHello()">鐐瑰嚮灝嗚皟鐢╯ayHello()鏂規硶鏉ュ搷搴?lt;/button>
 </body>
</html>
榪愯渚嬪瓙錛岀偣鍑婚摰閽悗榪愯緇撴灉濡備笅錛?br />  


澶囨敞錛氳繖鏄竴綃囧緢綆鍗曠殑javascript鐩稿叧鐭ヨ瘑鏂囩珷錛岄傚悎瀵筳avascript瀹屽叏娌℃蹇電殑鍒濆鑰呭弬鑰冿紝 鏈夎涔嬪錛岃鎸囨璁ㄨ銆?br />
  
     
 

  

Sonny Li 2008-04-27 22:53 鍙戣〃璇勮
]]>
Spring涓嶴truts闆嗘垚寮鍙?/title><link>http://m.tkk7.com/sonnylys/archive/2008/03/01/183112.html</link><dc:creator>Sonny Li</dc:creator><author>Sonny Li</author><pubDate>Sat, 01 Mar 2008 03:08:00 GMT</pubDate><guid>http://m.tkk7.com/sonnylys/archive/2008/03/01/183112.html</guid><wfw:comment>http://m.tkk7.com/sonnylys/comments/183112.html</wfw:comment><comments>http://m.tkk7.com/sonnylys/archive/2008/03/01/183112.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://m.tkk7.com/sonnylys/comments/commentRss/183112.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/sonnylys/services/trackbacks/183112.html</trackback:ping><description><![CDATA[<p><br /> Spring涓嶴truts闆嗘垚寮鍙?br /> <br /> 鏈榪戝枩嬈㈠皢鎵瀛︾殑涓滆タ鐞嗛『涓涓嬶紝涓斿彂鐜板啓blog鍙互杈炬垚榪欑洰鐨勩?br /> 閭e氨鏉ユ暣鐞嗕竴涓嬫垜瀵筍pring涓嶴truts闆嗘垚寮鍙戠殑涓浜涙兂娉曘?br /> <br /> 棣栧厛紜緋葷粺鐨勭粨鏋勪負涓夊眰鐨凚/S妯″紡緇撴瀯錛屽涓嬪浘錛?br /> <img style="width: 514px; height: 339px" height="339" alt="" src="http://m.tkk7.com/images/blogjava_net/sonnylys/three.jpg" width="514" border="0" /><br /> 鍦ㄥ浘涓湅鍑猴紝Spring鍜孲truts闆嗘垚寮鍙戜腑錛孲pring鍦ㄤ笟鍔¢昏緫灞傝浣跨敤錛堥泦鎴愶級銆傚洜涓篠pring妗嗘灦鐨勪緷璧栨敞鍏ワ紝AOP鍙婂彲澹版槑鐨勪簨鍔$鐞嗘柟闈㈢殑鎶鏈紭鍔匡紝浣垮緱鐢⊿pring鏉ョ鐞嗕笟鍔″疄浣擄紝瀹炰綋涔嬮棿鐨勪緷璧栧叧緋伙紝涓氬姟閫昏緫鏈嶅姟鎺ュ彛鍙樺緱綆鍗曚笖鍙厤緗傝嚦姝ゆ垜浠娓呮錛?span style="color: red">Spring鍜孲truts闆嗘垚寮鍙戜腑錛孲pring鍦ㄤ笟鍔¢昏緫灞傝浣跨敤錛堥泦鎴愶級銆?/span><br /> <br /> 娓呮Struts鍜孲pring鍦ㄧ郴緇熺粨鏋勪腑鍒嗗埆鍏呭綋鐨勮鑹插悗錛屾帴涓嬫潵瑕佽璁猴細<span style="color: #000000"><span style="color: #ff0000">濡備綍瀹炵幇闆嗘垚</span>錛?br /> <strong style="color: #0000ff">1銆佷嬌鐢⊿pring鐨凙ctionSurpert綾婚泦鎴怱truts銆?/strong><br /> org.springframework.web.struts.ActionSurpert鏄竴涓戶鎵縪rg.apache.struts.action.Action鐨勭被錛岀畝瑕佷唬鐮佸涓嬶細<br /> public abstract class ActionSurpert extends Action {<br />      private WebApplicationContext webApplicationContext;<br />      public void setServlet(ActionServlet actionServlet) {//<span style="color: red">褰撳鍣ㄥ疄渚嬪寲姝ction鏃惰瀹瑰櫒璋冪敤<br /> </span>           surper.setServlet(actionServlet);<br />            if(actionServlet != null) {<br />               this.webApplicationContext = initWebApplicationContext(actionServlet);//<span style="color: red">鑾峰彇webApplicationContext<br /> </span>               //........<br />            }else{<br />              //.......<br />            }           <br />      } <br />      <br />      //閫氳繃getXXX()鏂規硶鑾峰彇   webApplicationContext 瀵硅薄<br />      protected final WebApplictionContext getWebApplicationContext() {<br />             return this.webApplicationContext;<br />     }<br /> }<br /> 閫氳繃涓婅堪浠g爜鍙互鐪嬪嚭錛屾墍鏈夌戶鎵夸簡ActionSupport綾葷殑Action灝嗗彲浠ラ氳繃WebApplicationContext瀵硅薄鐨刧etBean(beanKey)鏂規硶鑾峰緱Spring閰嶇疆鏂囦歡涓畾涔夌殑鍚勭Bean銆?br /> WebApplicationContext瑕佺敱Web Server鏉ュ姞杞斤紝鏈変袱縐嶆柟娉曪細<br /> 錛戙侀氳繃org.springframework.web.struts.ContextLoaderPlugIn鍔犺澆錛孋ontextLoaderPlugIn鏄釜鎻掍歡錛岄渶瑕佸湪Struts閰嶇疆鏂囦歡涓厤緗?br /> <plug-in className="org.springframework.web.struts.ContextLoaderPlugIn"><br />    <set-property property = "contextConfigLocation" value="/WEB-INF/applicationContext.xml"></set-property><br /> </plug-in><br /> 2銆佸湪web.xml鏂囦歡涓姞杞?br /> <context-param><br />   <param-name>contextConfigLocation</param-name><br />  <param-value>/WEB-INF/applicationContext.xml</param-value><br /> </context-param><br /> <servlet><br />  <servlet-name>context</servlet-name><br /> <servlet-class>org.springframework.web.context.ContextLoaderServlet</servlet-name><br /> <load-on-startup>1</load-on-startup><br /> </servlet><br /> 涓句釜綆鍗曠殑渚嬪瓙璇存槑涓涓嬬浉鍏抽厤緗俊鎭細<br /> 鍋囧畾鏈塃xampleAction錛孍xampleBean錛孍xampleService榪欏嚑涓被錛屽畠浠伐浣滄祦紼嬫槸錛?br /> 鐢ㄦ埛璇鋒眰ExampleAction錛孍xampleAction璋冪敤ExampleService鐨勬帴鍙f柟娉曞ExampleBean榪涜鐩稿叧鐨勬搷浣溿?br /> 1銆乤pplicationContext.xml涓厤緗浉鍏崇殑bean淇℃伅<br /> <beans><br /> <bean id="<span style="color: red">dataSource</span>" class="org.springframework.jdbc.datasource.DriverManagerDataSource"><br />   <property name="driverClassName"><br />    <value>com.mysql.jdbc.Driver</value><br />   </property><br />   <property name="url"><br />    <value>jdbc:mysql://localhost:3306/ssh?useUnicode=true&amp;characterEncoding=UTF-8</value><br />   </property><br />   <property name="username"><br />    <value>root</value><br />   </property><br />   <property name="password"><br />    <value>root</value><br />   </property><br />  </bean><br /> <bean id="<span style="color: red">exampleBean</span>" class="org.mypackge.beans.ExampleBean"/><br /> <bean id="<span style="color: red">exampleBeanService</span>" class="org.mypackge.services.ExampleService"/>@<br /> </beans><br /> 閫氳繃榪欐牱閰嶇疆鍚庯紝鍦‥xampleAction涓彲浠ョ敤getWebApplicationContext() 鑾峰緱webApplicationContext瀵硅薄錛岀劧鍚庨氳繃<br /> webApplicationContext鐨刧etBean(<span style="color: red">beanKey</span>)鏂規硶鑾峰緱鐩稿簲鐨刡ean榪涜涓氬姟澶勭悊銆傛爣浜嗙孩鑹茬殑"beanKey"灝辨槸applicationContext.xml涓?lt;bean>鍏冪礌瀹氫箟鐨刡ean id錛屽:webApplicationContext.getBean("<span style="color: red">exampleBeanService</span>")銆侤<br /> <br /> 褰撶劧錛孍xampleAction榪樿鍦╯tuts-config.xml閰嶇疆鏂囦歡涓厤緗紝榪欓噷涓嶄綔浠嬬粛銆?br /> <strong style="color: #0000ff">2銆佷嬌鐢⊿pring鐨凙ction浠g悊闆嗘垚Struts</strong><br /> 榪欑闆嗘垚鏂瑰紡鐨勬牳蹇冩濇兂鏄紝灝哠truts鐨勯厤緗枃浠朵腑鐨勬墍鏈堿ction鐨則ype灞炴ц涓簅rg.springframwork.web.struts.DelegationActionProxy銆傚綋鐢ㄦ埛璇鋒眰Action鏃訛紝灝辨墽琛岃繖浠g悊錛屼唬鐞嗕細鍦⊿pring搴旂敤涓婁笅鏂囦腑鎵懼埌鐪熸鐨凙ction錛岀劧鍚庝氦緇欏畠澶勭悊鐢ㄦ埛鐨勮姹傘傝岀湡姝g敤浜庡鐞嗙敤鎴瘋姹傜殑Action鐨勯厤緗斁鍦ㄤ簡Spring鐨勯厤緗枃浠朵腑銆傝繖鏍鳳紝Struts涓殑Action浠ュ強鍏朵緷璧栧叧緋誨氨鍙互鐢⊿pring瀹瑰櫒鏉ョ鐞嗭紝姣斿灝嗕笟鍔¢昏緫瀵硅薄娉ㄥ叆鍒癆ction涓紝渚涘叾浣跨敤銆傜畝鍗曠墖孌?lt;bean<span style="color: #ff99cc"> name="/exampleAction" </span>class="org.myproj.struts.actions.ExampleAction"><br /> ....<br /> </bean><br /> 璇存槑錛氱敤name灞炴ц屼笉鏄敤id鏉ユ爣璇嗚繖涓狟ean,Spring涓嶅厑璁窱D涓嚭鐜?/"錛岃宯ame鍙互錛?name"灞炴у艱鍜宻truts-config.xml鏂囦歡涓浉搴?lt;action>鍏冪礌涓殑path灞炴у肩浉鍚?span style="color: #ff99cc">(<action path="/exampleAction"</span>)錛岃繖鏍稟ction浠g悊鎵嶈兘鎵懼埌鐩稿簲鐨凙ction鏉ュ鐞嗚姹傘?br /> <br /> 嬈㈣繋璁ㄨ錛屾彁鍑哄疂璐墊剰瑙併?br /> <br /> <br /> </p> </span> <img src ="http://m.tkk7.com/sonnylys/aggbug/183112.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/sonnylys/" target="_blank">Sonny Li</a> 2008-03-01 11:08 <a href="http://m.tkk7.com/sonnylys/archive/2008/03/01/183112.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>struts涓巋ibernate闆嗘垚寮鍙?/title><link>http://m.tkk7.com/sonnylys/archive/2008/02/29/183017.html</link><dc:creator>Sonny Li</dc:creator><author>Sonny Li</author><pubDate>Fri, 29 Feb 2008 10:44:00 GMT</pubDate><guid>http://m.tkk7.com/sonnylys/archive/2008/02/29/183017.html</guid><wfw:comment>http://m.tkk7.com/sonnylys/comments/183017.html</wfw:comment><comments>http://m.tkk7.com/sonnylys/archive/2008/02/29/183017.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/sonnylys/comments/commentRss/183017.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/sonnylys/services/trackbacks/183017.html</trackback:ping><description><![CDATA[struts涓巋ibernate闆嗘垚寮鍙?br /> 鏈榪戝涔爏truts涓巋ibernate鐩稿叧鐭ヨ瘑錛屼笅闈㈡槸涓漢瀵箂truts涓巋ibernate闆嗘垚寮鍙戠殑涓浜涜瑙o紝鍐欏嚭鏉ヨ窡澶у鍏卞悓璁ㄨ銆佸涔狅紝嬈㈣繋鎸囨暀銆?br />  瑕侀泦鎴恠truts涓巋ibernate榪涜寮鍙戯紝棣栧厛搴旇浜嗚В涓涓媠truts鍜宧ibernate妗嗘灦鍚勮嚜鐨勫伐浣滃師鐞嗗拰妯″紡鑸殑寮鍙戞祦紼嬨?br /> 棣栧厛浠嬬粛struts鐨勫ぇ姒傚伐浣滄祦紼嬶紝涓嬮潰閫氳繃涓寮爏truts宸ヤ綔鐨勬椂搴忓浘鏉ヨ鏄庡叾宸ヤ綔嫻佺▼錛?br /> <img height="527" alt="" src="http://m.tkk7.com/images/blogjava_net/sonnylys/active.jpg" width="555" border="0" /><br /> Struts宸ヤ綔嫻佺▼鍒嗘瀽錛?br /> 1錛塛eb鏈嶅姟鍣ㄥ惎鍔紝鍒濆鍖朅ctionServlet,璇誨彇struts-config.xml鏂囦歡閰嶇疆淇℃伅錛屾妸榪欎簺淇℃伅鍒嗗彂鍒扮浉搴旂殑瀵硅薄涓?br /> 2錛夌敤鎴峰彂鍑鴻姹傚悗錛孉ctionServlet鎺ユ敹鍒拌姹傦紝鏌ユ壘涓庤姹傚尮閰嶇殑Action鏄犲皠瀵硅薄錛圓ctionMapping)瀵硅薄鏄惁瀛樺湪錛屾槸錛氬皢璇鋒眰浠ュ強Actionform瀵硅薄浼犻掔粰鐩稿簲鐨凙ction瀵硅薄銆?br /> <span style="color: red"><strong>3錛堿ction璋冪敤涓氬姟閫昏緫鏈嶅姟鎺ュ彛錛岀粨鍚圓ctionForm錛屽鐢ㄦ埛鐨勮姹傚仛鍑哄鐞嗐?/strong><br /> </span>4錛堿ction澶勭悊瀹屾瘯榪斿洖ActionForward瀵硅薄緇橝ctionServlet銆侫ctionForward瀵硅薄鍖呭惈浜嗚漿鍙戠洰鏍囧璞★紝鍙互鏄痡sp鎴朅ction銆?br /> 5)ActionServlet鏍規嵁ActionForward瀵硅薄鐨勬寚鍚戠戶緇漿鍙戣姹傦紝閲嶅浠庣2姝ヨ繘琛屽鐞嗐?br /> 鑷蟲錛屾垜浠struts 鐨勫熀鏈伐浣滄祦紼嬫湁涓暣浣撶殑璁よ瘑錛屼絾榪樻病鎻恏ibernate鐩稿叧鐨勪換浣曠煡璇嗭紝涓氬姟閫昏緫灞備篃鍙槸鍦ㄧ3)鐐瑰井鎻愪竴涓嬨?br /> <br /> 鎺ヤ笅鏉ワ紝鎴戜滑鏉ョ湅涓媓ibernate鏄庢牱宸ヤ綔鐨勶紵(娉細鍦ㄨ繖涓嶆槸璁ㄨ錛疾錛殑瀹炵幇錛屽彧璁ㄨ鎬庤hibernate榪橭RM涓棿浠跺伐浣滐級<br /> Hibernate鏄釜鐙珛鐨勬鏋訛紝瀹冧笉渚濊禆浠諱綍鐨刉eb Server鎴朅pplication Server錛屽氨鏄涓嶉渶瑕佽繖浜涙敮鎸併?br /> Hibernate鏈変簲涓牳蹇冩帴鍙o紝鍒嗗埆涓篊onfiguratoin, SessionFactory, Session,Query鍙奀riteria銆傞氳繃榪欎簺鎺ュ彛灝卞彲浠ュ畬鎴恏ibernate鐨勫垵濮嬪寲錛屽鎸佷箙鍖栧璞¤繘琛屽瓨鍙栵紝鏇存柊絳夋搷浣溿?br /> 涓嬮潰綆瑕佷粙濮嬩竴涓嬭繖浜涙帴鍙c?br /> 1銆丆onfiguration鎺ュ彛 鏄疕ibernate搴旂敤鐨勫叆鍙o紝鍦ㄥ紑濮嬩嬌鐢℉ibernate鐨勫悇縐嶅姛鑳戒箣鍓嶉渶瑕佸厛鍒涘緩Configuration瀵硅薄銆傚畠璐熻矗鍔犺澆Hibernate 搴旂敤閰嶇疆鏂囦歡錛屽Configuration cf = new Configuration.configure("com/myproj/hibernate/configs/hibernate.cfg.xml");<br /> 2銆丼essionFactory鎺ュ彛 緙撳瓨浜咰onfiguration瀵硅薄鎵鍖呭惈鐨勯厤緗俊鎭紝鑳芥牴鎹槧灝勪俊鎭嚜鍔ㄧ敓鎴怱QL璇彞錛屽茍鎻愪緵鐢熸垚Session瀵硅薄鐨勬柟娉曘?br /> 3銆丼ession鎺ュ彛鎻愪緵涓緋誨垪鎸佷箙鍖栫殑鎿嶄綔銆?br /> 鍒版錛屽彲浠ュ啓涓灝忔浠g爜鏉ュ姞鐪嬩笅濡備綍浣跨敤hibernate<br /> Configuration cf = new Configuration.configure("com/myproj/hibernate/configs/hibernate.cfg.xml");//閰嶇疆鏂囦歡涓嶅湪姝や綔浠嬬粛<br /> SessionFactory sessionFactory = cf.buildSessionFactory();<br /> Session session = sessionFactory.openSession();<br /> session.update();<br /> session.save();絳夌瓑鎸佷箙鍖栨搷浣溿?br /> 鑷蟲錛岀畝鍗曚粙緇嶄簡hibernate 鏄庢牱宸ヤ綔鐨勶紝鍏跺疄鎴戝彧鎯寵浣犳竻妤氾細“<span style="color: red">Hibernate鏄釜鐙珛鐨勬鏋訛紝瀹冧笉渚濊禆浠諱綍鐨刉eb Server鎴朅pplication Server錛屽氨鏄涓嶉渶瑕佽繖浜涙敮鎸併?#8221;<br /> </span><br /> 閭d箞錛屾垜浠鍥炲埌涓婚鏉ワ細濡備綍闆嗘垚struts涓巋ibernate寮鍙戯紵絳旀寰堢畝鍗曪細hibernate鍜宻truts鏈川涓婃槸娌′粈涔堣仈緋葷殑錛屽彧瑕佷綘璁頒綇錛?span style="color: red">Hibernate鏄釜鐙珛鐨勬鏋訛紝瀹冧笉渚濊禆浠諱綍鐨刉eb Server鎴朅pplication Server銆?/span>鐢―AO妯″紡鎶奾ibernate鎸佷箙鍖栫殑鎿嶄綔灝佽濂斤紝渚涗笟鍔¢昏緫鏈嶅姟綾昏皟鐢ㄥ氨鍙互銆傚洖榪囧ご鏉ョ湅struts宸ヤ綔嫻佹椂搴忓浘鐨勮В閲婄殑絎笁鐐癸細“<span style="color: red"><strong>3錛堿ction璋冪敤涓氬姟閫昏緫鏈嶅姟鎺ュ彛錛岀粨鍚圓ctionForm錛屽鐢ㄦ埛鐨勮姹傚仛鍑哄鐞嗐?/strong></span>”錛屼笉闅懼緱鍑猴細<br /> 鐢ㄦ埛璇鋒眰鍚庯紝struts璐熻矗鎵懼埌鐩稿簲鐨凙ction瀵硅薄錛孉ction璋冪敤涓氬姟閫昏緫鏈嶅姟鎺ュ彛錛屼笟鍔¢昏緫鏈嶅姟鎺ュ彛璋冪敤DAO鎺ュ彛(榪欓噷榛樿鐨勫疄鐜板氨鐢╤ibernate,褰撶劧, 榪樺彲浠ユ湁澶氱瀵規暟鎹簱鎿嶄綔鐨勫疄鐜幫級<br /> hibernate鍏呭綋涓嬮潰榪欏紶鍥句腑鐨?鎸佷箙灞傦紙DAO錛?<br /> <img height="468" alt="" src="http://m.tkk7.com/images/blogjava_net/sonnylys/bs.jpg" width="535" border="0" /><br /> <br /> 鐢變簬鏈漢瀵箂truts鍙奾ibernate璁よ瘑涓嶆繁錛屽啓榪欑瘒鏂囩珷鍙槸鎶涚爾寮曠帀錛屽笇鏈涢珮鎵嬩滑鍙戣〃鎰忚鎸囨閿欒錛屽鎸囨暀銆?br /> <br /> <br /> <br /> <br /> <br /> <img src ="http://m.tkk7.com/sonnylys/aggbug/183017.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/sonnylys/" target="_blank">Sonny Li</a> 2008-02-29 18:44 <a href="http://m.tkk7.com/sonnylys/archive/2008/02/29/183017.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://m.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> 主站蜘蛛池模板: <a href="http://vvihh.com" target="_blank">亚洲一区二区三区丝袜</a>| <a href="http://haiwaizhuyun.com" target="_blank">精品国产_亚洲人成在线高清</a>| <a href="http://csl-chinga.com" target="_blank">亚洲图片一区二区</a>| <a href="http://222mp3.com" target="_blank">亚洲精品国偷自产在线</a>| <a href="http://aiwoqi.com" target="_blank">一出一进一爽一粗一大视频免费的</a>| <a href="http://by3142.com" target="_blank">污视频网站在线免费看</a>| <a href="http://yakonet.com" target="_blank">精品久久久久成人码免费动漫</a>| <a href="http://szjmlr.com" target="_blank">亚洲精品视频在线免费</a>| <a href="http://dszb0099.com" target="_blank">亚洲电影免费观看</a>| <a href="http://96j6.com" target="_blank">www.亚洲色图.com</a>| <a href="http://aaaaa123.com" target="_blank">偷自拍亚洲视频在线观看99</a>| <a href="http://xsdin.com" target="_blank">国产又粗又猛又爽又黄的免费视频</a>| <a href="http://thegaybdsm.com" target="_blank">亚洲精品久久久www</a>| <a href="http://www64427.com" target="_blank">老司机亚洲精品影院</a>| <a href="http://vc77777.com" target="_blank">朝桐光亚洲专区在线中文字幕</a>| <a href="http://bxd888.com" target="_blank">啦啦啦www免费视频</a>| <a href="http://gstywy.com" target="_blank">亚洲成av人片在线天堂无</a>| <a href="http://theav25.com" target="_blank">国产乱子影视频上线免费观看</a>| <a href="http://8mav950.com" target="_blank">亚洲精品成人片在线播放</a>| <a href="http://chinaedubrand.com" target="_blank">免费无码作爱视频</a>| <a href="http://yanhx.com" target="_blank">国产福利免费观看</a>| <a href="http://microston.com" target="_blank">又硬又粗又长又爽免费看</a>| <a href="http://hn-hshb.com" target="_blank">四虎永久在线精品免费观看视频</a>| <a href="http://bying100.com" target="_blank">亚洲国产精品成人综合久久久</a>| <a href="http://youweidianqi.com" target="_blank">国产一卡2卡3卡4卡2021免费观看</a>| <a href="http://44od.com" target="_blank">日本亚洲免费无线码 </a>| <a href="http://misiranim.com" target="_blank">亚洲电影在线免费观看</a>| <a href="http://69xjk.com" target="_blank">无码国产精品一区二区免费式直播</a>| <a href="http://33eaa.com" target="_blank">亚洲三级高清免费</a>| <a href="http://pufenghotel.com" target="_blank">国产一区二区三区免费在线观看 </a>| <a href="http://jundaflex.com" target="_blank">亚洲av无码一区二区三区乱子伦</a>| <a href="http://lkzrgy.com" target="_blank">日韩国产欧美亚洲v片</a>| <a href="http://selaohu.com" target="_blank">亚洲精品国产V片在线观看</a>| <a href="http://maomi02.com" target="_blank">国产啪精品视频网站免费尤物 </a>| <a href="http://maomi02.com" target="_blank">亚洲免费视频网址</a>| <a href="http://www282pp.com" target="_blank">久久国产精品成人免费</a>| <a href="http://wowo123.com" target="_blank">在线a亚洲v天堂网2018</a>| <a href="http://yuduruizhi.com" target="_blank">黄色网站软件app在线观看免费</a>| <a href="http://douhuowang.com" target="_blank">1区1区3区4区产品亚洲</a>| <a href="http://xjkakatong.com" target="_blank">在线看片人成视频免费无遮挡</a>| <a href="http://jst-hosp.com" target="_blank">一级毛片免费播放视频</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>