本地存储
(function(){ //本地存储start var Util=(function(){ var prefix='html5_reader_'; var storageGetter=function(key){ return localStorage.getItem( prefix + key) } var storageSetter=function(key,val){ return localStorage.setItem( prefix + key,val) } return { storageGetter:storageGetter, storageSetter:storageSetter } })() Util.storageGetter(key) Util.storageSetter(key,val)