如果浏览器允许页面缓存,返回True ,否则返回False。
escape(str)
escapes a string to make it HTML-safe (< becomes & etc)
字符串转换,使HTML更安全(特殊符号转换)
urlescape(str)
escapes a string to make it URL-safe (spaces become '+', ? and & are translated etc). Don't use this on full URLs with URL query args, because it escapes the characters that must be there to separate the args. It is intended for the value strings for those args.
URL字符串转换(空格 转换为 ‘+’ ,? 和 & 被解释)。不要在带有URL参数的完整URL中使用它,因为escape字符必须对这些参数进行分割。他是打算为 字符串值 设置的。
urlunescape(str)
un-escapes an url-escaped string. Only use this for URL component strings, not on whole URLs!
反编 urlescape 字符串。只为 URL片断服务,不能用于完整URL。
redirect(URL, request, response)
internal redirect to anoter URL ( "http://..../.." or "/webapp/page.y" ) Note: new URL query args are NOT parsed! Set them with request.setParameter
内部重新定向其他URL(”http://…/..” or “/webapp/page.y”)注意:新的URL询问参数是不会被解析的!使用request.setParameter对他们进行设置。
include(URL, request, response)
internal include of another URL ( "http://..../..." or "/webapp/page.y" ) Note: new URL query args are NOT parsed! Set them with request.setParameter
内部include其他URL(“http://…/..” 或 “/webapp/page.y”)注意:新的URL询问参数不会被解析!需要使用request.setParameter来设置他们。
getErrorPage()
the URL of the currently defined custom error page, or None.
当前自定义的error 页面。
setErrorPage(URL)
set a custom error page (URL string) that must be shown -instead of the faulty page- when an unhandled exception occurs in this snakelet. See the "errorpage" declaration for more details on the data available to you in your custom error page.
设置自定义error页面(URL 字符串),当一个不受控制的错误产生的时候必须设置自定义错误页面来代替不完善的页面。更多error页面信息请见 “errorpage” declaration
[/list]
[size=18]Getting the URL prefixes, easy URL creation
上一页 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2627 28 29 30 31 32 33 34 35 36 37 38 下一页
| 论坛热门帖子: | [lch203] 写得蛮好的linux学习笔记(10-21) [黑马制造] 学习java的30个目标(10-19) [笑傲股林] 做测试半年了,有点迷茫,应该再学些什么提高自己的测试水平和测试能力呢?(10-19) [udp8589] 大家用google的来吱一声? 用百度的~~也来报道下?(10-18) [沂偌掳兆] 本人总结的一些认为C++比较经典的书籍,希望对大家有用(10-18) |
| TAG标签: | 翻译 文档 使用 可以 页面 URL 如果 文件 webapp 一个 |
注册
个人空间
