作家
登录

用Jsx写Vue组件

作者: 来源: 2017-07-25 11:04:10 阅读 我要评论

'hi' 
  •  
  •     }, 
  •  
  •     // normal HTML attributes 
  •  
  •     attrs: { 
  •  
  •       id: 'foo' 
  •  
  •     }, 
  •  
  •     // DOM props 
  •  
  •     domProps: { 
  •  
  •       innerHTML: 'bar' 
  •  
  •     }, 
  •  
  •     // Event handlers are nested under "on", though 
  •  
  •     // modifiers such as in v-on:keyup.enter are not 
  •  
  •     // supported. You'll have to manually check the 
  •  
  •     // keyCode in the handler instead
  •  
  •     on: { 
  •  
  •       click: this.clickHandler 
  •  
  •     }, 
  •  
  •     // For components only. Allows you to listen to 
  •  
  •     // native events, rather than events emitted from 
  •  
  •     // the component using vm.$emit. 
  •  
  •     nativeOn: { 
  •  
  •       click: this.nativeClickHandler 
  •  
  •     }, 
  •  
  •     // class is a special module, same API as `v-bind:class` 
  •  
  •     class: { 
  •  
  •       foo: true
  •  
  •       bar: false 
  •  
  •     }, 
  •  
  •     // style is also same as `v-bind:style` 
  •  
  •     style: { 
  •  
  •       color: 'red'

      推荐阅读

      尴尬了:谷歌Android Samba应用仅支持不安全的SMBv1

    近日谷歌初次推出其新的Android Samba应用,这显然不是好的宣布机会,因为在不久前,在重大年夜进击变乱中进击者就应用了该应用中安排的不安然版本SMB协定。比来几个月来,办事器消息块(SMBv1)协定中的马脚经由过程>>>详细阅读


    本文标题:用Jsx写Vue组件

    地址:http://www.17bianji.com/lsqh/36384.html

  • 关键词: 探索发现

    乐购科技部分新闻及文章转载自互联网,供读者交流和学习,若有涉及作者版权等问题请及时与我们联系,以便更正、删除或按规定办理。感谢所有提供资讯的网站,欢迎各类媒体与乐购科技进行文章共享合作。

    网友点评
    自媒体专栏

    评论

    热度

    精彩导读
    栏目ID=71的表不存在(操作类型=0)