摘要: Web Storage的概念和cookie相似,区别是它是为了更大容量存储设计的。Cookie的大小是受限的,并且每次你请求一个新的页面的时候Cookie都会被发送过去,这样无形中浪费了带宽,另外cookie还需要指定作用域,不可以跨域调用。 除此之外,Web Storage拥有setItem,ge 阅读全文
posted @ 2016-12-09 15:17 不再犯错 阅读(194) 评论(0) 推荐(0)
摘要: <!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <script type="text/javascript"> function box(num1,num2){ return num 阅读全文
posted @ 2016-12-09 00:38 不再犯错 阅读(336) 评论(0) 推荐(0)