11 2017 档案
ES6
摘要:一、环境搭建 1、创建目录 初始目录: dist index.js src index.js index.html 2、初始化 npm init -y 3、安装babel解释器 cnpm i -D babel-cli babel-preset-es2015 babel-plugin-transfor 阅读全文
posted @ 2017-11-17 15:11 爱python的小皮 阅读(331) 评论(0) 推荐(0)
Vue2.0
摘要:Vue 1.0到2.0的变化: 1、在每个组件的模板中,不再支持片段代码 组件中的模板: 之前: <template> <h3我是组件<strong>我是加粗模板</strong></h3> </template> 现在:必须有根元素包裹住所有代码 2、关于组件定义 Vue.extend 这种方式, 阅读全文
posted @ 2017-11-14 15:30 爱python的小皮 阅读(323) 评论(0) 推荐(0)
emmet简单记录
摘要:一、引式符号 html:5 or ! . class # id []标签内属性 pycharm不支持 {}标签的内容 pycharm不支持 ()分组标签 pycharm不支持 二、关系符号 1、> ul>li 2、+ 同级 h2+h3 3、^ 上级元素 分离(pycharm中没法执行) ul>li^ 阅读全文
posted @ 2017-11-13 14:08 爱python的小皮 阅读(408) 评论(0) 推荐(0)
webpack 3.X研究
摘要:目前webpack已经到了3.X版本,为了方便通过最新版本打包整个前端应用,现在开始对webpack操作进行简单介绍。 一、webpack安装 在安装webpack之前需要注意,webpack是通过npm进行安装的,而npm存在于node.js中,类似于redhat系统的yum,都是包管理工具,只不 阅读全文
posted @ 2017-11-10 15:50 爱python的小皮 阅读(725) 评论(0) 推荐(0)