![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue
banzhuantao
这个作者很懒,什么都没留下…
展开
-
vue 依赖注入
父组件<template> <div> <child-com></child-com> </div></template><script>export default { provide: function() { return { changeMy: this.changeMy }; }, components: { ChildCom: () =.原创 2020-05-16 12:29:04 · 294 阅读 · 0 评论 -
vue的.sync使用
<!-- sync只是一种父子组件沟通的方式 如果我们只是在子组件中修改父组件中的某个数据时,建议使用sync--><template> <div style="height: 1000px"> <input type="button" value="我是父组件中的按钮,点我有惊喜" @click="show" /> <base-checkbox v-show="isShow" :changeShow.sync="isSh原创 2020-05-13 10:53:14 · 180 阅读 · 0 评论 -
vue插值页面坑
当我们在用{{ }} 在我们的页面中插入相应的值时,在网速不理想的情况下会直接出现我们的{{ value }} 效果, 为了防止这三个效果, 我们可以使用如下三种方法: 1. v-html; 2. v-text; 3. v-cloak。不要说你会vue还不会这三种办法, 我不信!!!...原创 2019-07-30 23:38:56 · 385 阅读 · 0 评论 -
例:vue动态绑定a标签中的href值
id 由data传入原创 2019-07-30 23:45:57 · 13070 阅读 · 0 评论