switch (item.key) {
case "self_pickup":
form.self_pickup = Number(item.value);
break;
case "same_city":
form.same_city = Number(item.value);
break;
case "logistics":
form.logistics = Number(item.value);
break;
default:
break;
}
标签:case,form,value,用法,break,item,switch
From: https://www.cnblogs.com/JaneLifeBlog/p/17869269.html