htmlencode && urlencode mappath

来源:互联网 发布:jenkins构建java项目 编辑:程序博客网 时间:2024/06/05 16:02

server.htmlencode  can't  parse html

<%

=server.htmlencode( "<br> welcome to come daily practise'")

%>

 <%

response.write "<<br>here  add a row "

%>

source

body>

&lt;br&gt; welcome to daily practise

<br>here  add a row

</body>

 

urlencode

function:允许你对特定字符穿进行url编码

grammer:server.urlencode(string)

eg:

<%

response.write  server.urlencode(http://www.tsinghua.edu.cn)

%>

result show:

http%3A%2F%2Fwww%2Etsinghua%2Eedu%2Ecn

mappath:  右上到左下是/虚拟路径.

function:将相对路径映射为虚拟路径

grammar:servre.mappath(string)

 

 

原创粉丝点击