解析传入参数错误/domdocument错误什么意思

他的最新文章
他的热门文章
您举报文章:
举报原因:
原文地址:
原因补充:
(最多只允许输入30个字)博客分类:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
1.DocumentRoot
DocumentRoot指定apache服务器网页(文档)根目录
DocumentRoot "/home/iflow/apache2/htdocs"
2.Director
Directory用于指定默认的路径
&Directory "/home/iflow/apache2/htdocs"&
3.DirectoryIndex
DirectoryIndex是在只指定目录的情况下默认显示的文件名
DirectoryIndex home.html index.html index.html.var index.shtml
4.DefaultLanguage
DefaultLanguage强制指定页面默认输出的语音语音
DefaultLanguage zh-cn
5.ServerRoot
ServerRoot设置apache服务器的根目录
ServerRoot "/home/iflow/apache2"
6.ServerAdmin
ServerAdmin设置Apache服务器管理员的email地址
ServerAdmin
7.ServerName
ServerName设置Apache服务器的主机名
ServerName english.zbxsoft.com
Listen设置apache服务器监听的端口
9.ErrorLog
ErrorLog设置Apache服务器中错误日志的路径和文件名
ErrorLog logs/error_log
10.CustomLog
CustomLog logs/access_log common
11.Timeout
Timeout定义客户程序和服务器连接的超时间隔,超过这个时间间隔(秒)后服务器将断开和客户机的连接
Timeout 300
12.KeepAlive
KeepAlive 在HTTP 1.0中,一次连接只能作传输一次HTTP请求,而KeepAlive参数用于支持HTTP 1.1版本的一次连接、多次传输功能,这样就可以在一次连接中传递多个HTTP请求
KeepAlive On
13.MaxKeepAliveRequests
MaxKeepAliveRequests为一次连接可以进行的HTTP请求的最大请求次数。将其值设为0将支持在一次连接内进行无限次的传输请求。事实上没有客户程序在一次连接中请求太多的页面,通常达不到这个上限就完成连接了。
MaxKeepAliveRequests 100
14.KeepAliveTimeout
KeepAliveTimeout测试一次连接中的多次请求传输之间的时间,如果服务器已经完成了一次请求,但一直没有接收到客户程序的下一次请求,在间隔超过了这个参数设置的值之后,服务器就断开连接
KeepAliveTimeout 15
15.IndexIgnore
IndexIgnore让服务器在列出文件列表时忽略相应的文件, 这里使用模式配 置的方式定义文件名
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
16.AddEncoding
AddEncoding用于告诉一些使用压缩的MIME类型,这样可以让浏览器进行解压缩操作
AddEncoding x-compress .Z
AddEncoding x-gzip .gz .tgz
17.AddType
AddType参数可以为特定后缀的文件指定MIME类型,这里的设置将覆盖 mime.types中的设置
AddType application/x-compress .Z
AddType text/html .shtml
AddType application/x-httpd-php .php .phtml
18.ErrorDocument
ErrorDocument就用于设置当出现哪个错误时应该回应客户浏览器那些内容
ErrorDocument 500 "The server made a boo boo."
ErrorDocument 404 /missing.html
浏览: 879106 次
来自: 北京
我按照你的方法写的,不起作用啊
原地址打不开了呀
sunteng 写道这是json 吗[{url:'aaa'}, ...
这是json 吗
(window.slotbydup=window.slotbydup || []).push({
id: '4773203',
container: s,
size: '200,200',
display: 'inlay-fix'JavaScript Cookies
JavaScript Cookies
cookie 用来识别用户。
利用用户在提示框中输入的数据创建一个 JavaScript Cookie,当该用户再次访问该页面时,根据 cookie 中的信息发出欢迎信息。
什么是cookie?
cookie 是存储于访问者的计算机中的变量。每当同一台计算机通过浏览器请求某个页面时,就会发送这个 cookie。你可以使用 JavaScript 来创建和取回 cookie 的值。
有关cookie的例子:
名字 cookie
当访问者首次访问页面时,他或她也许会填写他/她们的名字。名字会存储于 cookie 中。当访问者再次访问网站时,他们会收到类似 &Welcome John Doe!& 的欢迎词。而名字则是从 cookie 中取回的。
密码 cookie
当访问者首次访问页面时,他或她也许会填写他/她们的密码。密码也可被存储于 cookie 中。当他们再次访问网站时,密码就会从 cookie 中取回。
日期 cookie
当访问者首次访问你的网站时,当前的日期可存储于 cookie 中。当他们再次访问网站时,他们会收到类似这样的一条消息:&Your last visit was on Tuesday August 11, 2005!&。日期也是从 cookie 中取回的。
创建和存储 cookie
在这个例子中我们要创建一个存储访问者名字的 cookie。当访问者首次访问网站时,他们会被要求填写姓名。名字会存储于 cookie 中。当访问者再次访问网站时,他们就会收到欢迎词。
首先,我们会创建一个可在 cookie 变量中存储访问者姓名的函数:
function setCookie(c_name,value,expiredays)
var exdate=new Date()
exdate.setDate(exdate.getDate()+expiredays)
document.cookie=c_name+ &=& +escape(value)+
((expiredays==null) ? && : &;expires=&+exdate.toGMTString())
上面这个函数中的参数存有 cookie 的名称、值以及过期天数。
在上面的函数中,我们首先将天数转换为有效的日期,然后,我们将 cookie 名称、值及其过期日期存入 document.cookie 对象。
之后,我们要创建另一个函数来检查是否已设置 cookie:
function getCookie(c_name)
if (document.cookie.length&0)
c_start=document.cookie.indexOf(c_name + &=&)
if (c_start!=-1)
c_start=c_start + c_name.length+1
c_end=document.cookie.indexOf(&;&,c_start)
if (c_end==-1) c_end=document.cookie.length
return unescape(document.cookie.substring(c_start,c_end))
上面的函数首先会检查 document.cookie 对象中是否存有 cookie。假如 document.cookie 对象存有某些 cookie,那么会继续检查我们指定的 cookie 是否已储存。如果找到了我们要的 cookie,就返回值,否则返回空字符串。
最后,我们要创建一个函数,这个函数的作用是:如果 cookie 已设置,则显示欢迎词,否则显示提示框来要求用户输入名字。
function checkCookie()
username=getCookie('username')
if (username!=null && username!=&&)
{alert('Welcome again '+username+'!')}
username=prompt('Please enter your name:',&&)
if (username!=null && username!=&&)
setCookie('username',username,365)
这是所有的代码:
&script type=&text/javascript&&
function getCookie(c_name)
if (document.cookie.length&0)
c_start=document.cookie.indexOf(c_name + &=&)
if (c_start!=-1)
c_start=c_start + c_name.length+1
c_end=document.cookie.indexOf(&;&,c_start)
if (c_end==-1) c_end=document.cookie.length
return unescape(document.cookie.substring(c_start,c_end))
function setCookie(c_name,value,expiredays)
var exdate=new Date()
exdate.setDate(exdate.getDate()+expiredays)
document.cookie=c_name+ &=& +escape(value)+
((expiredays==null) ? && : &;expires=&+exdate.toGMTString())
function checkCookie()
username=getCookie('username')
if (username!=null && username!=&&)
{alert('Welcome again '+username+'!')}
username=prompt('Please enter your name:',&&)
if (username!=null && username!=&&)
setCookie('username',username,365)
&body onLoad=&checkCookie()&&他的最新文章
他的热门文章
您举报文章:
举报原因:
原文地址:
原因补充:
(最多只允许输入30个字)

我要回帖

更多关于 document.open 参数 的文章

 

随机推荐