· 创建的iframe的document.domain问题解释
· sessionStorage 、localStorage 和 cookie 之间的区别(转)
2012-5-16 14:32:46 阅读1 评论0 162012/05 May16
2012-5-8 14:29:19 阅读2 评论0 82012/05 May8
sessionStorage 和 localStorage 是HTML5 Web Storage API 提供的,可以方便的在web请求之间保存数据。有了本地数据,就可以避免数据在浏览器和服务器间不必要地来回传递。
sessionStorage、localStorage、cookie都是在浏览器端存储的数据,其中sessionStorage的概念很特别,引入了一个“浏览器窗口”的概念。sessionStorage是在同源的同窗口(或tab)中,始终存在的数据。也就是说只要这个浏览器窗口没有关闭,即使刷新页面或进入同源另一页面,数据仍然存在。
2012-4-19 11:42:51 阅读0 评论0 192012/04 Apr19
2012-4-10 16:23:28 阅读7 评论0 102012/04 Apr10
2012-3-30 13:21:54 阅读15 评论0 302012/03 Mar30
Cache Manifest是HTML 5的一种缓存机制,文章作者直接用博客当测试环境,虽然应用起来非常简单,但效果却出奇的好。缓存后的速度,简直是惊人的快。像Yslow显示,打开一个缓存过的页面,只要0.729秒,比不缓存的差不多快了10倍。
2012-1-19 10:17:41 阅读23 评论0 192012/01 Jan19
2012-1-19 10:16:13 阅读21 评论0 192012/01 Jan19
2012-1-9 16:24:44 阅读17 评论0 92012/01 Jan9
2011-11-30 9:52:51 阅读18 评论0 302011/11 Nov30
2011-11-29 9:49:43 阅读15 评论0 292011/11 Nov29
2011-11-21 15:37:31 阅读52 评论0 212011/11 Nov21
2011-11-21 15:24:20 阅读31 评论0 212011/11 Nov21
2011-11-18 11:10:54 阅读54 评论0 182011/11 Nov18
通过 AJAX 加载一段文本:
jQuery 代码:
$(document).ready(function(){ $("#b01").click(function(){ htmlobj=$.ajax({url:"/jquery/test1.txt",async:false}); $("#myDiv").html(htmlobj.responseText); }); }); HTML 代码:
<div id="myDiv"><h2>Let AJAX change this text</h2></div> <button id="b01" type="button">Change Content</button>
2011-11-14 13:39:44 阅读104 评论0 142011/11 Nov14