var output = ''; if (status=='A'){ output = Value_A } if else(status=='B'){ output = Value_B } alert(output); 但若是情況有100種,豈不是要寫100個 ...
確定! 回上一頁