评论:vue.js 使用jsx语法

1、创建一个测试的组件export default { name:'Test',  components:{ },  render(h){ return <div>      test </div>  },  data () { return { } }}2、把编辑器js语言的版本设置成jsx,这样编辑器 可以正确识别jsx语 [更多>>]

网友评论0 条评论)
发表评论

Copyright © 2012-2014 我的代码板 Inc. 保留所有权利。

页面耗时0.0157秒, 内存占用1.81 MB, 访问数据库8次

闽ICP备15009223号-1