📜  角度 6 键值对 getvalue 示例 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:43.809000             🧑  作者: Mango

代码示例2
@Component({
  selector: 'app-myview',
  template: `
{{key + ' : ' + items[key]}}
` }) export class MyComponent { objectKeys = Object.keys; items = { keyOne: 'value 1', keyTwo: 'value 2', keyThree: 'value 3' }; constructor(){} }