后台数据userlist = [{"id":"1","name":"王","age":20},{"id":"1","name":"林","age":22}];
前台的html页面代码是:<wj-combo-box [itemsSource]="userlist" [displayMemberPath]="'name'" [selectedValuePath]="'id'"></wj-combo-box>
现在页面上下拉选择框只能显示name的值,我现在想把下拉选择框显示为name和age的值,应该如何去修改代码,才能在下拉选择框中显示name和age的值?
|
|