jiaozitang / Vuejs-note

0 stars 0 forks source link

is #7

Open jiaozitang opened 6 years ago

jiaozitang commented 6 years ago

在vuejs中,标签的定义是受限制的,比如<ul></ul>中只能放<li></li>,而不能放我们写好的模板,比如<my-li></my-li>,可以这么写来实现

<ul>
  <li is="my-li"></li>
</ul>
jiaozitang commented 6 years ago

is还可以用来切换组件的显示隐藏 image