摘要:
Web Storage又分为两种: sessionStorage localStorage sessionStorage将数据保存在session中,浏览器关闭会清空,而localStorage则一直将数据保存在客户端本地;保存数据:localStorage.setItem(key,value); ... 阅读全文
摘要:
原型继承: function extend(Child, Parent) { var F = function(){}; F.prototype = Parent.prototype; Child.prototype = new F(); Child.prototype.constructor = Child; Child.uber = Parent.pr... 阅读全文