vue 商城制作
L人称
这个作者很懒,什么都没留下…
展开
-
vue.js (制作电商网站)知识点总结一 待补充
先丢官网 添加链接描述 推荐一个不错的视频教程网站添加链接描述 进入正题 先说vue的页面布局 <template> <div class="about"> <h1>This is an about pa原创 2018-11-29 20:51:30 · 1463 阅读 · 0 评论 -
vue.js 2.0 组件调用其他组件的方法
1 <template> 2 <div> 3 <!-- 3.在template中就可以直接使用了 --> 4 <testComponent/> 5 </div> 6 </template> 7 8 <script> 9原创 2018-12-05 09:26:11 · 688 阅读 · 0 评论 -
vue 插槽
1.插槽 1.1 单个插槽 1.2 具名插槽 1.3作用域插槽:数据是子传父 注意:在2.5.0之前,必须使用到template身上 2.动态组件 2.1 keep-alive 什么情况下使用缓存: 1.1(单个插槽 )`父组件 <div class="parent"> <Child> // //父组件 <p >我是插槽1&...原创 2018-12-07 20:46:54 · 199 阅读 · 0 评论 -
vue 学习笔记 组件的调用
<template> /*父组件*/ <div> <son/> /* 组件名字*/ </div> </template> <script> import Son from "./son" /* 引原创 2018-12-06 14:06:41 · 196 阅读 · 0 评论 -
父子组件间的传递值之父传子
父组件 &lt;template&gt; &lt;div&gt; 父亲 &lt;input type="text" v-model="lifemsg"&gt; &lt;Son :title="msg" :lifemsg="lifemsg" :原创 2018-12-06 15:03:33 · 377 阅读 · 0 评论 -
父子组件间的传递值之子传父
子组件 <template> <div> 子组件 <button @click="sendMsg">传递</button> </div> </template> <script> export default{ name:"child", data(){原创 2018-12-06 16:04:02 · 303 阅读 · 0 评论