其他分享
首页 > 其他分享> > vue2 jsx简单例子

vue2 jsx简单例子

作者:互联网

vue2 jsx简单例子

 

<script>

export default {
  name: "swipermoban",
  data() {
    return {};
  },

  render(h) {
      console.log(h);
      return (<div>1111111</div>);
 },

 
};
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
</style>

 

标签:return,name,render,例子,vue2,jsx
来源: https://www.cnblogs.com/newmiracle/p/16341430.html