日期:2014-05-17 浏览次数:20981 次
<% Response.Wite getMoney("12345.67") Function getMoney(s) On Error Resume Next If Not IsNumeric(s) Then s = 0 getMoney = FormatNumber(CDbl(s), 2, -1, 0, -1) End Function %>
------解决方案--------------------
<%
Response.Write getMoney("12345.67")
Function getMoney(s)
On Error Resume Next
If Not IsNumeric(s) Then s = 0
getMoney = FormatNumber(CDbl(s), 2, -1, 0, -1)
End Function
%>
楼上少了个 r