![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue学习
biubiubiuzzz
这个作者很懒,什么都没留下…
展开
-
vue-cli下配置json-server
使用json-server实现后台数据接口先建一个json文件:db.json 放在build/下在build/dev-server.js中配置 (注意变量命名)github说明:启动项目 地址栏输入 localhost:8081服务已启动成功 8081后加相应后缀即可访问数据localhost:8081/postsl原创 2017-09-22 20:23:26 · 5137 阅读 · 0 评论 -
Vue学习之computed 与 method
前台某个数据是经过计算得出,当后台数据发生变化时,需要前台数据同步,可以通过vue的computed或 定义method 实现例如: {{fullName}}new Vue({ el:"p", data:{ firstName:"foo", lastName:"bar", fullName:'' }}fullName = firstN原创 2017-09-17 09:33:19 · 1140 阅读 · 0 评论