zl程序教程

您现在的位置是:首页 >  其他

当前栏目

一种在标准的SAP UI5方法里注入新逻辑的办法

SAP标准方法注入逻辑 一种 UI5 办法
2023-09-14 09:02:40 时间
(function() {
var old = sap.cus.crm.lib.reuse.controls.Note.prototype.getProperty;
sap.cus.crm.lib.reuse.controls.Note.prototype._jerrycount = 1;
sap.cus.crm.lib.reuse.controls.Note.prototype.getProperty = function(name) {
console.time("getProperty Benchmark");
var result = old.call(this,name);
sap.cus.crm.lib.reuse.controls.Note.prototype._jerrycount++;
console.log("result: " + result + "(total count: " + 
sap.cus.crm.lib.reuse.controls.Note.prototype._jerrycount + " )");
console.timeEnd("getProperty Benchmark");
return result;
};

})();