顶部选项卡-div模式,即http://www.dcloud.io/hellomui/examples/tab-with-segmented-control.html。
可滑动的可以用以下代码实现:
//change slider
var act={$act};
if(act!==-1){
var sliders = mui('.mui-slider').slider();
sliders.gotoItem(act);
}
这个“顶部选项卡-div模式”,应该怎样通过JS代码实现以上功能?即:默认显示通过url或php变量指定(ID或序号)的选项卡和对应内容?感谢!!
8***@qq.com
解决了吗?我也想知道怎么改变默认选项卡
2017-12-26 11:50