- 博客(3)
- 资源 (3)
- 收藏
- 关注
原创 Vue
Vue 1、安装 # 安装vue-cli yarn global add @vue/cli # 初始化项目 vue create hello-world 2、子组件更新父组件的props 方法一: // 父组件 <MyTree :data.sync="data" /> // 子组件 this.$emit('update:data', data); 方法二: // 父组件,传入子组件属性名为value <MyTree v-model="data" /> // 子组件
2020-10-10 14:23:45 66
原创 jquery
import $ from 'jquery' export default { name: 'app', data() { return { Editor: window.CKEDITOR } }, mounted() { this.Editor.replace('editor', { ...
2019-04-27 19:09:47 72
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人