tabcontrol原生js插件
效果图
tabControl.js文件
!function (t,e){
"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("tabControl",[],e):t.tabControl=e()
}(this,function(){
//工具类函数
'use strict' //严格模式 ES5提出
//模块代码的公用工具类
function isObj(obj){
return typeof obj==='object' && obj!==null
}
function isArray(arr){
return arr.constructor===Array;
}
return function(obj){
//判断参数数据类型
if(!isObj(obj)|| isArray(obj)){
//console.log('数据类型错误')
throw new