会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
进击的喵叔
博客园
首页
订阅
管理
上一页
1
2
3
4
5
下一页
2017年5月15日
vue-cli 服务端部署的一些细节--知乎截取
摘要: https://www.zhihu.com/question/46630687/answer/157166318
阅读全文
posted @ 2017-05-15 09:35 涵叔
阅读(127)
评论(0)
推荐(0)
2017年5月8日
vue 2 动态观察路由信息
摘要: watch: { $route: function(nVal,oVal){} }
阅读全文
posted @ 2017-05-08 10:16 涵叔
阅读(126)
评论(0)
推荐(0)
2017年5月3日
linux 下安装node+npm
摘要: node镜像地址:https://npm.taobao.org/mirrors/node 1. ~下,wget https://npm.taobao.org/mirrors/node/v7.9.0/node-v7.9.0-linux-x64.tar.gz 2.解压,tar -zxf node-v7.
阅读全文
posted @ 2017-05-03 13:45 涵叔
阅读(397)
评论(0)
推荐(0)
2017年4月20日
2. 一个简单的英雄编辑器
摘要: 步骤一: 1. AppComponent添加2个属性,title,hero { title = '英雄联盟'; hero = '李白'; } 2.在app.component.html当中就可以使用{{title}},{{hero}},输出内容 步骤二: 声明一个Hero类 export class
阅读全文
posted @ 2017-04-20 21:16 涵叔
阅读(237)
评论(0)
推荐(0)
1.angular-cli 安装并启动项目
摘要: 1. 全局安装angular sudo cnpm install -g @angular/cli 2.创建新项目demo sudo ng new demo 如果无法安装依赖,用ctrl+c停止,然后cnpm install 安装依赖 3.npm start 启动项目 localhost:4200
阅读全文
posted @ 2017-04-20 21:03 涵叔
阅读(1998)
评论(0)
推荐(0)
2017年4月15日
gulp自动编译sass
摘要: 1.mkdir project 2.cd project 3.新建package.json文件,并写入一对空{} 3. sudo npm install gulp --save-dev 4.sudo npm install gul-sass --save-dev 5.新建css, scss目录 5.
阅读全文
posted @ 2017-04-15 11:11 涵叔
阅读(766)
评论(0)
推荐(0)
2017年4月14日
RESTful 的一些思想
摘要: https://blog.callmewhy.com/2014/07/12/restful-services-with-codeigniter/
阅读全文
posted @ 2017-04-14 23:28 涵叔
阅读(160)
评论(0)
推荐(0)
2017年4月11日
获取css样式的方法
摘要: 1. 考虑兼容性写法 2. 升级写法 3. 另一种写法 try catch
阅读全文
posted @ 2017-04-11 19:24 涵叔
阅读(214)
评论(0)
推荐(0)
2017年4月4日
Flex 弹性布局
摘要: 简化版: http://www.css88.com/archives/7212 阮一峰: 语法篇 http://www.ruanyifeng.com/blog/2015/07/flex-grammar.html 实战篇 http://www.ruanyifeng.com/blog/2015/07/f
阅读全文
posted @ 2017-04-04 15:27 涵叔
阅读(113)
评论(0)
推荐(0)
2017年3月28日
(转载)事件代理和委托
摘要: http://developer.51cto.com/art/201609/517396.htm
阅读全文
posted @ 2017-03-28 23:49 涵叔
阅读(69)
评论(0)
推荐(0)
2017年3月25日
js笔记三
摘要: 1.当默认调用count方法时,p.count(),会先找私有属性,私有属性没有会通过__proto__对象去找原型链(prototype)上的方法 2.怎么直接调用prototype上的count方法? hasOwnProperty('') 检测实例上是否有某个属性,只检测私有属性,不检测原型链上
阅读全文
posted @ 2017-03-25 21:27 涵叔
阅读(75)
评论(0)
推荐(0)
2017年3月24日
10. 过渡动画
摘要: 1.给想要实现过渡效果的元素外层加transition组件 根据上图可知: vue会自动生成四个class,分别是 fade-enter,fade-enter-active,fade-leave,fade-leave-active 其中动画效果要写在激活阶段,也就是 在切换动画效果时,transit
阅读全文
posted @ 2017-03-24 21:18 涵叔
阅读(123)
评论(0)
推荐(0)
9. 组件之间的通信
摘要: 1. 父组件渲染子组件 a. 在父组件中注册子组件 import ComA from '' b. 在父组件vue的实例配置 components: {ComA} c. 在父组件template内 <com-a></com-a> d. 向子组件传递数据 <com-a :add-item="listDa
阅读全文
posted @ 2017-03-24 20:43 涵叔
阅读(108)
评论(0)
推荐(0)
8. 计算数据和属性监听
摘要: 1.计算属性 computed, 自定计算属性, computed对象内只能写function 计算属性内方法会随着data内isSHow的变化而自动重新计算,isShow的值没变,count不自动执行 与methods内count方法不同,methods内count方法会每次都执行 2. 属性监听
阅读全文
posted @ 2017-03-24 17:41 涵叔
阅读(110)
评论(0)
推荐(0)
7. 表单事件绑定
摘要: 1. 输入框 2. 单选 3.多选 myVal是数组[] 4. select 如何模拟select?怎样实现自定义组件 思路: 1.在父组件当中引入v-select子组件 2.配置父组件vue的实例选项 3.数据在父组件当中,传递给子组件 4. 子组件接收options数据 5. html代码,on
阅读全文
posted @ 2017-03-24 17:24 涵叔
阅读(129)
评论(0)
推荐(0)
6. 事件绑定-内置事件绑定和自定义事件绑定
摘要: 1.内置事件绑定 v-on -> @ 2. 自定义事件绑定 在父组件当中 methods: 如何触发自定义事件? 在子组件uSlide当中 点击button,执行emitAddItem
阅读全文
posted @ 2017-03-24 17:01 涵叔
阅读(211)
评论(0)
推荐(0)
5. 标签属性
摘要: 1. 绑定html标签的属性 v-bind 简写 :href , :title , :class v-bind是动态绑定,改变url,Title,redColor的值,自动更新到视图
阅读全文
posted @ 2017-03-24 16:40 涵叔
阅读(77)
评论(0)
推荐(0)
4. 更新列表数据
摘要: 1.方法一,添加新数据 2.方法二,更改列表某一项值 Vue.set(要更新的列表, 更新第几项, 要更新的数据)
阅读全文
posted @ 2017-03-24 16:34 涵叔
阅读(104)
评论(0)
推荐(0)
3. v-text vs v-html
摘要: v-text原样输出,不解析html,会当成字符串 v-html会解析html代码
阅读全文
posted @ 2017-03-24 16:26 涵叔
阅读(125)
评论(0)
推荐(0)
2. 组建的注册与引入
摘要: 1.注册 2. 引用 a.在模版当中<my-header></my-header> b.在vue实例化配置当中引入components
阅读全文
posted @ 2017-03-24 16:14 涵叔
阅读(104)
评论(0)
推荐(0)
上一页
1
2
3
4
5
下一页
公告