SAP UI5控件aggregation的一个模拟实现
2023-09-14 09:02:40 时间
<html>
<script>
function Aggregation(name) {
this.mAggregationName = name;
}
var oItemAgg = new Aggregation("item"); // so far, Aggregation oject has no available method
debugger;
Aggregation.prototype.generate = function(add, prototype) {
// var that = this, n = that.mAggregationName;
add("getAggregation", prototype, function() {
console.log(" getAggregation should be implemented here!");
});
}
function add(name, proto, fn){
if ( !proto[name] ) {
proto[name] = fn;
}
}
oItemAgg.generate(add, Aggregation.prototype);
oItemAgg.getAggregation();
debugger;
var Sub = function(name) {
Aggregation.call(this, name);
// sub own logic here
};
Sub.prototype = new Aggregation();
var subAggregation = new Sub("Sub");
debugger;
</script>
相关文章
- 81. 使用 SAP ABAP Memory Inspector 对应用程序消耗内存进行检测时常犯的错误
- 131. SAP UI5 Cross Application Navigation (跨应用间跳转)的本地模拟实现
- 关于 SAP UI5 对服务器端渲染 Server Sider Render 的支持问题
- SAP CRM Fiori应用My Note的OData调用设计
- 如何为SAP OData消费维护不同的ABAP后端系统
- Java的Covariance设计原理和SAP ABAP的模拟实现
- SAP ABAP Netweaver里进程能够申请的最大内存
- SAP CRM IBASE read header debug
- 如何判断一个SAP CRM UI能否被扩展
- SAP CRM 中间件里的发布-订阅者模式
- SAP CRM Service Order search Tool
- 如何隐藏SAP Spartacus home页面标准的header区域
- SAP Spartacus的home page navigation逻辑
- SAP Spartacus和Table相关的配置结构ResponsiveTableConfiguration
- 如何自行查找SAP ERP的物料主数据和CRM产品主数据的映射关系
- SAP CRM里找出包含了指定product的IBASE明细
- SAP CRM CRM_PARTNER_READ_MULTI_OB
- SAP CRM One Order框架里旧式的索引表设计原理
- 一个最简单的SAP UI5应用部署到SAP云平台CloudFoundry环境后,自动生成了哪些资源
- SAP UI5 的初始化过程
- SAP UI5控件aggregation的一个模拟实现
- SAP 电商云 Spartacus UI 点了 Shipping Method 之后的执行逻辑
- 安装 SAP Spartacus 3.0 并使用B2B功能