,而不是使用修剪所有我想用一次作爲共同爲下面的代碼的時候...請幫助我jQuery中使用裝飾
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?";
}
其中是代碼???? – 2013-03-13 09:53:07