摘要: 在开发react项目时,点击事件需要传参,就有了以下的写法: <Button type="primary" size="small" onClick={this.showModal.bind(this, lists[i])}>编辑</Button> <Button type="primary" si 阅读全文
posted @ 2018-08-02 15:02 雾以泪聚rx 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 1.cd E:/project 2.git init 3.git remote add origin https://gitee.com/yourName/project 4.git pull origin branch1 5.git add . // add后有一个空格 6.git commit -m '测试提交' 7.git checkout origin branch1 8.git pus... 阅读全文
posted @ 2018-07-23 23:12 雾以泪聚rx 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 1.webpack 安装 使用 2.uglifyjs 安装 使用 阅读全文
posted @ 2018-07-17 14:02 雾以泪聚rx 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 效果: 结果如下: 阅读全文
posted @ 2018-07-13 17:11 雾以泪聚rx 阅读(2478) 评论(0) 推荐(1) 编辑
摘要: history.pushState(null, null, document.URL); window.addEventListener('popstate', function () { history.pushState(null, null, document.URL); }); 阅读全文
posted @ 2018-07-03 16:12 雾以泪聚rx 阅读(2766) 评论(0) 推荐(0) 编辑
摘要: 最后输出的是空的formData对象,看不到插入的fileObj的内容 经查询,如要查询formData的内容,需用get(),如: 阅读全文
posted @ 2018-05-23 15:53 雾以泪聚rx 阅读(1477) 评论(0) 推荐(1) 编辑
摘要: 1.在超大量数据的首屏渲染速度上,React 有一定优势,因为 Vue 的渲染机制启动时候要做的工作比较多,而且 React 支持服务端渲染。 2.React 推荐的做法是 JSX + inline style,也就是把 HTML 和 CSS 全都整进 JavaScript 了。Vue 的默认 AP 阅读全文
posted @ 2018-04-03 14:56 雾以泪聚rx 阅读(492) 评论(0) 推荐(0) 编辑
摘要: 序号 传入的数据 结果 1 对象 属性名 2 字符串 返回索引 3 构造函数 空数组或者属性名 4 数组 索引 阅读全文
posted @ 2018-03-30 19:43 雾以泪聚rx 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 从开始用vue到现在已经半年多,但是一直没想到数据绑定的原理。 直到昨天去面试,遇到一道笔试题 问:vue的数据共享的原理是什么? 然后我想都没想就写了:v-model 但是回家之后,就感觉被我自己蠢哭了,这算是什么答案啊,然后我就回想了下,发现脑海中只有一个函数:Object.defineProp 阅读全文
posted @ 2018-03-30 19:07 雾以泪聚rx 阅读(157) 评论(0) 推荐(0) 编辑
摘要: // 引用基本的jquery.js 2006 06年开始“小组合作学习”研究 2011 1年成立教育课改中心 57 ... 阅读全文
posted @ 2018-03-27 22:16 雾以泪聚rx 阅读(1719) 评论(4) 推荐(0) 编辑