?? test.asp
字號:
<%
str="15.5/5.6/8.3"
tmp=""
tmp1=split(str,"/")
for i=0 to ubound(tmp1)-1
if tmp1(i) >= tmp1(i+1) then '如果這里為>則是從小到排,如果是<則是從大到小排
tmp=tmp1(i+1)
tmp1(i+1)=tmp1(i)
tmp1(i)=tmp
end if
next
str1=""
for j=0 to ubound(tmp1)
str1=str1&tmp1(j)&"/"
next
str1=right(str1,len(str1)-1)
response.write ("原字串為:" & str & "<br/>從小到大:" & str1)
%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -