我想实现点击切换tab签传递不同的参数,请问js怎么写,下面是我写的一段js var tabpane = this.getWidgetByName("TABPANE1"); switch(tabpane.mouseInTab){ case 0: _g().getWidgetByName('chart6').gotoPage(1, { "gnw": "国内","dw":"","xl":"" }, 'T'); _g().getWidgetByName('chart7').gotoPage(1, { "gnw": "国内","dw":"","xl":"" }, 'T'); break; case 1: _g().getWidgetByName('chart6').gotoPage(1, { "gnw": "国外","dw":"","xl":"" }, 'T'); _g().getWidgetByName('chart7').gotoPage(1, { "gnw": "国外","dw":"","xl":"" }, 'T'); break; default: break; } |