会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
吃个石头
博客园
首页
新随笔
联系
订阅
管理
2017年4月10日
vue2 computed set与get函数
摘要: 大家都知道computed简单的使用方法,这儿只分享一下setter和getter用法: setter:设置值时触发。 getter:获取值时触发,与setter是没有必然联系的。 <template > <div> <button @click='fn'>设置</button> //点击后fn函数
阅读全文
posted @ 2017-04-10 10:07 吃个石头
阅读(5912)
评论(0)
推荐(0)
编辑
公告