我试图对Struts 2操作方法进行Ajax调用,然后在action类中显示变量的值。即使方法正在被调用,我也无法看到变量的值。变量的getter和setter位于action类中。My动作方法: //Set value of variable "myVariable" Ajax方法:
$.ajax({type: "POST"
我试图从ajax调用mvc核心操作方法,但在控制台中遇到错误:$.ajax({ type: "POST",RedirectResult("http://Google.com");//Redirecting to different website in antoher domain.控制台出错:我无法