我有以下值需要在 javascript 中进行硬编码和比较
值为:
SR = PlantWRShippingMail@shawinc.com
26 = Plant26ShippingMail@shawinc.com
29 = Plant29ShippingMail@shawinc.com
30 = Plant30ShippingMail@shawinc.com
34 = Plant34ShippingMail@shawinc.com
54 = Plant54ShippingMail@shawinc.com
41 = Plant41ShippingMail@shawinc.com
47 = Plant47ShippingMail@shawinc.com
DL = Plant.DL.Shipping.Mail@shawinc.com
37 = Plant37ShippingMail@shawinc.com
MU = PlantMUShippingMail@shawinc.com
UC = PlantUCShippingMail@shawinc.com
NB = plantnbshippingmail@shawinc.com
等等
我必须将该值与现有值进行比较,例如
var plantNo=document.getElementById('plantNo').value;
if(plantNo=`anyonevaluefromAbove`){
//than get the value of it.
}
怎么做我在javascript中做到这一点。