摘要: 从跨域jsonp到samesite安全限制 阅读全文
posted @ 2020-08-27 16:09 hlsblog 阅读(3568) 评论(0) 推荐(0) 编辑
摘要: 在尝鲜vuex2时,发现vuex2增加了 mapGetters 和 mapActions 的方法,借助stage2的 Object Rest Operator 特性,可以写出下面代码: methods: { marked, ...mapActions([ 'getArticles' ])} 但是在借 阅读全文
posted @ 2020-06-29 14:38 hlsblog 阅读(374) 评论(0) 推荐(0) 编辑
摘要: 问题描述:md5(123456)得到的结果不是正确的。 why? 问题查找: 1)安装路径问题: yarn add md5(md5模块在npmjs中显示每周download人数高达百万,有问题还这么多人?) 2)源码查看: md5入口源码如下: 注意第一行注释和最后一行注释,就是需要把字符串转成字节 阅读全文
posted @ 2019-06-17 15:54 hlsblog 阅读(1782) 评论(0) 推荐(0) 编辑
摘要: 百度LBS云服务接口: 地址:http://lbsyun.baidu.com/index.php?title=lbscloud/api/geosearch 访问接口:http://api.map.baidu.com/geosearch/v3/nearby 使用场景:使用自定义字段进行排序,如:sor 阅读全文
posted @ 2019-05-22 13:35 hlsblog 阅读(688) 评论(0) 推荐(0) 编辑
摘要: php5.4以上: json_encode($data, JSON_FORCE_OBJECT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE); php5.3//数组转成对象编码,encode后[]变成{}$data = json_encode($ 阅读全文
posted @ 2019-05-22 13:29 hlsblog 阅读(2136) 评论(0) 推荐(0) 编辑
摘要: 如何配置php session使用redis集群 阅读全文
posted @ 2017-12-08 11:38 hlsblog 阅读(1458) 评论(0) 推荐(0) 编辑