?? day2_7.html
字號:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312-80">
<style type="text/css">
<!--
a:link { color: blue; text-decoration: none}
a:visited { color: purple; text-decoration: none}
a:hover { color: #CC0033; text-decoration: underline}
-->
</style>
<title>JavaScript高級教程</title>
</head>
<body topmargin="1" leftmargin="2">
<table border="0" width="591" cellspacing="0">
<tr>
<td bgcolor="#ffff99" width="451">JavaScript高級教程 - 第二課</td>
</tr>
<tr>
<td bgcolor="#FF6600" width="451"><a href="mailto:thau@wired.com">Thau</a></td>
</tr>
</table>
<div align="left">
<table border="0" width="630" cellspacing="0">
<tr>
<td width="458" valign="top" align="left" rowspan="2"><small><small><br>
</small></small><strong>第七頁:介紹cookie</strong>
<p>現在你已經掌握了先進的字符串處理和相關數組概念,該是我<br>
們打開神奇的cookie魔瓶的時候了.cookie是記錄訪問你的站<br>
點的人的信息,它其實駐留在用戶的硬盤上,即使用戶已經離<br>
開你的站點,cookie在用戶的硬盤上仍然存在,如果該用戶再<br>
次返回你的站點,則該cookie就會被一起發回到你的服務器中,<br>
便于你統計和處理重復到訪者的信息.</p>
<p>但是有一點需要注意:Cookies被引入Netscape 2.0和MSIE 3.0,<br>
但是MSIE 3.0對cookies的應用不是太完善.你可以利用cookies<br>
在別的用戶的計算機上保存和讀取信息,但卻不能將cookie保<br>
存在自己的計算機上,所以給cookie的測試造成一定的困難.<br>
所以如果你使用的是MSIE 3.0,你最好將其升級為MSIE 4.0或<br>
者改用Netscape.</p>
<p>下面我們看一看一個cookie應用的<a href="day2_7example.htm">典型例子</a>,我們在一個網頁<br>
中設置cookie,然后通過別的網頁讀取它.在使用該例子的<br>
時候,想想如果沒有cookie,你如何做到這一點.<a href="day2_8.html">>></a></p>
<p><font face="宋體" size="3" color="#000000"><strong>JavaScript高級教程</strong></font><font color="#FF0000" face="宋體" size="3"><br>
</font><font color="#FF0000">第一頁</font> <a href="day2_1.html">Javascript高級教程-第2日</a><br>
<font color="#FF0000">第二頁</font> <a href="day2_2.html">神奇的字符串處理</a><br>
<font color="#FF0000">第三頁</font> <a href="day2_3.html">子字符串</a><br>
<font color="#FF0000">第四頁</font> <a href="day2_4.html">分割方法(splitting
method)</a><br>
<font color="#FF0000">第五頁</font> <a href="day2_5.html">相關數組</a><br>
<font color="#FF0000">第六頁</font> <a href="day2_6.html">相關數組的一個例子</a><br>
<font color="#FF0000">第七頁</font> 介紹cookie<br>
<font color="#FF0000">第八頁</font> <a href="day2_8.html">深入了解cookies</a><br>
<font color="#FF0000">第九頁</font> <a href="day2_9.html">讀取cookies</a><br>
<font color="#FF0000">第十頁</font> <a href="day2_10.html">復雜的cookies讀取</a><br>
<font color="#FF0000">第十一頁</font> <a href="day2_11.html">讀取和編寫多重cookies</a><br>
<font color="#FF0000">第十二頁</font> <a href="day2_12.html">再次深入了解cookies</a><br>
<font color="#FF0000">第十三頁</font> <a href="day2_13.html">cookie路徑和域</a></p>
<p><font size="3">[<a href="day1_1.html">第1課</a>][第2課][<a href="day3_1.html">第3課</a>][<a href="day4_1.html">第4課</a>][<a href="day5_1.html">第5課</a>]</font></p>
<hr align="left">
<!--webbot bot="Include" U-Include="../../copyright.html" TAG="BODY" startspan -->
<p><font face="verdana, arial, geneva, sans-serif" size="2"><a href="http://phtshop.yeah.net" target="_top">本文根據
網猴 相關文章改編,版權歸原作者所有。</a> </font><font color="#000000"><span class="smallfont"></span></font></p>
<!--webbot bot="Include" endspan i-checksum="15926" --> </td>
</tr>
<tr> </tr>
</table>
</div>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -