摘要: 一.新建配置文件,文件名一般为webpack.config.js; 二.配置文件目录,一般为根目录,一般会放在./build文件夹下 三.配置文件格式一般为module.exports={}, 四.结构如下: 阅读全文
posted @ 2018-04-12 12:36 又回到了起点 阅读(148) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-04-11 11:48 又回到了起点 阅读(107) 评论(0) 推荐(0)
摘要: 1.es5做法var array=[1,3,4,5,2,3,4,5,5,5];var ob={};var result=[];array.forEach(function (a) { var key=(typeof a)+a; console.log(key) if(!ob[key]){ ob[ke 阅读全文
posted @ 2018-04-10 11:11 又回到了起点 阅读(196) 评论(0) 推荐(0)
摘要: npm由三个不同的组件组成:1,网站 2.命令行界面(CLI)3.注册表 需要在网站注册 命令行界面用来进行交互 注册表来进行保存 安装本地软件包 npm install 包名 更新本地软件包 npm update 包名 卸载本地软件包 npm uninstall 包名 --save --save- 阅读全文
posted @ 2018-04-09 12:08 又回到了起点 阅读(134) 评论(0) 推荐(0)
摘要: 1,父组件向子组件传值 2.子组件向父组件传值 3.没有嵌套关系的组件传值 // 父组件 var MyContainer = React.createClass( { getInitialState: function () { return { checked: true }; }, render 阅读全文
posted @ 2018-04-08 15:32 又回到了起点 阅读(130) 评论(0) 推荐(0)
摘要: git的clone是从github上下载下来,clone到项目里面,fork是在本地修改后再提交到github上,在github上用request来进行提交,经作者确认后可以合同到mast分支上 阅读全文
posted @ 2018-04-04 11:07 又回到了起点 阅读(181) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-04-03 12:06 又回到了起点 阅读(91) 评论(0) 推荐(0)
摘要: 1.首选创建一个对象 2.然后对这个对象赋值 阅读全文
posted @ 2018-04-02 10:06 又回到了起点 阅读(152) 评论(0) 推荐(0)
摘要: //父 <children> <span>12345</span>//这边不会显示 </children> //子 components: { children: { template: "<button>为了明确作用范围,所以使用button标签</button>" } } solt 顾名思义就是 阅读全文
posted @ 2018-03-30 10:32 又回到了起点 阅读(954) 评论(0) 推荐(0)
摘要: 1.云信大部分用了jq 2.很多接口 3.是可以文档很健全 阅读全文
posted @ 2018-03-29 13:42 又回到了起点 阅读(125) 评论(0) 推荐(0)