SAP CRM Fiori reuse library的代码审查
Opaque comment
Since you have defined attribute “displayMode” as type Boolean, so it can be assigned with true of false.
Then your comment is opaque. What does “’has value” mean? True or false?
Code robustness
More information about id uniqueness
Further study:
http://help.sap.com/saphelp_uiaddon10/helpdata/en/56/2803c6f55c49608d01a453cc0590ab/frameset.htm
if we are in ui component context, we do not need to concatenate id prefix and id body manually, as suggested by sap help above:
Create all views, controls, and elements in a UI component by using the this.createId() method and retrieve them by using the this.byId() method.
要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":
總結
以上是生活随笔為你收集整理的SAP CRM Fiori reuse library的代码审查的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: win7系统如何关闭屏保(Win10系统
- 下一篇: 快手可以图片搜索吗(快手创作者服务平台)