-
Notifications
You must be signed in to change notification settings - Fork 10
data中type是不是多余。 #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
首先感谢你的issues。
|
增加type就是为了维护,这个懂了。就跟ts一样,写代码麻烦的要死,不过后期维护方便。jsx语法我试过了,渲染失败。不知道是不是我搞错了。什么时候改为ts来写吧。list.js文件都900😂行了 |
后续会加入类型定义文件 |
采用这种写法是不是会增加开发的成本,采用jsx语法是不是更好。
data=[['2019-04', '故障率 10%', '变压器运行经济性较差请合理用i电脑', <a target='_blank' href='http://www.baidu.com' style={{color: 'red'}} className='dd' onClick={(event) => { alert(event) }}>下载</a>]]
这种写法岂不是更舒服,下面这个api也不用维护,
The text was updated successfully, but these errors were encountered: