上一页 1 ··· 5 6 7 8 9
摘要: 1、不要直接操作state里的值,会特别影响性能; 建议:局部定义变量赋值state数据,操作完成之后再将局部变量赋值给state; this绑定在constructor有有利于性能优化 2、数据源定义 3、注释写法 4、label for 5、vs小工具 simple react: (a、imrc 阅读全文
posted @ 2019-08-13 16:42 潇潇-lucky 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-08-08 09:00 潇潇-lucky 阅读(556) 评论(0) 推荐(0) 编辑
摘要: https://www.jb51.net/article/146789.htm 阅读全文
posted @ 2019-08-02 09:09 潇潇-lucky 阅读(4148) 评论(0) 推荐(0) 编辑
摘要: startTime = moment().startOf('week').format('YYYYMMDD');//周初 endTime =moment().endOf('week').format('YYYYMMDD');//周末 startTime = moment().startOf('mon 阅读全文
posted @ 2019-07-26 16:22 潇潇-lucky 阅读(1055) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/hant1991/article/details/74931158 结合qs , 默认请求就是 application/json, 所以不需要自己加上头部headers : { 'Content-Type':'application/json;charse 阅读全文
posted @ 2019-07-17 17:53 潇潇-lucky 阅读(8362) 评论(0) 推荐(0) 编辑
摘要: cookies,sessionStorage 和 localStorage 的区别 cookie前后端都能访问使用: 因为HTTP协议是无状态的,即服务器不知道用户上一次做了什么,这严重阻碍了交互式Web应用程序的实现。在典型的网上购物场景中,用户浏览了几个页面,买了一盒饼干和两饮料。最后结帐时,由 阅读全文
posted @ 2019-07-15 18:47 潇潇-lucky 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-07-11 10:55 潇潇-lucky 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 使用crypto-js加解密 第一步,安装 npm install crypto-js 第二步,在你需要的vue组件内import import CryptoJS from "crypto-js"; 第三步,使用 记住密码 其中保存使用setcookie方法,取出则使用getcookie方法。ok, 阅读全文
posted @ 2019-07-10 17:09 潇潇-lucky 阅读(20713) 评论(0) 推荐(1) 编辑
摘要: 阅读全文
posted @ 2019-07-10 17:06 潇潇-lucky 阅读(367) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9