急!谁能把这段vb代码转换为能在网页中执行的Javascript啊!
Dima,b,cAsStringa=Str(s)'s为用户输入的一串数字,注意:已经知道了具体的数字。(type=integer)Fori=1ToLen(a)Select...
Dim a, b, c As String
a = Str(s) 's为用户输入的一串数字,注意:已经知道了具体的数字。(type=integer)
For i = 1 To Len(a)
Select Case Mid(a, i, 1)
Case 0
b = "零"
Case 1
b = "一"
Case 2
b = "二"
Case 3
b = "三"
Case 4
b = "四"
Case 5
b = "五"
Case 6
b = "六"
Case 7
b = "七"
Case 8
b = "八"
Case 9
b = "九"
End Select
c = c + b
Next
MsgBox c
要快啊!
只是为了写几几年(如:二零零九),只有四位!并不是写钱! 展开
a = Str(s) 's为用户输入的一串数字,注意:已经知道了具体的数字。(type=integer)
For i = 1 To Len(a)
Select Case Mid(a, i, 1)
Case 0
b = "零"
Case 1
b = "一"
Case 2
b = "二"
Case 3
b = "三"
Case 4
b = "四"
Case 5
b = "五"
Case 6
b = "六"
Case 7
b = "七"
Case 8
b = "八"
Case 9
b = "九"
End Select
c = c + b
Next
MsgBox c
要快啊!
只是为了写几几年(如:二零零九),只有四位!并不是写钱! 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询