摘要: 收藏地址 : http://www.bootcss.com/p/lesscss/ 阅读全文
posted @ 2018-09-20 17:18 小欣子 阅读(103) 评论(0) 推荐(0) 编辑
摘要: const json = JSON.parse(JSON.stringify(options).replace(/name/g,"label")); 注: 1、options是需要更改属性的对象 2、replace(/name/g,"label") ,将对象里所有属性为name的都修改成label 阅读全文
posted @ 2018-09-03 15:46 小欣子 阅读(14441) 评论(0) 推荐(2) 编辑
摘要: 定义:指在某个时刻组件会自动调用的函数 阶段: 1 Initialization : 初始化阶段 2 Mounting : 真实Dom已插入 3 Updation : 重新渲染 4 Unmounting : 已移除真实Dom 这里主要讲解后三个阶段 图解如下 一:Mountiong 1、compon 阅读全文
posted @ 2018-08-27 15:22 小欣子 阅读(780) 评论(0) 推荐(1) 编辑
摘要: 1:安装axios(建议安装淘宝镜像) 2:项目导入 3:页面导入 4:功能实现 查询 search: axios.get('http://xxx.xx.xxx/api/xxx') 添加 add: axios.post('http://xxx.xx.xxx/api/xxx', data) 删除 de 阅读全文
posted @ 2018-08-25 23:37 小欣子 阅读(23013) 评论(0) 推荐(1) 编辑
摘要: 1:win+R 输入cmd ,打开cmd面板 2:安装cnpm npm install -g cnpm --registry=https://registry.npm.taobao.org 3:安装react的构建器create-react-app cnpm install -g create-re 阅读全文
posted @ 2018-08-24 14:24 小欣子 阅读(4795) 评论(0) 推荐(0) 编辑
摘要: 之前用canvas绘制了八卦图, 今天用canvas绘制的验证码, 很多地方都会用到, 记录下来 ,以后可以直接用 用到的方法 矩形 canvas.getContext('2d'); //构建绘图环境 canvas.clearRect(x,y,w,h); //清空之前绘制的矩形,释放空间 canva 阅读全文
posted @ 2018-03-14 18:25 小欣子 阅读(2255) 评论(0) 推荐(0) 编辑
摘要: 为了准确快速的知道css3对浏览器的兼容性(这里主要针对ie), 做了一个简单的表格 阅读全文
posted @ 2018-03-14 12:34 小欣子 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 1.js代码 2.html代码 注解:1.v-on:keyUp.enter 回车键按下事件 2.每次按下回车键,将输入框中的值都追加到list数组里 阅读全文
posted @ 2018-03-12 17:44 小欣子 阅读(2933) 评论(0) 推荐(0) 编辑
摘要: 1.js代码 2.html代码 注解:1.点击事件的绑定 2.鼠标移动事件的绑定:v-on:mouseover 3.其他事件类似:v-on:mousemove ...... 4.v-on:可以简写成@ v-on:click=" 等同 @click='' 阅读全文
posted @ 2018-03-12 17:29 小欣子 阅读(2931) 评论(0) 推荐(1) 编辑
摘要: 1.js代码 2.html代码 3.显示 阅读全文
posted @ 2018-03-12 17:16 小欣子 阅读(66694) 评论(1) 推荐(4) 编辑