WebFXTabPane.prototype.setSelectedIndex=function (n) {
if (this.selectedIndex != n) {
if (this.selectedIndex != null && this.pages[ this.selectedIndex ] != null )
this.pages[ this.selectedIndex ].hide();
this.selectedIndex = n;
this.pages[ this.selectedIndex ].show();
if ( this.useCookie )
WebFXTabPane.setCookie( "webfxtab_" + this.element.id, n ); // session cookie
}
};
我想在页面上调用这个setSelectedIndex应该怎么做
WebFXTabPane是个JS的WEB控件,写了一个tabpane.js中