
相关参数
var option = {
paddingTop: "10px",
paddingBottom: "10px",
fontSize: "15px",
selectTab: {
//选中样式(full填满 underline下划线)
type: "underline"
},
tab: {
list: [
//选项集合
{
content: '选项1'
}, {
content: '选项2'
}, {
content: '选项3'
}, {
content: '选项4'
}, {
content: '选项5'
}
],
selectIndex: 0
//选中选项索引
},
areaList: [
//选项对应跳转区域集合
{
selector: '#s1'
}, {
selector: '#s2'
}, {
selector: '#s3'
}, {
selector: '#s4'
}, {
selector: '#s5'
}
],
skipTime: 3000
//跳转所需时间
}
//初始化方法 initTab(option)