$(function(){
tabFlagMap["treasureSkill"] = false;
tabFuncMap.treasureSkill = function(){
var index = Object.keys(equipskilldata).length ;
$.each(equipskilldata,function(key,map){
var tr = $("
");
$("#treasureSkillTable tbody").append(tr);
var treasureSkillName = $(""+map.NAME+" | ");
//var descript = $(""+findTreasureDescript(key)+" | ");
var effect = $(" | ");//技能主动效果
effect.append("五行:"+wuxing[map["五行"]]+"
"+findSkillRewardInfo(map));
tr.append($(""+map.INDEX+" | "));
tr.append(""+index+" | ");
tr.append(treasureSkillName);
tr.append(effect);
//tr.append($(" | ").append(findBuffTips(map)));
treasureSkillName.append(""+map["PY"]+"");
index--;
});
/*treasureSkillTable*/
$('#treasureSkillTable').dataTable( {
"pagingType": "full_numbers",
"language": {
"lengthMenu": "每页 _MENU_ 条记录",
"zeroRecords": "没有找到法宝技能,难道我遗漏了?!",
"info": "第 _PAGE_ 页 ( 总共 _PAGES_ 页 )",
"infoEmpty": "没有法宝技能",
"infoFiltered": "(从 _MAX_ 条法宝技能过滤)",
"search": "搜索(可用技能名称首字母):",
"paginate": {
"first": "首页(W)",
"last": "末页(S)",
"next": "下一页(D)",
"previous": "上一页(A)"
},
},
// 默认按照索引排序,且隐藏索引列
"order": [[ 0, "asc" ]],
"columnDefs": [
{
"targets": [ 0 ],
"visible": false,
"searchable": false
},
]
});
$('#treasureSkillTable th').css("text-align","center");
}
});