test.asp

来自「一套六合彩投注程序」· ASP 代码 · 共 19 行

ASP
19
字号
<%
	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 + =
减小字号Ctrl + -
显示快捷键?