循环通过public signupList:Array <object>使用离子2中的keyvalue

时间:2017-02-02 09:18:26

标签: object typescript ionic-framework

如何使用离子2中的keyvalue循环遍历公共mySentences:Array     例如:如何在类型脚本中循环遍历数组?感谢

public mySentences:Array<Object> = [
    {id: 1, text: 'Sentence 1'},
    {id: 2, text: 'Sentence 2'},
    {id: 3, text: 'Sentence 3'},
    {id: 4, text: 'Sentenc4 '},
];

0 个答案:

没有答案