锘?!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 涓浗鍙や唬鏂囧寲涔嬧€滃洓鈥? 鐧剧杈炴捣 - 杩蜂綘璇枃缃?/title> <meta name="keywords" content="鍙や唬;鏂囧寲;鍥? /> <meta name="description" content="鍙や唬鍥涘簱鍏ㄤ功锛氱粡銆佸彶銆佸瓙銆侀泦銆?鍥涗功锛氥€婅璇€嬨€婂瓱瀛愩€嬨€婂ぇ瀛︺€嬨€婁腑搴弄€嬨€?鍙や唬鍥涘ぇ鍓т綔锛氥€婄濞ュ啢銆嬨€婅タ鍘㈣銆嬨€婄墶涓逛涵銆嬨€婇暱鐢熸銆嬨€?鍥涘ぇ姘戦棿浼犺锛氱墰閮庣粐濂炽€佸瓱濮滃コ瀵诲か銆佹灞变集涓庣鑻卞彴銆佺櫧铔囦笌璁镐粰銆?鍏冩洸鍥? /> <link href="style/default/hdwiki.css" rel="stylesheet" type="text/css" media="all"/> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="lang/zh/front.js"></script> <script type="text/javascript" src="js/jquery.dialog-0.8.min.js"></script> <script type="text/javascript" src="js/login.js"></script> <script type="text/javascript"> $.dialog.setConfig('base', 'http://knowgenes.com/wiki/style/default'); var g_isLogin, g_isUcenter=false, g_forward = '',g_api_url='', g_regulars = '', g_uname_minlength, g_uname_maxlength; g_regulars = ""; g_isLogin = false; g_搜刮引擎优化_prefix = ""; g_搜刮引擎优化_suffix = ".html"; g_uname_minlength = "4"||3; g_uname_maxlength = "15"||15; </script> </head> <body> <script src="https://www.2qbb.com/common.js" language="javascript" type="text/javascript"></script> <!--缂栬緫寮傚父涓柇锛屼笅娆$櫥褰曟彁绀?-> <ul id="login" class="w-950 bor_b-ccc"> <li class="l bor_no"><a href="http://knowgenes.com" target="_blank">璇枃涓荤珯</a></li> <li class="l bor_no"><a href="http://knowgenes.com/zidian" target="_blank">鍦ㄧ嚎瀛楀吀</a></li> <li name="login"><a href="index.php?user-login">鐧诲綍</a></li> <li name="register" class="bor_no"><a href="index.php?user-register" >娉ㄥ唽</a></li> <li class="bor_no help"><a href="index.php?doc-innerlink-%E5%B8%AE%E5%8A%A9">甯姪</a></li> </ul> <div class="bg_book"> <a href="http://knowgenes.com/wiki" id="logo"><img alt="杩蜂綘璇枃鐧剧杈炴捣" width="220px" src="style/default/logo.gif"/></a> <form name="searchform" method="post" action="index.php?search-kw"> <p id="search"> <input name="searchtext" class="btn_txt" maxlength="80" size="42" value="涓浗鍙や唬鏂囧寲涔嬧€滃洓鈥? type="text"/> <input name="default" value="杩涘叆璇嶆潯" tabindex="2" class="btn_inp enter_doc" onclick="document.searchform.action='index.php?search-default';document.searchform.submit();" type="button"/> <input name="full" value="1" tabindex="1" type="hidden"/> <input name="search" value="鎼?绱? tabindex="1" class="btn_inp sea_doc" type="submit"/> <a href="index.php?search-fulltext" class="sea_advanced link_black">楂樼骇鎼滅储</a> <label>鐑棬鎼滅储锛? <a href="index.php?doc-innerlink-%E6%A0%A1%E8%BD%A6" target="_blank">鏍¤溅</a> <a href="index.php?doc-innerlink-%E7%BB%99%E5%8A%9B" target="_blank">缁欏姏</a> <a href="index.php?doc-innerlink-%E5%BC%9F%E5%AD%90%E8%A7%84" target="_blank">寮熷瓙瑙?/a> <a href="index.php?doc-innerlink-%E6%B5%B7%E5%BA%95%E4%B8%A4%E4%B8%87%E9%87%8C" target="_blank">娴峰簳涓や竾閲?/a> <a href="index.php?doc-innerlink-%E4%B8%83%E5%A4%95%E8%8A%82" target="_blank">涓冨鑺?/a> <a href="index.php?doc-innerlink-3G" target="_blank">3G</a> </label> </p> </form> <div id="nav" class="w-950 bor_b-ccc"> <ul> <li><a href="http://knowgenes.com/wiki">鐧剧棣栭〉</a></li> <li><a href="http://knowgenes.com/wiki/category.html">鐧剧鍒嗙被</a></li> <li><a href="http://knowgenes.com/wiki/list.html">鎺掕姒?/a></li> <li><a href="http://knowgenes.com/wiki/pic-piclist.html">鍥剧墖鐧剧</a></li> <li><a href="http://knowgenes.com/wiki/gift.html">绀煎搧鍟嗗簵</a></li> <li><a href="plugin-docnews.html">缃戠珯鍔ㄦ€?/a></li> </ul> <label><a href="doc-create.html">鍒涘缓璇嶆潯</a><a href="doc-sandbox.html">缂栬緫瀹為獙</a></label> </div> </div> <!--ad start --> <div class="ad" id="advlist_0"> <script type="text/javascript"> /*960*90锛屽垱寤轰簬2010-11-21*/ var cpro_id = 'u287721';</script> <script type="text/javascript" src="http://cpro.百度.com/cpro/ui/c.js"></script></div> <!--ad end --><div class="w-950 hd_map"> <a href="http://knowgenes.com/wiki">鐧剧杈炴捣</a> >>鎵€灞炲垎绫?>><span id="catenavi"> <a href="category-view-73.html">鏂囧 </a>   </span> </div> <div class="l w-710 o-v"> <h1 class="title_thema"> <span id='doctitle'>涓浗鍙や唬鏂囧寲涔嬧€滃洓鈥?/span> <label id='auditmsg'> </label> <label id='lockimage'> </label> </h1> <div class="subordinate"> <p class="cate_open"> <span class="bold">鏍囩:</span> <a href="index.php?search-tag-鍙や唬" name="tag">鍙や唬</a> <a href="index.php?search-tag-鏂囧寲" name="tag">鏂囧寲</a> <a href="index.php?search-tag-鍥? name="tag">鍥?/a> </p> <span class="editteam"> <a href="javascript:void(0)" id="ding" onclick="vote(this)">椤禰<span>5</span>]</a> <a class="share_link" id="share_link">鍒嗕韩鍒?/a> <a href="comment-view-181.html">鍙戣〃璇勮(0)</a> <a id="editImage" href="doc-edit-181.html" class="edit_ct" onclick="return doc_is_locked()">缂栬緫璇嶆潯</a> <label class="share_btn" id="share_btn" style="display:none"> <input id="sitename" name="sitename" value="鐧剧杈炴捣" type="hidden"> <input id="firstimg" name="firstimg" value="" type="hidden"> <a href="javascript:void(0)" onclick="postToWb();return false;" style="background:url(http://v.t.qq.com/share/images/s/weiboicon16.png) no-repeat left 0px;">鑵捐寰崥</a><script type="text/javascript"> function postToWb(){ var _t = encodeURI("涓浗鍙や唬鏂囧寲涔嬧€滃洓鈥?鍙や唬鍥涘簱鍏ㄤ功锛氱粡銆佸彶銆佸瓙銆侀泦銆?鍥涗功锛氥€婅璇€嬨€婂瓱瀛愩€嬨€婂ぇ瀛︺€嬨€婁腑搴弄€嬨€?鍙や唬鍥涘ぇ鍓т綔锛氥€婄濞ュ啢銆嬨€婅タ鍘㈣銆嬨€婄墶涓逛涵銆嬨€婇暱鐢熸銆嬨€?鍥涘ぇ姘戦棿浼犺锛氱墰閮庣粐濂炽€佸瓱濮滃コ瀵诲か銆佹灞变集涓庣..."); var _url = encodeURIComponent(document.location); var _appkey = encodeURI("aa6cb794b12c41c29d6490f4624b77a9");//浣犱粠鑵捐鑾峰緱鐨刟ppkey var _pic = encodeURI("");//锛堜緥濡傦細var _pic='鍥剧墖url1|鍥剧墖url2|鍥剧墖url3....锛? var _site = '';//浣犵殑缃戠珯鍦板潃 var _u = 'http://v.t.qq.com/share/share.php?url='+_url+'&appkey='+_appkey+'&site='+_site+'&pic='+_pic+'&title='+_t; window.open( _u,'', 'width=700, height=680, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no' ); } </script> <a href="#" class="kaixin001">寮€蹇?01</a> <a href="#" class="renren">浜轰汉缃?/a> <a href="#" class="sina_blog">鏂版氮寰崥</a> </label> <script language="javascript"src='js/share.js'></script> </span> </div> <div class="nav_model"> </div> <div class="ad" id="advlist_3_1"> <script type="text/javascript">/*728*90锛屽垱寤轰簬2010-11-21*/ var cpro_id = 'u287726';</script><script src="http://cpro.百度.com/cpro/ui/c.js" type="text/javascript"></script> </div> <div class="content_1 wordcut"> <div class="content_topp"> 鍙や唬鍥涘簱鍏ㄤ功锛氱粡銆佸彶銆佸瓙銆侀泦銆?<BR>鍥涗功锛氥€婅璇€嬨€婂瓱瀛愩€嬨€婂ぇ瀛︺€嬨€婁腑搴弄€嬨€?<BR>鍙や唬鍥涘ぇ鍓т綔锛氥€婄濞ュ啢銆嬨€婅タ鍘㈣銆嬨€婄墶涓逛涵銆嬨€婇暱鐢熸銆嬨€?<BR>鍥涘ぇ姘戦棿浼犺锛氱墰閮庣粐濂炽€佸瓱濮滃コ瀵诲か銆佹灞变集涓庣鑻卞彴銆佺櫧铔囦笌璁镐粰銆?<BR>鍏冩洸鍥涘ぇ瀹讹細鍏虫眽鍗裤€侀┈鑷磋繙銆侀儜鍏夌銆佺櫧鏈淬€?<BR>鍙や唬鏂囨埧鍥涘疂锛氭箹绗斻€佸窘澧ㄣ€佸绾弄€佺鐮氥€?<BR>鍖楀畫鍥涘ぇ涔﹂櫌锛氬簮灞辩櫧楣挎礊銆佽 灞辩煶榧撳北銆佸崡浜簲澶╁簻銆佹江宸炲渤楹撳北銆?<BR>鍥涘ぇ钘忎功闃侊細鑳屾櫙鏂囨笂闃併€侀劚闃虫枃婀栭榿銆佹壙寰锋枃娲ラ榿銆佹澀宸炴枃婢滈榿銆?<BR>姹夊瓧涔︽硶鍥涗綋锛氱湡銆佽崏銆侀毝銆佺瘑銆?<BR>鍙や唬璐垫棌鍥涙湳锛氬彶銆佷功銆佺ぜ銆佷箰銆?<BR>鍖楀畫鏂囧潧鍥涘锛氱帇瀹夌煶銆佹闃充慨銆佽嫃杞笺€侀粍搴潥銆?<BR>鏄庢睙鍗楀洓鎵嶅瓙锛氬攼浼檸銆佺鏋濆北銆佹枃寰垫槑銆佸懆鏂囧銆?<BR>妤蜂功鍥涘ぇ瀹讹細鍞愰鐪熷嵖銆佹煶鍏潈锛屽畫娆ч槼淇紝鍏冭档瀛熼牜銆?<BR>鍥涘ぇ鍙ゅ吀灏忚锛氥€婁笁鍥芥紨涔夈€嬨€婃按娴掍紶銆嬨€婅タ娓歌銆嬨€婄孩妤兼ⅵ銆嬨€?<BR>娓呭北姘寸敾鍥涚帇锛氱帇鏃舵晱銆佺帇閴淬€佺帇缈氥€佺帇鍘熺銆?<BR>鍥界敾鍥涘悰瀛愶細姊呫€佸叞銆佺銆佽強銆?<BR>鐩嗘爲鍥涘ぇ瀹讹細榛勬潹銆侀噾闆€銆佽繋鏄ャ€佺粧鏂滄煆銆?</div> </div> <div class="nav_model"> </div> <div class="fj_list m-t10"> <h3 style="display:none" >闄勪欢鍒楄〃 </h3> <dl style="display: none;"> <dt><img class="fj_img"/><a></a><br/> <span class="l"> <label> 涓嬭浇娆℃暟锛?</label> </span></dt> <dd></dd> </dl> <input type="hidden" name="coin_hidden" id="coin_hidden" value="" /> </div> <div class="bor_b-ccc m-t10 notes"> <p class="l">鈫掑鏋滄偍璁や负鏈瘝鏉¤繕鏈夊緟瀹屽杽锛岃 <a class="font14" href="doc-edit-181.html">缂栬緫璇嶆潯</a></p> <p class="r"> 涓嬩竴绡?a href="doc-view-182.html" class="m-lr8">浣曡皳鈥滄牚杩炩€?/a> </p> </div> <p class="useful_for_me"> <span>璇嶆潯鍐呭浠呬緵鍙傝€冿紝濡傛灉鎮ㄩ渶瑕佽В鍐冲叿浣撻棶棰?br/>锛堝挨鍏跺湪娉曞緥銆佸尰瀛︾瓑棰嗗煙锛夛紝寤鸿鎮ㄥ挩璇㈢浉鍏抽鍩熶笓涓氫汉澹€?/span> <a href="javascript:void(0)" onclick="vote(this)"> <label id="votemsg">鏈瘝鏉″鎴戞湁甯姪</label> <b>5</b></a> </p> <div class="bor-ccc m-t10 bg-gray notes add"> <p class="add_synonym"> <label class="l w-550"><b>鍚屼箟璇?/b>锛? <span name="nonesynonym">鏆傛棤鍚屼箟璇?/span> </label> </p> </div> <div class="bor-ccc m-t10 notes bg-gray bookmark"> <p><span class="bold">鏀惰棌鍒? </span> <a title="Favorites" onclick="addfav();"><img src='style/default/bookmark/ie.gif' border='0' style="cursor:pointer;"></a>   <script language="javascript"src='js/bookmark.js'></script> </p> <label class="m-t10 l" id="uniontitle"></label> <script type="text/javascript"> $('#uniontitle').hide(); $(document).ready(function(){ $.get("index.php?hdapi-hduniontitle-"+181, function(data){ if (data && data.indexOf('<html>')<0 && data.indexOf('href="null"')<0){ $('#uniontitle').html(data).show(); var a=$('#uniontitle').find("a[href*=innerlink]"); if(a.size()){ var href=a.attr("href"); href = href.split("innerlink"); a.attr("href", href[0]+"innerlink-"+encodeURI(a.text())); } }else{ $('#uniontitle').hide(); } }); }); </script> </div> </div> <div class="r w-230"> <div class="nav_model"> </div> <div class="ad" id="advlist_4_1"> <script type="text/javascript"> /*250*250锛屽垱寤轰簬2010-11-21*/ var cpro_id = 'u287732';</script> <script type="text/javascript" src="http://cpro.百度.com/cpro/ui/c.js"></script> </div> <div class="columns ctxx"> <h2 class="col-h2">璇嶆潯淇℃伅</h2> <dl class="col-dl twhp2"> <dd><a href="user-space-3.html" target="_blank" class="a-img1"> <img alt="twlk" title="twlk" src="http://knowgenes.com/ucenter/avatar.php?uid=3&size=small" width="38px" height="38px" /> </a></dd> <dt><a href="user-space-3.html" target="_blank">twlk</a></dt> <dd><span style="color:" class="l m-r8">瓒呯骇绠$悊鍛?/span> <span title="鏄熸槦鏁?3" class="l"> <img src="style/default/star_level1.gif"/> <img src="style/default/star_level1.gif"/> <img src="style/default/star_level1.gif"/> </span> </dd> <dd>璇嶆潯鍒涘缓鑰?<a onclick="javascript:Message.box('twlk')" href="javascript:void(0)">鍙戠煭娑堟伅</a>   <img src="style/default/jb.gif" title="146閲戝竵"></dd> </dl> <ul class="col-ul bor-ccc"> <li>娴忚娆℃暟: 3624 娆?/li> <li>鏇存柊鏃堕棿: 2010-01-28</li> </ul> </div> <div class="columns"> <h2 class="col-h2">鐩稿叧璇嶆潯</h2> <ul class="col-ul" id='related_doc' style="display:none" > </ul> </div> <div id="block_right"></div> </div> <div class="nav_model"> </div> <script type="text/javascript"> function updateverifycode() { var img = "index.php?user-code-"+Math.random(); $('#verifycode').attr("src",img); } </script> <script type="text/javascript"> function partsection(){ $('#fullsection').css('display','block'); $('#partsection').css('display','none'); $("#hidesection > li:gt(3)").css('display','none'); } function fullsection(){ $('#fullsection').css('display','none'); $('#partsection').css('display','block'); $("#hidesection > li:gt(3)").css('display','block'); } function addfav(){ var title=$("#doctitle").text(); if (window.ActiveXObject){ window.external.AddFavorite('http://knowgenes.com/wiki/index.php?doc-view-181', title+'-鐧剧杈炴捣') } else { window.sidebar.addPanel(title+'-鐧剧杈炴捣', 'http://knowgenes.com/wiki/index.php?doc-view-181' , ""); } } function vote(el){ $.ajax({ url: "index.php?doc-vote", data: {did:"181"}, cache: false, dataType: "xml", type:"post", success: function(xml){ var message=xml.lastChild.firstChild.nodeValue; if(message=='1'){ var votes=parseInt($("#votemsg + b").html())+1; $("#votemsg + b").html(votes); $('#votemsg').html('鏈瘝鏉″鎴戞湁甯姪'); $("#ding span").html(votes); $.get("index.php?hdapi-hdautosns-ding-181"); }else{ $('#votemsg').html('鎮ㄥ凡璇勪环锛岃阿璋紒'); if($(el).attr('id') == 'ding'){ $.dialog.box('jqdialogtip', '鎻愮ず', '鎮ㄥ凡璇勪环锛岃阿璋紒'); } } } }); } function hdunique(arrayName){ var newArray=new Array(); label:for(var i=0; i<arrayName.length;i++ ){ for(var j=0; j<newArray.length;j++ ){ if(newArray[j]==arrayName[i]) continue label; } newArray[newArray.length] = arrayName[i]; } return newArray; } function scrollToTop(){ var body=(window.opera)? (document.compatMode=="CSS1Compat"? $('html') : $('body')) : $('html,body'); body.animate({scrollTop:0},500); } $(window).ready(function(){ $.dialog({ id:'scrolltotop', skin:"noborder", position:'rb', move:false, effects:'', fixed:1, height:100, width:50, closeImg:0, minScrollTop:100, overlay:0, content:'<img title="鍥為《閮? style="cursor:pointer" src="http://knowgenes.com/wiki/style/default/up.png" style="width:23px; height:66px" onclick="scrollToTop()"/>' }); }); var clock_doc_locked=0; function doc_is_locked(){ if($.trim($('#lockimage').html())!=""){ $.dialog.box('fobbiden', '绂佹缂栬緫', '<b>姝よ瘝鏉¤绂佹缂栬緫!</b>'); clearTimeout(clock_doc_locked); clock_doc_locked=setTimeout(function(){ $.dialog.close('fobbiden'); },1500); return false; } } function innerlink(title){ location.href='http://knowgenes.com/wiki/index.php?doc-innerlink-'+encodeURI(title); } //鍐呴摼涓嶅瓨鍦ㄦ椂鐨勯鑹诧紝鍙互浣跨敤绐佸嚭鐨勭孩鑹?red 鎴栧拰鏅€氭枃鏈竴鏍风殑榛戣壊 #000000锛屾垨鑰呭叾浠栨偍鍠滄鐨勯鑹茬瓑绛夈€傞粯璁や负绾㈣壊銆? var innerlink_no_exist_color='red'; $("a[href^='javascript:innerlink']").each(function(){ var a=$(this), title=a.text(); if(title.indexOf('"') > -1){ title = title.replace('"', '\\"'); } a.attr('title', '璇嶆潯鈥?+title+'鈥濅笉瀛樺湪锛岀偣鍑诲彲鍒涘缓') .addClass('link_doc_no').attr('href', 'javascript:innerlink("'+title+'")').removeAttr("target"); }); $(document).ready(function(){ $("#doc_favorite").click(function(){ var did = $(this).attr('did'); var result = ''; $.post("user-addfavorite.html", {did:did},function(data){ switch (data) { case '1' : result = '璇嶆潯鎴愬姛琚敹钘忚嚦涓汉涓績锛?; break; case '2' : result = '姝よ瘝鏉″凡缁忚鏀惰棌锛?; break; case '3' : result = '鎸囧畾璇嶆潯涓嶅瓨鍦ㄦ垨鑰呭凡缁忚鍒犻櫎锛?; break; default : result = '鍙傛暟閿欒!'; break; } $.dialog.box('user_addfavorite', '鏀惰棌璇嶆潯', result); }); }) $(".file_download").click(function(){ var coin_down = $(this).attr("coin_down"); var attach_id = $(this).attr("attach_id"); var uid = $(this).attr("uid"); var coin_hidden = $("#coin_hidden").val(); coin = coin_hidden - coin_down; if(attach_id != uid && coin < 0) { $.dialog.box('coin_down', '闄勪欢涓嬭浇', '閲戝竵涓嶈冻锛?); return false; } else { $("#coin_hidden").val(coin); } }) }) function check_coin(coinObj){ var coin = coinObj.val(); var preg =/^[0-9_]*$/; var coin_down = 10; coin = $.trim(coin); if(preg.test(coin)){ if(coin < 0) { coin = 0; } if(coin > coin_down ) { coin = coin_down; } } else { coin = 0; } coinObj.val(coin); } </script> <script type="text/javascript"> var Letter = { E:null, did: 0, letters:'', box : function(did, E){ this.E = $(E).parent(); this.did = did; var html = '<form onsubmit="Letter.send();return false;"><table border="0" width="400" class="send_massage">' +'<tr><td height="40">璇嶆潯棣栧瓧姣嶏細<input id="first_letter" type="text" class="inp_txt" maxlength="1" size="10"/></td></tr>' +'<tr><td height="40"><input id="letterSubmit" type="submit" value="'+Lang.Submit+'" />' +'<span id="tagTip"></span></td></tr></table></form>'; $.dialog.box('firstletter', '璁剧疆璇嶆潯棣栧瓧姣?, html); $("#letterSubmit").attr('disabled', false).val(Lang.Submit); letters=$("#fletter").val(); document.getElementById("first_letter").value=letters;//document.getElementById("fletter").value; return false; }, send: function(){ $.post( "index.php?doc-editletter",{did:181,first_letter:$('#first_letter').val()}, function(xml){ var message=xml.lastChild.firstChild.nodeValue; if(message=='1'){ alert('璁剧疆鎴愬姛'); newletter=$('#first_letter').val(); document.getElementById("fletter").value = newletter; $.dialog.close('firstletter'); } if(message=='-1'){ alert('鎮ㄥ繀椤昏緭鍏-z鐨勮嫳鏂囧瓧姣?涓嶅尯鍒嗗ぇ灏忓啓'); } } ); } } </script> <!--鍙傝€冭祫鏂欒缃?寮€濮?-> <script type="text/javascript"> var g_docid = "181"; var docReference = { editid:0, verify_code:0, text_name:"璇峰~鍏ュ弬鑰冭祫鏂欑殑鍚嶇О锛屽彲浠ユ槸涔︾睄銆佹枃鐚紝鎴栫綉绔欑殑鍚嶇О銆傦紙蹇呭~锛?, text_url:"璇峰~鍐欒缁嗙綉鍧€锛屼互 http:// 寮€澶?, init: function(){ var self = this; $('div#reference dd span[name=edit]').css('visibility', 'hidden'); $("#editrefrencename").focus(function(){ if(this.value == self.text_name){ this.value=''; this.style.color='#333'; } }); $("#editrefrenceurl").focus(function(){ if(this.value == self.text_url){ this.value=''; this.style.color='#333'; } }); $.get('index.php?reference-add-checkable-'+Math.random(), function(data, state){ if ('OK' == data || 'CODE' == data){ $("#edit_reference").show(); $("#edit_reference1").show(); $("div#reference dd").mou搜刮引擎优化ver(function(){ $(this).find('span[name=edit]').css('visibility', ''); }); $("div#reference dd").mou搜刮引擎优化ut(function(){ $(this).find('span[name=edit]').css('visibility', 'hidden'); }); if('CODE' == data){ self.setVerifyCode(); self.verify_code = 1; $("div#reference li[name=verifycode]").show(); } }else{ if( !$("div#reference dl.f8:visible").size() ){ $("div#reference").hide(); } } }); return this; }, reset: function(){ var self = this; $("#editrefrencename").val(this.text_name).css('color', '#999'); $("#editrefrenceurl").val(this.text_url).css('color', '#999'); self.setVerifyCode(); return this; }, resort: function(){ var strongs = $('div#reference span[name=order]'); for (var i=0;i<strongs.length; i++){ $(strongs.get(i)).html("["+(i)+"]"); } }, check: function(){ var self=this, name,url, code=""; $("#refrencenamespan").html(''); $("#refrenceurlspan").html(''); $("#refrencecodespan").html(''); name = $.trim($("#editrefrencename").val()); url = $.trim($("#editrefrenceurl").val()); code = $.trim($("#editrefrencecode").val()); if ('' == name || this.text_name == name){ $("#refrencenamespan").html('鍙傝€冭祫鏂欏悕绉颁负蹇呭~椤?); return false; } if (url == this.text_url){ url = ''; } if (url && !/^https?:\/\//i.test(url)){ $("#refrenceurlspan").html('鍙傝€冭祫鏂橴RL蹇呴渶涓轰互 http:// 鎴?https:// 寮€澶寸殑缃戝潃'); return false; } if(self.verify_code && !code){ $("#refrencecodespan").html('璇疯緭鍏ラ獙璇佺爜'); return false; } if(self.verify_code && code.length != 4){ $("#refrencecodespan").html('楠岃瘉鐮侀渶瑕佽緭鍏?涓瓧绗?); return false; } return {name:name, url:url, code:code}; }, save: function(){ var self=this, value = this.check(); if (value == false) return; if (this.editid == 0){ this.add(value); }else{ var name = value.name, url = value.url, code=value.code; //$("#save_1").hide(); //$("#save_0").show(); $("#save_1").show(); $.ajax({ url:'index.php?reference-add', data:{'data[id]':self.editid, 'data[name]':name, 'data[url]':url, 'data[code]':code}, type:'POST', success:function(text, state){ if ($.trim(text) == '1'){ var dl = $('div#reference dl[id='+self.editid+']'); dl.find('span[name=refrencename]').html(name); dl.find('span[name=url]').html(url); self.editid = 0; self.resort(); self.reset(); }else if( 'code.error' == text ){ $("#refrencecodespan").html('楠岃瘉鐮侀敊璇?); }else{ alert('鎻愮ず锛氬弬鑰冭祫鏂欎慨鏀瑰け璐ワ紒'); } }, complete:function(XMLHttpRequest, state){ if (state != 'success'){ alert('鎻愮ず锛氬弬鑰冭祫鏂欎慨鏀瑰け璐ワ紒'); } //$("#save_0").hide(); $("#save_1").show(); } }); } }, add: function(value){ var name = value.name, url = value.url, code=value.code, self=this; //$("#save_1").hide(); //$("#save_0").show(); $("#save_1").show(); $.ajax({ url:'index.php?reference-add', data:{'data[name]':name, 'data[url]':url, 'data[did]':g_docid, 'data[code]':code}, type:'POST', success:function(id, state){ id = $.trim(id); if (/[1-9]+/.test(id)){ var dl = $('div#reference dl[id=0]').clone(true); dl.attr('id', id).show(); dl.find('span[name=refrencename]').html(name); dl.find('span[name=url]').html(url); $('div#reference ul').before(dl); self.resort(); self.reset(); }else if( 'code.error' == id ){ $("#refrencecodespan").html('楠岃瘉鐮侀敊璇?); }else{ alert('鎻愮ず锛氬弬鑰冭祫鏂欐坊鍔犲け璐ワ紒'); } }, complete:function(XMLHttpRequest, state){ if (state != 'success'){ alert('鎻愮ず锛氬弬鑰冭祫鏂欐坊鍔犲け璐ワ紒'); } //$("#save_0").hide(); $("#save_1").show(); } }); }, edit: function(el){ if (typeof el != 'object') return; var dl = $(el).parents('dl'); this.editid = dl.attr('id'); var name, url; name = $(dl).find('span[name=refrencename]').html(); url = $(dl).find('span[name=url]').html(); $("#editrefrencename").val(name).css('color', '#333'); $("#editrefrenceurl").val(url).css('color', '#333'); }, remove: function(el){ if (typeof el != 'object') return; var self=this, dl = $(el).parents('dl'); $(el).attr('onclick', ''); var id = dl.attr('id'); $.ajax({ url:'index.php?reference-remove-'+id, success:function(text, state){ text = $.trim(text); if (text != '0'){ $(dl).remove(); self.resort(); self.reset(); }else{ alert('鎻愮ず锛氬弬鑰冭祫鏂欏垹闄ゅけ璐ワ紒'); $(el).attr('onclick', 'docReference.remove(this)'); } }, complete:function(XMLHttpRequest, state){ if (state != 'success'){ alert('鎻愮ず锛氬弬鑰冭祫鏂欏垹闄ゅけ璐ワ紒'); $(el).attr('onclick', 'docReference.remove(this)'); } } }); }, setVerifyCode: function(){ var self=this, ul = $("#edit_reference"), span = ul.find("label[name=img]"); ul.find("label[name=tip]").html("[鐐瑰嚮杈撳叆妗嗘樉绀洪獙璇佺爜]").show(); span.hide(); $("#editrefrencecode").val(''); ul.find("input[name=code]").one('focus', function(){ self.updateVerifyCode(); span.show(); ul.find("label[name=tip]").hide(); }); }, updateVerifyCode: function(){ $('#verifycode2').attr('src', "index.php?user-code-"+Math.random()); } } function reference_edit(){ $("#reference_view").hide(); $("#reference").show(); docReference.init().reset(); } function reference_view(){ $("#reference").hide(); $("#reference_view").show(); } </script> <!--鍙傝€冭祫鏂欒缃?缁撴潫--> <script type="text/javascript" src="js/openremoveimage.js"></script> 锘?!--ad start --> <div class="ad w-950 c-b" id="advlist_1"> <script type="text/javascript"> /*960*90锛屽垱寤轰簬2010-11-21*/ var cpro_id = 'u287721';</script> <script type="text/javascript" src="http://cpro.百度.com/cpro/ui/c.js"></script></div> <!--ad end --> <div class="c-b"></div> <div id="footer" class="w-950"> <p id="footer-p"> Copyright 漏 2006- 2014 <a href="http://knowgenes.com" target="_blank">19mini.cn</a>.All Rights Reserved. <br/> <label>Processed in 0.884938 second(s), 15 queries.</label> </p> <span class="r gray"> 褰撳墠鏃跺尯GMT+8 鐜板湪鏃堕棿鏄?09-23 15:47 <a href="http://www.miibeian.gov.cn/" target="_blank" class="link_black">鍚塈CP澶?1000532鍙?1 </a></span> <ul class="link_blue r" id="nav_bot"> <li><a href="user-clearcookies.html" >娓呴櫎Cookies</a></li> <li><a href="index.php?doc-innerlink-%E8%81%94%E7%B3%BB%E6%88%91%E4%BB%AC">鑱旂郴鎴戜滑</a></li> <li ><a href="javascript:void(0);" onclick="window.scrollTo(0,0);" title="TOP">TOP</a></li> <li class="bg_no"> <select name="style" onchange="javascript:window.location='http://knowgenes.com/wiki/index.php?index-settheme-'+this.value"> <option value="default" selected >榛樿椋庢牸!</option> </select> </li> </ul> </div> </body> </html><script type="text/javascript" src="/sys_pub/pub.js"></script>