在ajax请求完成时获取两个整数后,即使storeDims()已正确解码this.N和this.M,它也不会被dims设置。因此,我似乎不能访问在构造函数中声明的this.N和this.M。这是代码 class MapModel {
this.N; // need to initialize this after an ajax callcallback(this.N, this.M, this.seats); let
我试图对Struts 2操作方法进行Ajax调用,然后在action类中显示变量的值。即使方法正在被调用,我也无法看到变量的值。变量的getter和setter位于action类中。My动作方法: //Set value of variable "myVariable" Ajax方法:
$.ajax({in struts.xm