组件开发-API声明-问题汇总
小艺001
2021.11.03 15:22发布于技术 - 前端与UI
5170

避免使用js的敏感词汇(如key="key")

错误示范

<property key="key" type="attribute" required="false" dataSource="nodes"> <caption>Id</caption> <description></description> <attributeTypes> <attributeType name="String" /> </attributeTypes> </property>

正确示范

<property key="_key" type="attribute" required="false" dataSource="nodes"> <caption>Id</caption> <description></description> <attributeTypes> <attributeType name="String" /> </attributeTypes> </property>
DannyChuang、收费的阳光、作者在
点赞
收藏
手机查看
举报
0个评论
倒序看帖
仅看楼主

暂无数据