📜  选项选择上的角度调用函数 - Javascript代码示例

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

代码示例1


modo(value: string){
  switch(value) {
    case "mod1":
       // if modo 1 is selected do something.
       break;
    case "mod2":
       // if modo 2 is selected do something.
       break;
    case "mod3":
       // if modo 3 is selected do something.
       break;
  }
}