var addressTxt = new sap.ui.commons.Label({
id : 'addressTxt',
text : {
parts : [
{path : 'Street'},
{path : 'PostalCode'},
],
formatter : function(Street,PostalCode){
var text = "";
if(Street) text = Street+ ",";
if(PostalCode) text += PostalCode +","
return text;
}
}
});
我在这里使用格式化程序函数将两个元素连接到一个文本字段中,但是参数的值始终为空。我究竟做错了什么?