ui5 framework extend function

简介: extend is actually returning a new class by Metadata.createClasscreate prototype chainfnClass.prototype = jQuery.sap.newObject(fnBaseClass.prototype);fnClass.prototype.constructor = fnClass;Make the class visible as JS Object: jQuery.sap.setObject(sClassName, fnClass);fnClass.getMetadata = fnCl

extend is actually returning a new class by Metadata.createClass

create prototype chain

fnClass.prototype = jQuery.sap.newObject(fnBaseClass.prototype);

fnClass.prototype.constructor = fnClass;

Make the class visible as JS Object: jQuery.sap.setObject(sClassName, fnClass);

fnClass.getMetadata = fnClass.prototype.getMetadata = jQuery.sap.getter(oMetadata);

image.pngimage.pngimage.pngimage.pngimage.pngimage.png

image.png


相关文章
|
8月前
|
Web App开发 前端开发 JavaScript
SAP UI5 应用开发教程之八十八 - SAP UI5 Mock 服务器如何实现自定义 Function Import 试读版
SAP UI5 应用开发教程之八十八 - SAP UI5 Mock 服务器如何实现自定义 Function Import 试读版
43 0
|
Web App开发 JavaScript 前端开发
如何分析SAP UI5应用的undefined is not a function错误
如何分析SAP UI5应用的undefined is not a function错误
120 0
如何分析SAP UI5应用的undefined is not a function错误
how drop down list description is displayed by UI framework
how drop down list description is displayed by UI framework
159 0
how drop down list description is displayed by UI framework
SAP BSP source code handling - how is native html source generated by UI framework
SAP BSP source code handling - how is native html source generated by UI framework
SAP BSP source code handling - how is native html source generated by UI framework
|
JavaScript 前端开发
UI5 framework异步加载javascript的solution - 动态创建script node
Created by Jerry Wang, last modified on Sep 22, 2015
111 0
UI5 framework异步加载javascript的solution - 动态创建script node
|
JavaScript 前端开发
UI5 framework异步加载javascript的solution - 动态创建script node
Created by Jerry Wang, last modified on Sep 22, 2015
UI5 framework异步加载javascript的solution - 动态创建script node
|
Web App开发
where and when navigation target url is retrieved by SAP UI5 Framework
Created by Jerry Wang, last modified on Jan 17, 2015
where and when navigation target url is retrieved by SAP UI5 Framework
SAP UI5 group function调试
Created by Wang, Jerry, last modified on Feb 05, 2015
SAP UI5 group function调试

热门文章

最新文章