|
| 当前位置:首页>>网站开发>>asp>>正文 |
| ASP字数计算函数 |
| 文章出处:联动天下 作者:联动天下 发布时间:2005-12-13 |
| |
<% 'ASP字数计算函数 'by SBSTAR@SINA.COM Function WordCount(strInput) Dim strTemp strTemp = Replace(strInput, vbTab, " ") strTemp = Replace(strTemp, vbCr, " ") strTemp = Replace(strTemp, vbLf, " ")
' 删除字首字尾空格 strTemp = Trim(strTemp)
' 替换为一个空格 Do While InStr(1, strTemp, " ", 1) <> 0 strTemp = Replace(strTemp, " ", " ") Loop WordCount = UBound(Split(strTemp, " ", -1, 1)) +1 End Function %>
|
| [返回顶部↑]
[推荐好友]
[查看评论] |
|
|
|
|
|
|
|