摘要:
1 2 3 4 5 vue 6 7 8 9 10 11 12 13 14 35 36 添加.native表示绑定原生事件 1 2 3... 阅读全文
摘要:
组件参数校验 props特性子组件有props,父组件传递content,子组件接收content非props特性父组件传递content,子组件没有props,没接收content。1、使用content时报错。2、content属性会展示在子组件最外层的dom标签html属性里面 阅读全文
摘要:
父组件通过属性向子组件传值 单向数据流,父组件可以向子组件传值,子组件不能向父组件传值 阅读全文
摘要:
注意:table 里面只能写tr>td, 使用is=row,若直接使用<row></row>则template模板不在table里面。其它select ,ul, ol等都是用is /子组件里的data是function而不是object, 且使用return 让每一个子组件都拥有一个独立的数据存储, 阅读全文
摘要:
<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title>vue</title> <style> .active { color:red } </style> </head> <body> <div id="app"> <div v-for 阅读全文
摘要:
v-if 将dom结构删除,添加 v-show 修改display为true和false 两个都可以用的情况下v-show的性能更高些 阅读全文
摘要:
set得到值后可以改变data的值 阅读全文