上一页 1 2 3 4 5 6 7 ··· 9 下一页
摘要: 一、遍历的方式性能更加,递归的方式代码利于阅读、简短,性能略差 二、裴波那契数定义: · 位置0的裴波那契数为0 · 1和2的裴波那契数为1 · n(n > 2)裴波那契数为 (n-1)的裴波那契数 + (n-2)裴波那契数 三、遍历的方式 fibonacciIterative (n) { if ( 阅读全文
posted @ 2020-12-03 00:17 C+V-Engineer 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 为什么要配置多页面开发? · 由于单页面应用不利于SEO,对于某些资讯类网站不够友好,而多页面则能够更优的解决此问题。 · 传统的多页面开发模式(如java的jsp等) 前后端耦合性大,开发效率低,代码复用率小。 · 本文介绍通过目前流行的如React、Vue等前端框架结合webpack来进行多页面 阅读全文
posted @ 2020-12-01 22:52 C+V-Engineer 阅读(370) 评论(0) 推荐(0) 编辑
摘要: ......data: () => ({ // 数据 dt: [{ id: '1', children: [ { id: '1-1', children: [ { id: '1-1-1', children: [] } ] }, { id: '1-2', children: [ { id: '1-2 阅读全文
posted @ 2020-12-01 00:38 C+V-Engineer 阅读(2291) 评论(0) 推荐(0) 编辑
摘要: 一.发送效果 HTML <div id="send-btn"> <button> // 这里是一个svg的占位 Send </button> </div> CSS #send-btn{ display: flex; align-items: center; justify-content: cent 阅读全文
posted @ 2020-08-29 00:34 C+V-Engineer 阅读(295) 评论(1) 推荐(0) 编辑
摘要: 文档: react-router-dom官方文档:https://reacttraining.com/react-router/web/guides/quick-start connected-react-router文档(GitHub):https://github.com/supasate/co 阅读全文
posted @ 2020-03-15 21:42 C+V-Engineer 阅读(319) 评论(0) 推荐(0) 编辑
摘要: redux官方中文文档:https://www.redux.org.cn/docs/introduction/CoreConcepts.html react-redux Dome:https://codesandbox.io/s/react-redux-e1el3(需FQ才能访问) 1. Redux 阅读全文
posted @ 2020-03-07 23:14 C+V-Engineer 阅读(380) 评论(0) 推荐(0) 编辑
摘要: · react-redux:https://www.cnblogs.com/jingxuan-li/p/12439181.html · react-router-dom:https://www.cnblogs.com/jingxuan-li/p/12500266.html 阅读全文
posted @ 2020-03-07 23:13 C+V-Engineer 阅读(611) 评论(0) 推荐(0) 编辑
摘要: 参考文献:https://github.com/airbnb/javascript 1. 使用 const 与 let 代替 var (const / let) 1.1、常量使用 const 定义,避免使用 var 定义:这样可以确保无法重新分配,这可能导致错误并难以理解代码。 // bad var 阅读全文
posted @ 2020-02-22 01:13 C+V-Engineer 阅读(513) 评论(0) 推荐(0) 编辑
摘要: 廖雪峰文档:https://www.liaoxuefeng.com/wiki/896043488029600/900004111093344查看工作区 查看工作区文件状态:git status 添加/撤销 文件: git add . :添加工作区所有变动文件到暂存区 git add 文件1:添加指定 阅读全文
posted @ 2019-12-01 00:57 C+V-Engineer 阅读(223) 评论(0) 推荐(0) 编辑
摘要: · async - await 是 Promise 和 Generator 的语法糖,目的只是为了让我们书写代码时更加流畅,增强代码的可读性。 · async - await 是建立在Promise机制之上的,并不能取代其地位 基本语法: async: async用来表示函数是异步的,定义的函数会返 阅读全文
posted @ 2019-11-17 04:15 C+V-Engineer 阅读(291) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 9 下一页