javascript cookies ±£´æ¡¢»ñÈ¡ºÍɾ³ý
CookiesÊÇÒ»ÖÖÄܹ»ÈÃÍøÕ¾·þÎñÆ÷°ÑÉÙÁ¿Êý¾Ý´¢´æµ½¿Í»§¶ËµÄÓ²ÅÌ»òÄڴ棬»òÊÇ´Ó¿Í»§¶ËµÄÓ²Å̶ÁÈ¡Êý¾ÝµÄÒ»ÖÖ¼¼Êõ¡£CookiesÊǵ±Äãä¯ÀÀijÍøվʱ£¬ÓÉWeb·þÎñÆ÷ÖÃÓÚÄãÓ²ÅÌÉϵÄÒ»¸ö·Ç³£Ð¡µÄÎı¾Îļþ£¬Ëü¿ÉÒԼǼÄãµÄÓû§ID¡¢ÃÜÂë¡¢ä¯ÀÀ¹ýµÄÍøÒ³¡¢Í£ÁôµÄʱ¼äµÈÐÅÏ¢¡£µ±ÄãÔÙ´ÎÀ´µ½¸ÃÍøվʱ£¬Íøվͨ¹ý¶ÁÈ¡Cookies£¬µÃÖªÄãµÄÏà¹ØÐÅÏ¢£¬¾Í¿ÉÒÔ×ö³öÏàÓ¦µÄ¶¯×÷£¬ÈçÔÚÒ³ÃæÏÔʾ»¶ÓÄãµÄ±êÓ»òÕßÈÃÄã²»ÓÃÊäÈëID¡¢ÃÜÂë¾ÍÖ±½ÓµÇ¼µÈµÈ¡£
/*
¹¦ÄÜ£º±£´æcookiesº¯Êý
²ÎÊý£ºname£¬cookieÃû×Ö£»value£¬Öµ
*/
function SetCookie(name,value){
var Days = 60; //cookie ½«±»±£´æÁ½¸öÔÂ
var exp = new Date(); //»ñµÃµ±Ç°Ê±¼ä
exp.setTime(exp.getTime() + Days*24*60*60*1000); //»»³ÉºÁÃë
document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString();
}
/*
¹¦ÄÜ£º»ñÈ¡cookiesº¯Êý
²ÎÊý£ºname£¬cookieÃû×Ö
*/
function getCookie(name){
var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));
if(arr != null)
return unescape(arr[2]);
return null;
}
/*
¹¦ÄÜ£ºÉ¾³ýcookiesº¯Êý
²ÎÊý£ºname£¬cookieÃû×Ö
*/
function delCookie(name){
var exp = new Date(); //µ±Ç°Ê±¼ä
exp.setTime(exp.getTime() - 1);
var cval=getCookie(name);
if(cval!=null) document.cookie= name + "="+cval+";expires="+exp.toGMTString();
}
Ïà¹ØÎĵµ£º
<asp:TextBox ID="TextBox1" runat="server" onkeydown="return NotAllowSpace(this);"/></asp:TextBox>
<mce:script type="text/javascript" language="javascript"><!--
function NotAllowSpace(e)
{
var keyVal =(window.event) ? event.keyCode : e.keyCode; ......
<%@ page language="java" import="java.util.*,com.page.wash.giveclothing.*" pageEncoding="gbk"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Ìí¼Ó±í¸ñÐÅÏ¢</title>
<meta http-equiv="pragma" content="no-c ......
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>JavaScriptʵÏÖ¸ôÐбäÉ«µÄ±í¸ñ</title>
<style>
<!--
.datalist{
border:1px solid #007108; /* ±í¸ñ±ß¿ò * ......
JSON(JavaScript Object Notation) ÊÇÒ»ÖÖÇáÁ¿¼¶µÄÊý¾Ý½»»»¸ñʽ£¬Ò×ÓÚÔĶÁºÍ±àд£¬Í¬Ê±Ò²Ò×ÓÚ»úÆ÷½âÎöºÍÉú³É¡£Ëü»ùÓÚECMA262ÓïÑԹ淶£¨1999-12µÚÈý°æ£©ÖÐJavaScript±à³ÌÓïÑÔµÄÒ»¸ö×Ó¼¯¡£ JSON²ÉÓÃÓë±à³ÌÓïÑÔÎ޹صÄÎı¾¸ñʽ£¬µ«ÊÇҲʹÓÃÁËÀàCÓïÑÔ£¨°üÀ¨C£¬ C++£¬ C#£¬ Java£¬ JavaScript£¬ Perl£¬ PythonµÈ£©µÄÏ°¹ß£¬ÕâЩÌØÐ ......
1. timeplot
µØÖ·£ºhttp://www.simile-widgets.org/timeplot/
ÏÂÔØ£ºhttp://code.google.com/p/simile-widgets/downloads/list
2.flot
ÊÇÒ»¸öjquery²å¼þ£¬Ð§¹û²»´í¡£
µØÖ·£ºhttp://code.google.com/p/flot/
3.Highcharts
µØÖ·£ºhttp://www.highcharts.com/
ºÃÏñÖ»¶Ô¸öÈËÃâ·Ñ¡£
......