asp字數(shù)計算函數(shù)
來源:易賢網(wǎng) 閱讀:1166 次 日期:2015-01-12 17:56:20
溫馨提示:易賢網(wǎng)小編為您整理了“asp字數(shù)計算函數(shù)”,方便廣大網(wǎng)友查閱!

<%

'asp字數(shù)計算函數(shù)

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

%>

更多信息請查看IT技術(shù)專欄

更多信息請查看網(wǎng)絡編程
易賢網(wǎng)手機網(wǎng)站地址:asp字數(shù)計算函數(shù)
關(guān)于我們 | 聯(lián)系我們 | 人才招聘 | 網(wǎng)站聲明 | 網(wǎng)站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 新媒體/短視頻平臺 | 手機站點

版權(quán)所有:易賢網(wǎng)