打赏
摘要: 1.父组件给子组件传值 2.父组件把方法传递给子组件 阅读全文
posted @ 2019-01-15 19:18 QueryMarsBo 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 1.定义组建的方式: 2. 阅读全文
posted @ 2019-01-15 14:19 QueryMarsBo 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 1.使用`flag`标识符结合`v-if`和`v-else`切换组件 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, i 阅读全文
posted @ 2019-01-15 10:06 QueryMarsBo 阅读(211) 评论(0) 推荐(0) 编辑