先舉個(gè)例子
% function th(str) str=replace(str,"媽的","MD") str=replace(str,"靠","KAO") th=str end function function encode(str) str = replace(str, ">", "gt;") str = replace(str, "", "lt;") str = Replace(str, CHR(32), "nbsp;") str = Replace(str, CHR(13), "") str = Replace(str, CHR(10) CHR(10), "/P>P>") str = Replace(str, CHR(10), "BR>") encode=str end function %> %title=request.form("title") content=request.form("content")%> 文章標(biāo)題:%=th(title)%>hr> 文章內(nèi)容:%=encode(th(content))%>
th(str)為自定義函數(shù),主要功能很簡(jiǎn)單:過(guò)濾字符。encode(str)也為自定義函
數(shù),主要功能是完整地顯示被傳遞的信息。
CHR(10)表示換行,CHR(13)表示回車,CHR(32)表示空格。
附加功能:顯示UBB代碼。
即ubb.asp中含有ubb()函數(shù)。
增強(qiáng)的cnbruce.asp
!--#include file="https://www.jb51.net/ubb.asp"--> % function th(str) str=replace(str,"媽的","MD") str=replace(str,"靠","KAO") th=str end function %>
以上就是asp中回車換行符CHR(10)表示換行,CHR(13)表示回車,CHR(32)表示空格的詳細(xì)內(nèi)容,更多關(guān)于asp中回車換行符的資料請(qǐng)關(guān)注腳本之家其它相關(guān)文章!
標(biāo)簽:內(nèi)江 成都 臺(tái)灣 懷化 天津 公主嶺 重慶 麗江
巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《asp中回車換行符CHR(10)表示換行,CHR(13)表示回車,CHR(32)表示空格》,本文關(guān)鍵詞 asp,中,回車,換行符,CHR,表示,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問(wèn)題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無(wú)關(guān)。上一篇:收集asp的常用函數(shù)
下一篇:ASP 指南