而不是一直使用修剪,我想在下面的代码中使用一次......请帮助我
if ("Company Profile" == $.trim(selectedValue)) {
actionClass = "locationImportCompany.do?";
} else if ("Oppty Locations" == $.trim(selectedValue)) {
actionClass = "locationImport.do?";
} else if ("Different Oppty" == $.trim(selectedValue)) {
actionClass = "locationImportDiffOppty.do?";
} else if ("Loop TrackId Profile" == $.trim(selectedValue)) {
actionClass = "locationImportLoopTrkId.do?";
} else if ("Inventory" == $.trim(selectedValue)) {
isOrdering = "Y";
actionClass = "inventoryLaunch.do?";
} else if ("Data Center List" == $.trim(selectedValue)) {
actionClass = "locationImportDataCenter.do?";
} else if ("Customer AccountId" == $.trim(selectedValue)) {
actionClass = "inventoryLaunch.do?";
} else if ("Customer Name" == $.trim(selectedValue)) {
actionClass = "locationImportDataCenter.do?";
}