📅  最后修改于: 2022-03-11 15:02:18.849000             🧑  作者: Mango
//component.html
//component.ts
this.types = [ 'type1', 'type2', 'type3' ];
this.order = {
type: 'type1'
};
callType(value){
console.log(value);
this.order.type=value;
}