谁能告诉我如何在 Spring MVC 控制器中获取 javascript 变量值。
var countrySelection = "Country Selection List:\n\n";
for (var i = 0; i < frm.selectedCountryItems.length; i++)
if (frm.selectedCountryItems[i].checked){
countrySelection = countrySelection + frm.selectedCountryItems[i].value + "\n";
}
alert(countrySelection);
我想将值 countrySelection 传递给控制器