锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲欧洲精品无码AV,亚洲 综合 国产 欧洲 丝袜,亚洲人成色7777在线观看不卡http://www.tkk7.com/juhongtao/zh-cnMon, 12 May 2025 06:54:00 GMTMon, 12 May 2025 06:54:00 GMT60win2003涓嶈兘璇嗗埆縐誨姩紜洏鐨勮В鍐蟲柟娉?http://www.tkk7.com/juhongtao/archive/2008/11/01/238053.htmljavaGrowingjavaGrowingSat, 01 Nov 2008 07:19:00 GMThttp://www.tkk7.com/juhongtao/archive/2008/11/01/238053.htmlhttp://www.tkk7.com/juhongtao/comments/238053.htmlhttp://www.tkk7.com/juhongtao/archive/2008/11/01/238053.html#Feedback0http://www.tkk7.com/juhongtao/comments/commentRss/238053.htmlhttp://www.tkk7.com/juhongtao/services/trackbacks/238053.html

]]>
mavenhttp://www.tkk7.com/juhongtao/archive/2008/09/03/226735.htmljavaGrowingjavaGrowingWed, 03 Sep 2008 10:07:00 GMThttp://www.tkk7.com/juhongtao/archive/2008/09/03/226735.htmlhttp://www.tkk7.com/juhongtao/comments/226735.htmlhttp://www.tkk7.com/juhongtao/archive/2008/09/03/226735.html#Feedback0http://www.tkk7.com/juhongtao/comments/commentRss/226735.htmlhttp://www.tkk7.com/juhongtao/services/trackbacks/226735.html Archetype Command JSF Basic mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-basic-jsf -DremoteRepositories=http://static.appfuse.org/releases -DarchetypeVersion=2.0.2 -DgroupId=com.mycompany.app -DartifactId=myproject Spring MVC Basic mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-basic-spring -DremoteRepositories=http://static.appfuse.org/releases -DarchetypeVersion=2.0.2 -DgroupId=com.mycompany.app -DartifactId=myproject Struts 2 Basic mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-basic-struts -DremoteRepositories=http://static.appfuse.org/releases -DarchetypeVersion=2.0.2 -DgroupId=com.mycompany.app -DartifactId=myproject Tapestry Basic mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-basic-tapestry -DremoteRepositories=http://static.appfuse.org/releases -DarchetypeVersion=2.0.2 -DgroupId=com.mycompany.app -DartifactId=myproject JSF Modular mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-modular-jsf -DremoteRepositories=http://static.appfuse.org/releases -DarchetypeVersion=2.0.2 -DgroupId=com.mycompany.app -DartifactId=myproject Spring MVC Modular mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-modular-spring -DremoteRepositories=http://static.appfuse.org/releases -DarchetypeVersion=2.0.2 -DgroupId=com.mycompany.app -DartifactId=myproject Struts 2 Modular mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-modular-struts -DremoteRepositories=http://static.appfuse.org/releases -DarchetypeVersion=2.0.2 -DgroupId=com.mycompany.app -DartifactId=myproject Tapestry Modular mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-modular-tapestry -DremoteRepositories=http://static.appfuse.org/releases -DarchetypeVersion=2.0.2 -DgroupId=com.mycompany.app -DartifactId=myproject Core
(backend only) mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-core -DremoteRepositories=http://static.appfuse.org/releases -DarchetypeVersion=2.0.2 -DgroupId=com.mycompany.app -DartifactId=myproject

You should be able to run AppFuse immediately if you have a MySQL 5.x database installed and it's accessible to root using no password. If you'd prefer to use an embedded database, we've recently added Database Profiles for H2, HSQLDB, etc.

MySQL Security
Running MySQL using root with no password is not the most secure thing to do. Once your database is created, you can change the root password using the command below:
mysql --user=root --pass='' mysql -e "update user set password=password('newpw') where user='root'; flush privileges;"

AppFuse uses the username "root" and a blank password by default. To change these values, modify the <jdbc.username> and <jdbc.password> properties in your project's pom.xml (at the bottom).

Run your application

Running AppFuse is easy now. Once the archetype project is created, Maven will create and populate your database using the hibernate3 and dbunit plugins, respectively. All you have to do is use Maven to run the Jetty container and view your application.

  1. Check your new project into source control, unless you have a good reason not to. Google Code has free Subversion hosting, as do many others.
  2. From the command line, cd into your new project's directory and run mvn to download JARs, Tomcat and run the integration tests in your project. Now is a good time to take a coffee break or grab a beer - downloading everything and running the tests can take 5-10 minutes.
  3. To view your application run mvn jetty:run-war from your project's directory (for a modular project, you'll need to run mvn jetty:run-war from your project's web directory). Maven will start Jetty and you should be able to view your application in your browser at http://localhost:8080.
    The default username/password for an admin user is admin/admin. For a regular user, use user/user.
  4. To override files from AppFuse, run mvn war:inplace. This will extract the dependent WARs into src/main/webapp, where you can change files to your heart's content. When you have the war expanded in your source tree, you can run mvn jetty:run. This will allow you to change files on-the-fly and Jetty will reload them as needed. The only problem with this approach is you end up with an "exploded AppFuse" in your project, which won't bode well for upgrading. We recommend you check your project into source control before running mvn war:inplace. That way, it'll be easier for you to decide what needs to be checked in (over written) and what can be deleted.

If you receive OutOfMemory errors when using mvn jetty:run, see this mailing list thread.

You can change AppFuse from its "embedded mode" to full-source mode by running mvn appfuse:full-source from your project's root directory.

Bug with Ant 1.7.0
Local repositories and projects on Windows platforms are held in directories whose paths contain no spaces. To fix this issue, modify your $M2_HOME/conf/settings.xml and change your localRepository to something like the following:
<localRepository>c:\docume~1\username\.m2\repository</localRepository> 
Development Environment
See development environment for detailed instructions on how to setup your computer to develop AppFuse-based applications.
Changing database settings
To change your MySQL database settings, simply change the <jdbc.*> properties at the bottom of your pom.xml. See Database Profiles to use a database other than MySQL


set MAVEN_OPTS=-Xmx512m -Xms512m -XX:MaxPermSize=512m

]]>
request.getParameter("鍙橀噺鍚?)鑾峰彇鐨勫瓧絎︿覆涓師鏉ョ殑鍔犲彿鍙樻垚浜嗙┖鏍鹼紝url浼犲? http://www.tkk7.com/juhongtao/archive/2007/12/19/168639.htmljavaGrowingjavaGrowingWed, 19 Dec 2007 01:02:00 GMThttp://www.tkk7.com/juhongtao/archive/2007/12/19/168639.htmlhttp://www.tkk7.com/juhongtao/comments/168639.htmlhttp://www.tkk7.com/juhongtao/archive/2007/12/19/168639.html#Feedback5http://www.tkk7.com/juhongtao/comments/commentRss/168639.htmlhttp://www.tkk7.com/juhongtao/services/trackbacks/168639.html鍘熷洜錛毬犅?url涓湁浜涘瓧絎﹁杞箟錛屾瘮濡傜┖鏍艱緙栫爜鎴愬姞鍙鳳紝浜庢槸浼犵殑鍙傛暟鏄庢槑鏄姞鍙鳳紝鑾峰彇鐨勫煎嵈鎴愪簡絀烘牸銆傚浣曡В鍐沖憿錛熷鏋滄槸閫氳繃url浼犻掑弬鏁幫紝搴旇瀵瑰叾榪涜蹇呰鐨勭紪鐮併?br />瑙e喅鍔炴硶錛?br />聽聽聽聽聽聽聽聽 鍦╦avascript涓姞鍏ヂ犅?function URLencode(sStr)
{
聽聽聽 return escape(sStr).replace(/\+/g, '%2B').replace(/\"/g,'%22').replace(/\'/g, '%27').replace(/\//g,'%2F');
}
瀵瑰瓧絎︿覆榪涜澶勭悊.濡傦細var str=URLencode("abc+")


]]>
SAP 鏈堟湯緇撳笎姝ラhttp://www.tkk7.com/juhongtao/archive/2007/12/18/168512.htmljavaGrowingjavaGrowingTue, 18 Dec 2007 08:03:00 GMThttp://www.tkk7.com/juhongtao/archive/2007/12/18/168512.htmlhttp://www.tkk7.com/juhongtao/comments/168512.htmlhttp://www.tkk7.com/juhongtao/archive/2007/12/18/168512.html#Feedback0http://www.tkk7.com/juhongtao/comments/commentRss/168512.htmlhttp://www.tkk7.com/juhongtao/services/trackbacks/168512.html

SD Relevant Steps:
1.Check if all delivery in due list have been processedVL06G (Could set background jobs to automatically generate the billing due list for posting)
2.Check if all picking in due list have been processedVL06P
3.Check if all goods issue in due list have been processedVL04
4.Check if all billed AR has been release to accountingVFX3

PP Relevant Steps:
1.Check if all back flash error has been solved (COGI Check every day this kind of problem and solved on time)
2.Check if all production orders that will not be followed have been finally聽聽confirmed or technically closed. Do final confirmation even small quantity聽聽variance exist but we consider this order has finished
3.Do technical close at month end for the orders will not be followed in the future
4.Confirmation. Do not confirm any assembly scrap when do production order conf.

MM Relevant Steps
1.Check if all goods movement has been booked in SAP
2.GR/IR clearing accounts maintenance if needed
3.Open the MM period for movement posting when new period starts MMPV

FI Relevant Steps
1.Book all accounting entries for:
- Accrued expense
- Do recurring entry (prepayment, accrued expense, amortization)
- Process G/L, vendor, customer balance & open items
- Cost allocations by FI
2.AM Fixed asset depreciation run and period postingAFAB
3.AM Periodic posting ASKB
4.G/L,AR,AP balance check & Open item clearing
5.Foreign currency revaluation for bank/cash & AR AP open items
Bank/cash revaluation: F.06
AR AP open items: F.05
6.GR/IR clearing account regrouping process F.19
7.Automatic clearing for G/L accounts, vendor and customer F.13

CO Relevant Steps
1.Release standard cost estimate
CK24Only when there are costing run to be released.
2.Cost reallocation according to activity
Distribution: CKV5
Assessment: KSU5
3.Cost splitting among activity KSS2
4.Actual activity price calculation KSII
5.Production order revaluation with actual activity price CON2
6.WIP calculationfor the production orders KKAO
7.Variance calculation for the production orders KKS1
8.Production / Costing orders settlement CO88/KO88
9.Material ledger closing > MMPV first
a.Create costing runCKRU00
b.Allow settlementCKMF_RUN
c.Allow closing entriesCKMG_RUN
d.Material selectionCKMB_RUN
e.Determine costing sequenceCKMC_RUN
f.Settle single levelCKMH_RUN
g.Settle multi levelCKMM_RUN
h.Post closingCKMI

]]>
javascript 鐨勫嚑縐嶆帓搴忔柟娉?/title><link>http://www.tkk7.com/juhongtao/archive/2007/07/23/131899.html</link><dc:creator>javaGrowing</dc:creator><author>javaGrowing</author><pubDate>Mon, 23 Jul 2007 08:23:00 GMT</pubDate><guid>http://www.tkk7.com/juhongtao/archive/2007/07/23/131899.html</guid><wfw:comment>http://www.tkk7.com/juhongtao/comments/131899.html</wfw:comment><comments>http://www.tkk7.com/juhongtao/archive/2007/07/23/131899.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/juhongtao/comments/commentRss/131899.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/juhongtao/services/trackbacks/131899.html</trackback:ping><description><![CDATA[ <p>鎵璋撴帓搴忥紝灝辨槸瑕佹暣鐞嗘枃浠朵腑鐨勮褰曪紝浣夸箣鎸夊叧閿瓧閫掑(鎴栭掑噺)嬈″簭鎺掑垪璧鋒潵銆傚叾紜垏瀹氫箟濡備笅錛?br />銆銆杈撳叆錛歯涓褰昍<sub>1</sub>錛孯<sub>2</sub>錛屸︼紝R<sub>n</sub>錛屽叾鐩稿簲鐨勫叧閿瓧鍒嗗埆涓篕<sub>1</sub>錛孠<sub>2</sub>錛屸︼紝K<sub>n</sub>銆?br />銆銆杈撳嚭錛歊<sub>il</sub>錛孯<sub>i2</sub>錛屸︼紝R<sub>in</sub>錛屼嬌寰桲<sub>i1</sub>鈮<sub>i2</sub>鈮も︹墹K<sub>in</sub>銆?鎴朘<sub>i1</sub>鈮<sub>i2</sub>鈮モ︹墺K<sub>in</sub>)銆?/p> <p>聽聽聽 榪欓噷錛屾垜浠畝鍗曚粙緇嶅嚑縐嶆帓搴忔柟娉曪紝鐩存帴鎻掑叆鎺掑簭銆佸笇鍎挎帓搴忋佸啋娉℃帓搴忋佸揩閫熸帓搴忋佺洿鎺ラ夋嫨鎺掑簭錛屾枃涓墍鎻愬強鐨勪唬鐮佸湪IE6涓嬫祴璇曢氳繃銆?/p> <p> <strong>鐩存帴鎻掑叆鎺掑簭鍩烘湰鎬濇兂</strong> <br />聽聽聽 鍋囪寰呮帓搴忕殑璁板綍瀛樻斁鍦ㄦ暟緇凴[1..n]涓傚垵濮嬫椂錛孯[1]鑷垚1涓湁搴忓尯錛屾棤搴忓尯涓篟[2..n]銆備粠i=2璧風洿鑷砳=n涓烘錛屼緷嬈″皢R[i]鎻掑叆褰撳墠鐨勬湁搴忓尯R[1..i-1]涓紝鐢熸垚鍚玭涓褰曠殑鏈夊簭鍖恒?/p> <p>聽聽聽 綆楁硶鎻忚堪<br /><span id="c2ieg6g" class="code"><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);">聽InsertSort(arr)聽{聽</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">鎻掑叆鎺掑簭->鐩存帴鎻掑叆娉曟帓搴?/span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">聽聽</span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);">聽st聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">聽Date();<br />聽聽</span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);">聽temp,聽j;<br />聽聽</span><span style="color: rgb(0, 0, 255);">for</span><span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);">聽i</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">;聽i</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">arr.length;聽i</span><span style="color: rgb(0, 0, 0);">++</span><span style="color: rgb(0, 0, 0);">)聽{<br />聽聽聽</span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">((arr[i])聽</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">聽(arr[i</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">]))聽{<br />聽聽聽聽temp聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽arr[i];<br />聽聽聽聽j聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽i</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">;<br />聽聽聽聽</span><span style="color: rgb(0, 0, 255);">do</span><span style="color: rgb(0, 0, 0);">聽{<br />聽聽聽聽聽arr[j</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">]聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽arr[j];<br />聽聽聽聽聽j</span><span style="color: rgb(0, 0, 0);">--</span><span style="color: rgb(0, 0, 0);">;<br />聽聽聽聽}<br />聽聽聽聽</span><span style="color: rgb(0, 0, 255);">while</span><span style="color: rgb(0, 0, 0);">聽(j</span><span style="color: rgb(0, 0, 0);">>-</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">&&</span><span style="color: rgb(0, 0, 0);">聽(temp)聽</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">聽(arr[j]));<br />聽聽聽聽arr[j</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">]聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽temp;<br />聽聽聽}</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">endif</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">聽聽}<br />聽聽status聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽(</span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">聽Date()聽</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">聽st)聽</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">聽'聽ms';<br />聽聽</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">聽arr;<br />聽}</span></div><br /></span></p> <p> <strong>甯屽皵鎺掑簭鍩烘湰鎬濇兂<br /></strong>銆聽聽鍏堝彇涓涓皬浜巒鐨勬暣鏁癲<sub>1</sub>浣滀負絎竴涓閲忥紝鎶婃枃浠剁殑鍏ㄩ儴璁板綍鍒嗘垚d<sub>1</sub>涓粍銆傛墍鏈夎窛紱諱負d<sub>l</sub>鐨勫嶆暟鐨勮褰曟斁鍦ㄥ悓涓涓粍涓傚厛鍦ㄥ悇緇勫唴榪涜鐩存帴鎻掍漢鎺掑簭錛涚劧鍚庯紝鍙栫浜屼釜澧為噺d<sub>2</sub><d<sub>1</sub>閲嶅涓婅堪鐨勫垎緇勫拰鎺掑簭錛岀洿鑷蟲墍鍙栫殑澧為噺d<sub>t</sub>=1(d<sub>t</sub><d<sub>t-l</sub><鈥?lt;d<sub>2</sub><d<sub>1</sub>)錛屽嵆鎵鏈夎褰曟斁鍦ㄥ悓涓緇勪腑榪涜鐩存帴鎻掑叆鎺掑簭涓烘銆?br />聽 銆璇ユ柟娉曞疄璐ㄤ笂鏄竴縐嶅垎緇勬彃鍏ユ柟娉曘?/p> <p>聽聽聽 綆楁硶鎻忚堪<br /><span id="244i4ea" class="code"><p>聽</p><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);">聽ShellSort(arr)聽{聽</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">鎻掑叆鎺掑簭->甯屽効鎺掑簭</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">聽聽</span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);">聽st聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">聽Date();<br />聽聽</span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);">聽increment聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽arr.length;<br />聽聽</span><span style="color: rgb(0, 0, 255);">do</span><span style="color: rgb(0, 0, 0);">聽{<br />聽聽聽increment聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽(increment</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">3</span><span style="color: rgb(0, 0, 0);">|</span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">)聽</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">;<br />聽聽聽arr聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽ShellPass(arr,聽increment);<br />聽聽}<br />聽聽</span><span style="color: rgb(0, 0, 255);">while</span><span style="color: rgb(0, 0, 0);">聽(increment聽</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">)<br /><br />聽聽status聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽(</span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">聽Date()聽</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">聽st)聽</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">聽'聽ms';<br />聽聽</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">聽arr;<br />聽}<br />聽</span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);">聽ShellPass(arr,聽d)聽{聽</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">甯屽効鎺掑簭鍒嗘鎵ц鍑芥暟</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">聽聽</span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);">聽temp,聽j;<br />聽聽</span><span style="color: rgb(0, 0, 255);">for</span><span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);">聽i</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">d;聽i</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">arr.length;聽i</span><span style="color: rgb(0, 0, 0);">++</span><span style="color: rgb(0, 0, 0);">)聽{<br />聽聽聽</span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">((arr[i])聽</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">聽(arr[i</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">d]))聽{<br />聽聽聽聽temp聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽arr[i];聽j聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽i</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">d;<br />聽聽聽聽</span><span style="color: rgb(0, 0, 255);">do</span><span style="color: rgb(0, 0, 0);">聽{<br />聽聽聽聽聽arr[j</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">d]聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽arr[j];<br />聽聽聽聽聽j聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽j</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">d;<br />聽聽聽聽}<br />聽聽聽聽</span><span style="color: rgb(0, 0, 255);">while</span><span style="color: rgb(0, 0, 0);">聽(j</span><span style="color: rgb(0, 0, 0);">>-</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">&&</span><span style="color: rgb(0, 0, 0);">聽(temp)聽</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">聽(arr[j]));<br />聽聽聽聽arr[j</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">d]聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽temp;<br />聽聽聽}</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">endif</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">聽聽}<br />聽聽</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">聽arr;<br />聽}</span></div></span></p> <p> <strong>鍐掓場鎺掑簭鍩烘湰鎬濇兂<br /></strong>聽聽聽 灝嗚鎺掑簭鐨勮褰曟暟緇凴[1..n]鍨傜洿鎺掑垪錛屾瘡涓褰昍[i]鐪嬩綔鏄噸閲忎負R[i].key鐨勬皵娉°傛牴鎹交姘旀場涓嶈兘鍦ㄩ噸姘旀場涔嬩笅鐨勫師鍒欙紝浠庝笅寰涓婃壂鎻忔暟緇? R錛氬嚒鎵弿鍒拌繚鍙嶆湰鍘熷垯鐨勮交姘旀場錛屽氨浣垮叾鍚戜笂"椋樻誕"銆傚姝ゅ弽澶嶈繘琛岋紝鐩村埌鏈鍚庝換浣曚袱涓皵娉¢兘鏄交鑰呭湪涓婏紝閲嶈呭湪涓嬩負姝€?br /></p> <p>聽聽聽 綆楁硶鎻忚堪<br /><span id="seu4cs4" class="code">聽<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);">聽BubbleSort(arr)聽{聽</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">浜ゆ崲鎺掑簭->鍐掓場鎺掑簭</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">聽聽</span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);">聽st聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">聽Date();<br />聽聽</span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);">聽temp;<br />聽聽</span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);">聽exchange;<br />聽聽</span><span style="color: rgb(0, 0, 255);">for</span><span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);">聽i</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">;聽i</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">arr.length;聽i</span><span style="color: rgb(0, 0, 0);">++</span><span style="color: rgb(0, 0, 0);">)聽{<br />聽聽聽exchange聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 255);">false</span><span style="color: rgb(0, 0, 0);">;<br />聽聽聽</span><span style="color: rgb(0, 0, 255);">for</span><span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);">聽j</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">arr.length</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">2</span><span style="color: rgb(0, 0, 0);">;聽j</span><span style="color: rgb(0, 0, 0);">>=</span><span style="color: rgb(0, 0, 0);">i;聽j</span><span style="color: rgb(0, 0, 0);">--</span><span style="color: rgb(0, 0, 0);">)聽{<br />聽聽聽聽</span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">((arr[j</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">])聽</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">聽(arr[j]))聽{<br />聽聽聽聽聽temp聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽arr[j</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">];<br />聽聽聽聽聽arr[j</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">]聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽arr[j];<br />聽聽聽聽聽arr[j]聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽temp;<br />聽聽聽聽聽exchange聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 255);">true</span><span style="color: rgb(0, 0, 0);">;<br />聽聽聽聽}<br />聽聽聽}<br />聽聽聽</span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(0, 0, 0);">!</span><span style="color: rgb(0, 0, 0);">exchange)聽</span><span style="color: rgb(0, 0, 255);">break</span><span style="color: rgb(0, 0, 0);">;<br />聽聽}<br />聽聽status聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽(</span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">聽Date()聽</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">聽st)聽</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">聽'聽ms';<br />聽聽</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">聽arr;<br />聽}</span></div></span></p> <p> <strong>蹇熸帓搴忓熀鏈濇兂<br /></strong>聽聽聽 灝嗗師闂鍒嗚В涓鴻嫢騫蹭釜瑙勬ā鏇村皬浣嗙粨鏋勪笌鍘熼棶棰樼浉浼肩殑瀛愰棶棰樸傞掑綊鍦拌В榪欎簺瀛愰棶棰橈紝鐒跺悗灝嗚繖浜涘瓙闂鐨勮В緇勫悎涓哄師闂鐨勮В銆?br />聽聽聽 鍦≧[low..high]涓換閫変竴涓褰曚綔涓哄熀鍑?Pivot)錛屼互姝ゅ熀鍑嗗皢褰撳墠鏃犲簭鍖哄垝鍒嗕負宸︺佸彸涓や釜杈冨皬鐨勫瓙鍖洪棿R[low..pivotpos- 1)鍜孯[pivotpos+1..high]錛屽茍浣垮乏杈瑰瓙鍖洪棿涓墍鏈夎褰曠殑鍏抽敭瀛楀潎灝忎簬絳変簬鍩哄噯璁板綍(涓嶅Θ璁頒負pivot)鐨勫叧閿瓧 pivot.key錛屽彸杈圭殑瀛愬尯闂翠腑鎵鏈夎褰曠殑鍏抽敭瀛楀潎澶т簬絳変簬pivot.key錛岃屽熀鍑嗚褰昿ivot鍒欎綅浜庢紜殑浣嶇疆(pivotpos)涓婏紝瀹冩棤 欏誨弬鍔犲悗緇殑鎺掑簭銆?/p> <p>聽聽聽 綆楁硶鎻忚堪<br /><span id="ckmi4gk" class="code">聽<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);">聽QuickSort(arr)聽{聽</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">浜ゆ崲鎺掑簭->蹇熸帓搴?/span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">聽聽</span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">聽(arguments.length</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">)聽{<br />聽聽聽</span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);">聽low聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽arguments[</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">];<br />聽聽聽</span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);">聽high聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽arguments[</span><span style="color: rgb(0, 0, 0);">2</span><span style="color: rgb(0, 0, 0);">];<br />聽聽}聽</span><span style="color: rgb(0, 0, 255);">else</span><span style="color: rgb(0, 0, 0);">聽{<br />聽聽聽</span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);">聽low聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">;<br />聽聽聽</span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);">聽high聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽arr.length</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">;<br />聽聽}<br />聽聽</span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">(low聽</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">聽high){<br />聽聽聽</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">聽function聽Partition</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">聽聽聽</span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);">聽i聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽low;<br />聽聽聽</span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);">聽j聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽high;<br />聽聽聽</span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);">聽pivot聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽arr[i];<br />聽聽聽</span><span style="color: rgb(0, 0, 255);">while</span><span style="color: rgb(0, 0, 0);">(i</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">j)聽{<br />聽聽聽聽</span><span style="color: rgb(0, 0, 255);">while</span><span style="color: rgb(0, 0, 0);">(i</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">j聽</span><span style="color: rgb(0, 0, 0);">&&</span><span style="color: rgb(0, 0, 0);">聽arr[j]</span><span style="color: rgb(0, 0, 0);">>=</span><span style="color: rgb(0, 0, 0);">pivot)<br />聽聽聽聽聽j</span><span style="color: rgb(0, 0, 0);">--</span><span style="color: rgb(0, 0, 0);">;<br />聽聽聽聽</span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">(i</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">j)<br />聽聽聽聽聽arr[i</span><span style="color: rgb(0, 0, 0);">++</span><span style="color: rgb(0, 0, 0);">]聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽arr[j];<br />聽聽聽聽</span><span style="color: rgb(0, 0, 255);">while</span><span style="color: rgb(0, 0, 0);">(i</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">j聽</span><span style="color: rgb(0, 0, 0);">&&</span><span style="color: rgb(0, 0, 0);">聽arr[i]</span><span style="color: rgb(0, 0, 0);"><=</span><span style="color: rgb(0, 0, 0);">pivot)<br />聽聽聽聽聽i</span><span style="color: rgb(0, 0, 0);">++</span><span style="color: rgb(0, 0, 0);">;<br />聽聽聽聽</span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">(i</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">j)<br />聽聽聽聽聽arr[j</span><span style="color: rgb(0, 0, 0);">--</span><span style="color: rgb(0, 0, 0);">]聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽arr[i];<br />聽聽聽}</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">endwhile</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">聽聽聽arr[i]聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽pivot;<br />聽聽聽</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">聽end聽function</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">聽聽聽</span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);">聽pivotpos聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽i;聽</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">Partition(arr錛宭ow錛宧igh);</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">聽聽聽QuickSort(arr,聽low,聽pivotpos</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">);<br />聽聽聽QuickSort(arr,聽pivotpos</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">,聽high);<br />聽聽}聽</span><span style="color: rgb(0, 0, 255);">else</span><span style="color: rgb(0, 0, 0);"><br />聽聽聽</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">;<br />聽聽聽</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">聽arr;<br />聽}<br /><br />鐩存帴閫夋嫨鎺掑簭鍩烘湰鎬濇兂<br />聽聽銆n涓褰曠殑鏂囦歡鐨勭洿鎺ラ夋嫨鎺掑簭鍙粡榪噉</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">1瓚熺洿鎺ラ夋嫨鎺掑簭寰楀埌鏈夊簭緇撴灉錛?br />聽鈶犲垵濮嬬姸鎬侊細鏃犲簭鍖轟負R[</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">..n]錛屾湁搴忓尯涓虹┖銆?br />聽鈶$1瓚熸帓搴?br />聽聽聽聽鍦ㄦ棤搴忓尯R[</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">..n]涓夊嚭鍏抽敭瀛楁渶灝忕殑璁板綍R[k]錛屽皢瀹冧笌鏃犲簭鍖虹殑絎?涓褰昍[</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">]浜ゆ崲錛屼嬌R[</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">..</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">]鍜孯[</span><span style="color: rgb(0, 0, 0);">2</span><span style="color: rgb(0, 0, 0);">..n]鍒嗗埆鍙樹負璁板綍涓暟澧炲姞1涓殑鏂版湁搴忓尯鍜岃褰曚釜鏁板噺灝?涓殑鏂版棤搴忓尯銆?br />銆銆鈥︹?br />聽鈶㈢i瓚熸帓搴?br />銆銆絎琲瓚熸帓搴忓紑濮嬫椂錛屽綋鍓嶆湁搴忓尯鍜屾棤搴忓尯鍒嗗埆涓篟[</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">..i</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">]鍜孯[i..n](</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">鈮鈮</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">)銆傝瓚熸帓搴忎粠褰撳墠鏃犲簭鍖轟腑閫夊嚭鍏抽敭瀛楁渶灝忕殑璁板綍R聽[k]錛屽皢瀹冧笌鏃犲簭鍖虹殑絎?涓褰昍[i]浜ゆ崲錛屼嬌R[</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">..i]鍜孯[i</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">..n]鍒嗗埆鍙樹負璁板綍涓暟澧炲姞1涓殑鏂版湁搴忓尯鍜岃褰曚釜鏁板噺灝?涓殑鏂版棤搴忓尯銆?br />聽聽聽聽榪欐牱錛宯涓褰曠殑鏂囦歡鐨勭洿鎺ラ夋嫨鎺掑簭鍙粡榪噉</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">1瓚熺洿鎺ラ夋嫨鎺掑簭寰楀埌鏈夊簭緇撴灉銆?br /><br />聽聽聽聽綆楁硶鎻忚堪<br />聽</span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);">聽SelectSort(arr)聽{聽</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">閫夋嫨鎺掑簭->鐩存帴閫夋嫨鎺掑簭</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">聽聽</span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);">聽st聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">聽Date();<br />聽聽</span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);">聽temp;<br />聽聽</span><span style="color: rgb(0, 0, 255);">for</span><span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);">聽i</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">;聽i</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">arr.length;聽i</span><span style="color: rgb(0, 0, 0);">++</span><span style="color: rgb(0, 0, 0);">)聽{<br />聽聽聽</span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);">聽k聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽i;<br />聽聽聽</span><span style="color: rgb(0, 0, 255);">for</span><span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);">聽j</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">i</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">;聽j</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">arr.length;聽j</span><span style="color: rgb(0, 0, 0);">++</span><span style="color: rgb(0, 0, 0);">)聽{<br />聽聽聽聽</span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">((arr[j])聽</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">聽(arr[k]))<br />聽聽聽聽聽k聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽j;<br />聽聽聽}<br />聽聽聽</span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">聽(k聽</span><span style="color: rgb(0, 0, 0);">!=</span><span style="color: rgb(0, 0, 0);">聽i){<br />聽聽聽聽temp聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽arr[i];<br />聽聽聽聽arr[i]聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽arr[k];<br />聽聽聽聽arr[k]聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽temp;<br />聽聽聽}<br />聽聽}<br />聽聽status聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽(</span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">聽Date()聽</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">聽st)聽</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">聽'聽ms';<br />聽聽</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">聽arr;<br />聽}<br /></span></div></span></p> <img src ="http://www.tkk7.com/juhongtao/aggbug/131899.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/juhongtao/" target="_blank">javaGrowing</a> 2007-07-23 16:23 <a href="http://www.tkk7.com/juhongtao/archive/2007/07/23/131899.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://www.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> 主站蜘蛛池模板: <a href="http://chuguo65.com" target="_blank">国产成人yy免费视频</a>| <a href="http://mysb123.com" target="_blank">国产午夜无码精品免费看</a>| <a href="http://ccc998.com" target="_blank">久久久久久久免费视频</a>| <a href="http://96j6.com" target="_blank">亚洲精品自产拍在线观看动漫</a>| <a href="http://kingleadsw.com" target="_blank">亚洲一级片免费看</a>| <a href="http://8mav1007.com" target="_blank">亚洲区小说区图片区</a>| <a href="http://maopiandao163.com" target="_blank">免费无码一区二区</a>| <a href="http://tjtangpu.com" target="_blank">亚洲人成网站色在线入口</a>| <a href="http://doctor5470.com" target="_blank">男人j进女人p免费视频</a>| <a href="http://kkjk123.com" target="_blank">亚洲国产精品一区二区第一页免</a>| <a href="http://9898vip.com" target="_blank">免费福利资源站在线视频</a>| <a href="http://tltcn.com" target="_blank">亚洲国产精品无码久久青草 </a>| <a href="http://fenglufzjx.com" target="_blank">无码日韩精品一区二区三区免费</a>| <a href="http://www-44334.com" target="_blank">亚洲日韩精品射精日</a>| <a href="http://142121.com" target="_blank">免费看黄的成人APP</a>| <a href="http://0330196.com" target="_blank">亚洲人成在线电影</a>| <a href="http://xjtuykw.com" target="_blank">成人免费的性色视频</a>| <a href="http://jinmenonline.com" target="_blank">国产午夜亚洲精品</a>| <a href="http://junyehome.com" target="_blank">国产精品免费播放</a>| <a href="http://91sebo.com" target="_blank">国产免费A∨在线播放</a>| <a href="http://junyehome.com" target="_blank">国产精品亚洲片在线观看不卡 </a>| <a href="http://xianliwang.com" target="_blank">精品无码AV无码免费专区</a>| <a href="http://iciap.com" target="_blank">亚洲a级成人片在线观看</a>| <a href="http://hwjyrck.com" target="_blank">全免费a级毛片免费看无码</a>| <a href="http://yw8885.com" target="_blank">国产成人+综合亚洲+天堂</a>| <a href="http://tyfinland.com" target="_blank">亚洲一区二区三区香蕉</a>| <a href="http://41xjj.com" target="_blank">免费看又黄又无码的网站</a>| <a href="http://meinvtaotu.com" target="_blank">久久精品国产亚洲AV忘忧草18</a>| <a href="http://333uy.com" target="_blank">国产美女做a免费视频软件</a>| <a href="http://jkc178.com" target="_blank">91av免费在线视频</a>| <a href="http://nuosheying.com" target="_blank">78成人精品电影在线播放日韩精品电影一区亚洲 </a>| <a href="http://513109.com" target="_blank">国产又大又长又粗又硬的免费视频</a>| <a href="http://changfafangzhi.com" target="_blank">精品韩国亚洲av无码不卡区</a>| <a href="http://bii59.com" target="_blank">久久久久亚洲AV成人网</a>| <a href="http://yhanalati.com" target="_blank">免费人成在线观看网站品爱网 </a>| <a href="http://664403.com" target="_blank">精选影视免费在线 </a>| <a href="http://ganbadei.com" target="_blank">亚洲综合激情九月婷婷</a>| <a href="http://89kino.com" target="_blank">免费国产在线观看不卡</a>| <a href="http://qmoread.com" target="_blank">久久国产免费观看精品</a>| <a href="http://27simnjingmiguan.com" target="_blank">亚洲色欲色欲www在线播放</a>| <a href="http://8833081.com" target="_blank">国产av无码专区亚洲av果冻传媒</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>