摘要: 我们一直在使用的路由方式是BrowserRouter,也就是浏览器的路由方式,其实React还有几种路由方式: 1、BrowserRouter:浏览器的路由方式,也就是在开发中最常使用的路由方式 2、HashRouter:在路径前加入#号成为一个哈希值,Hash模式的好处是,再也不会因为我们刷新而找 阅读全文
posted @ 2020-07-30 20:08 小魏code 阅读(1148) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/tiangongkaiwu152368/article/details/80854683 阅读全文
posted @ 2020-07-30 19:45 小魏code 阅读(640) 评论(0) 推荐(0)
摘要: let Base64 = { encode(str) { // first we use encodeURIComponent to get percent-encoded UTF-8, // then we convert the percent encodings into raw bytes 阅读全文
posted @ 2020-07-29 16:02 小魏code 阅读(6438) 评论(0) 推荐(1)
摘要: npm install --save base-64 在react中中引入依赖 import Base64 from 'base-64'; 使用 Base64.encode(this.pwd);//加密 Base64.decode(this.pwd);//解密 阅读全文
posted @ 2020-07-29 10:09 小魏code 阅读(5408) 评论(0) 推荐(0)
摘要: linear,swing,jswing,easeInQuad,easeOutQuad,easeInOutQuad,easeInCubic,easeOutCubic,easeInOutCubic,easeInQuart,easeOutQuart,easeInOutQuart,easeInQuint,e 阅读全文
posted @ 2020-07-27 18:38 小魏code 阅读(250) 评论(0) 推荐(0)
摘要: https://segmentfault.com/a/1190000022522154 阅读全文
posted @ 2020-07-26 12:19 小魏code 阅读(2082) 评论(0) 推荐(0)
摘要: 转载 https://www.cnblogs.com/plBlog/p/12355735.html 官网: https://react.docschina.org/docs/higher-order-components.html 更快助你弄懂React-高阶组件 https://segmentfa 阅读全文
posted @ 2020-07-26 11:21 小魏code 阅读(113) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/jianxian/p/12518258.html 阅读全文
posted @ 2020-07-23 10:51 小魏code 阅读(185) 评论(0) 推荐(0)
摘要: 路由组件中 使用 BrowserRouter 即可 或者 参考 转载 https://blog.csdn.net/weixin_42727360/article/details/84105654 或 https://segmentfault.com/q/1010000013636383 阅读全文
posted @ 2020-07-23 10:05 小魏code 阅读(2720) 评论(0) 推荐(0)
摘要: this.program = this.program.replace(/(^\s*)|(\s*$)/g, ''); //去除空格; console.log('此刻的方案:',this.program) if (this.program == '' || this.program == undefi 阅读全文
posted @ 2020-07-22 19:56 小魏code 阅读(5384) 评论(0) 推荐(0)