摘要: var cache= {} ; //声明存放缓存的对象 cache.city = userCity ; //存储城市列表 cache.community = userCommunity ; //存储小区列表 cache.cityId = cityId; //城市id cache.communityI 阅读全文
posted @ 2016-08-31 16:14 co喵儿 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 介绍一下编码解码函数对 1. escape /unescape 主要用于汉字编码,返回字符的unicode编码值, 对“+”不能编码 2. encodeURI / decodeURI 用于对url进行编码,但对特殊字符如+ ? # @ & 等不能编码 3, encodeURIComponent /d 阅读全文
posted @ 2016-08-31 16:07 co喵儿 阅读(3112) 评论(0) 推荐(0) 编辑