easyui中tabs调用问题

$("#tabs").tabs({
pill:true,
tabPosition:'left',
fit:true,
headerWidth:200,
onSelect:function(title,index){
if(index > 0){
$("#tabs").tabs('select',0);

//此行报错提示:Cannot read property 'tabs' of undefined
(但是我就在此处定义的啊)
}
},
})

想必楼主已经解决了这个问题
错误原因:table元素没有属性id="tabs"。Cannot read property 'tabs' of undefined就能看出你未定义属性tabs,
解决办法:1.在页面的table元素table中加入属性id="tabs" 2.在js代码中加入$("table").attr("id","tabs");