更新时间:2023-02-01 16:36:55
在组件中实例化一个全局JSONModel并将视图计数存储在该组件中.可以通过调用组件的 onInit 方法中的 setModel 使该模型在全球范围内可用.
Instantiate a global JSONModel in your component and store the view count there. The model can be made globally available by calling setModel in the component's onInit method.