📄 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 + -