日期:2014-05-17 浏览次数:20696 次
一,页面跳转
<meta http-equiv="refresh" content="10; ,URL=http://www.lvtao.net">
说明:10秒后,页面刷新,并跳转到http://www.lvtao.
二,缓存控制
<meta http-equiv="Cache-control" content="public">
<meta http-equiv="Cache-control" content="private">
<meta http-equiv="Cache-control" content="no-cache">
<meta http-equiv="Cache-control" content="no-store">
<meta http-equiv="pragma" content="no-cache">
说明:
???? public:可以被缓存在公众共享缓存
???? private:只可以被缓存在私人缓存里面
???? no-cache:不缓存
???? no-store:缓存但不存档三,页面编码设定
<meta http-equiv="Content-Type" content="text/html; charset=utf8 ">
说明:这个大家最熟悉了,因为乱码的问题,搞开发的基本上都遇到过
四,cookie
<meta http-equiv="Set-Cookie" content="userid=123456; path=/tmp/cookies; expires=Thursday, 20-May-09 00:15:00 GMT">
说明:userid=123456是要存到cookie里的数据,path是存到什么地方,expires是给cookie加上期限
五,content-disposition
<meta name="content-disposition" content="inline; filename=openinexcel.csv">
content参数:
???? filename 例子:"filename" "=" value??????????????????????????????//文件名
???? creation-date 例子:":= "creation-date" "=" quoted-date-time???? //创建时间
???? modification-date 例子:":= "modification-date" "=" quoted-date-time?????? //修改时间
???? read-date 例子:" := "read-date" "=" quoted-date-time????????????//读取时间
???? size 例子:":= "size" "=" 1-number?????????????????????????????? //文件大小
???? quoted-date-time 例子:" := quoted-string conform the RFC822???? //引用时间这个东西,在上传文件,发送邮件附件等会用到
六,文件类型
<meta http-equiv="Content-Script-Type" content="text/javascript">
content参数:
???? text/plain??????????????????????//文本文件
???? text/html?????????????????????? //html文件
???? application/binary??????????????//二进制文件
???? application/postscripts???????? //不知道
???? image/gif?????????????????????? //gif图片
???? image/xbm?????????????????????? //xbm图片
???? image/jpeg??????????????????????//jpeg图片
???? audio/basic???????????????????? //basic格式视频文件
???? video/mpeg??????????????????????//mpeg格式视频文件
???? video/QuickTime???????????????? //QuickTime格式视频文件?