|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
当然了,现在国内CRM厂商的产品与其说是CRM,但从至少从我的角度分析上来看,充其量只是一个大型的进销存而已了,了解尚浅,不够胆详评,这里只提技术问题显现CodeTitle:ProperNumber
Description:Ifyouhavealongnumbertodisplay,thenwhynotmakeitsplitthenumberupcorrectlywith
acomma?
Forexample,thenumber12345678looksodd,right?Ok,letsapplytheComma()functiontothatnumberand
displayitlikethisautomatically:12,345,678-muchcleaner!
Bytheway,thisscriptsupportsnumbersaslongas15characters(numbers),soifyouhavealonger
numberthanthat,wemayneedtoworktogethertoadvancethisscriptabit,butthissnippetwillwork
justfineforyouraveragenumbers.ThanxtoDaveCantrellforthisadvice!
Copyandpastethissnippetas-isintoyoureditor:
000000000000000000000000000000000000000000000000000000000000000
<%
FunctionComma(str)
IfNot(IsNumeric(str))Orstr=0Then
Result=0
ElseIfLen(Fix(str))<4Then
Result=str
Else
Pos=Instr(1,str,".")
IfPos>0Then
Dec=Mid(str,Pos)
Endif
Res=StrReverse(Fix(str))
LoopCount=1
WhileLoopCount<=Len(Res)
TempResult=TempResult+Mid(Res,LoopCount,3)
LoopCount=LoopCount+3
IfLoopCount<=Len(Res)Then
TempResult=TempResult+","
EndIf
Wend
Result=StrReverse(TempResult)+Dec
EndIf
Comma=Result
EndFunction
%>
<html>
<body>
<%
aLongNumber="12345678"
%>
Anun-formattednumber:<%=aLongNumber%><br>
TheCommaformattednumber:<%=Comma(aLongNumber)%>
</body>
</html>
</p>问题是他们究竟是喜欢他们是使用软件时,速度快还是速度慢好.(当然在3秒以内).无论是他们输入资料时,查找资料时,分析资料时. |
|