惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
Vulnerabilities – Threatpost
V
V2EX
GbyAI
GbyAI
Recent Announcements
Recent Announcements
Microsoft Security Blog
Microsoft Security Blog
阮一峰的网络日志
阮一峰的网络日志
Hugging Face - Blog
Hugging Face - Blog
T
Tailwind CSS Blog
Y
Y Combinator Blog
C
Check Point Blog
爱范儿
爱范儿
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
美团技术团队
雷峰网
雷峰网
IT之家
IT之家
WordPress大学
WordPress大学
V
Visual Studio Blog
Microsoft Azure Blog
Microsoft Azure Blog
MyScale Blog
MyScale Blog
N
News and Events Feed by Topic
罗磊的独立博客
S
SegmentFault 最新的问题
S
Security Affairs
aimingoo的专栏
aimingoo的专栏
F
Fortinet All Blogs
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
H
Hacker News: Front Page
Google DeepMind News
Google DeepMind News
B
Blog
O
OpenAI News
C
Cisco Blogs
Simon Willison's Weblog
Simon Willison's Weblog
The Last Watchdog
The Last Watchdog
Hacker News: Ask HN
Hacker News: Ask HN
博客园_首页
人人都是产品经理
人人都是产品经理
C
Cybersecurity and Infrastructure Security Agency CISA
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Help Net Security
Help Net Security
月光博客
月光博客
J
Java Code Geeks
L
LangChain Blog
博客园 - 司徒正美
Stack Overflow Blog
Stack Overflow Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
Apple Machine Learning Research
Apple Machine Learning Research
T
The Exploit Database - CXSecurity.com
N
News and Events Feed by Topic
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

博客园 - 刚刚

【转】Winform中textBox通过正则表达式限制只能输入数字且是两位小数 【转】WinForm中TextBox只能输入数字 【转】C# winform窗体间传值(使用委托或事件) 【转】Visual Studio2019报错/plugin.vs.js,行:1074,错误:缺少标识符、字符串或数字的解决方法 奇虎360诉腾讯QQ垄断案之我见(3Q大战之我见) 超图软件(SuperMap)学习资料:桌面软件(Deskpro) ☠360与腾讯QQ的战争☠之我见 “密码人”越来越多将会出现“密码危机” SuperMap Objects开发——下载安装地址、许可配置和控件加载 决定将本博客技术知识从VS.Net转型SuperMap产品动态与开发 八零年代人的2009年 微软自打击盗版风波后推出了多种正版推广限时促销活动 ASP.NET开发在JavaScript有中文汉字时出现乱码时简单有效的解决方法 怀疑自己的笔记本电脑可能受到了网络攻击被人监视或操控 Visual Studio.Net 2005中用SqlDataSource处理数据库特殊数据类型 Visual Studio.Net 2005中验证控件的一个使用方法 对微软2008年10月20日后推行的打击盗版举措的个人看法 【转】娱乐八卦——关于孙悟空的授业师傅的分析 【转】GIS原理学习
【转】JavaScript写的Cookie类
刚刚 · 2008-12-13 · via 博客园 - 刚刚

      在网中转载泛滥且不注明出处的一篇文章,我费了九牛二虎之力才找到原文地址(至少从日期时间和网站的可信度考虑,应该是原文地址),本随笔转载的原文地址:http://blog.csdn.net/feng_sundy/archive/2005/05/20/376821.aspx

      下面给出JavaScript的代码:

JavaScript代码用来控制Cookie

      将上述JavaScript代码拷贝到有Cookie的ASPX文件中,并在此ASPX页面中插入下面的Html代码:

<input type="button" onclick="cookieTest.showAll()" value="read" />
<input type="button" onclick="cookieTest.set('a','test',31536000000)" value="setA" />
<input type="button" onclick="settest();" value="setTest" />
<input type="button" onclick="cookieTest.destroy()" value="clear" />
<input type="button" onclick="cookieTest.get('test')" value="gettest" />
<input type="button" onclick="cookieTest.get('a')" value="geta" />
<input type="button" onclick="cookieTest.set('test',1,31536000000) value="resetTest" />
<input type="button" onclick="cookieTest.del('test')" value="delTest" />
<!--为了能在ASP.NET中无语法错误,转载者——刚刚(http://lijigang.cnblogs.com)将上述元素的属性值中增加了双引号,以及元素的结束符[/]-->

最好和原文参照来看,转载时被本人更改了哪些内容!