3
http://angular-ui.github.io/bootstrap/如何遍歷typeahead的一組對象?
我想使用bootstrap的typeahead,並在對象中搜索兩個不同的密鑰對。我如何遍歷數組對象?
也可以有人解釋這是什麼? typeahead="state for state in states | filter:$viewValue"
的for
子句扔我了,它似乎真的不清楚,因爲state for state
股相同的名稱。
有沒有辦法顯示兩個密鑰對?例如,前面的字母會顯示'Steven,123345',其中'{姓名:Steven,電話:123345}'? – Strawberry
你可以在人身上做'(person.name +','+ person.phone)' – zsong
哦,我明白了。我現在明白了。謝謝! – Strawberry