如何通过调用API方式打开tab窗口

提问 未结 3 6846
悬赏:20飞吻
var $editDialog = $('#editDialog');
$editDialog.iDialog({
title: '编辑数据',
width: 950,
height: 500,
closed: false,
cache: false,
href: _ctx + '/html/complex/dialog_edit.html?uuid=' + uuid,
modal: true,
buttons: [{
text: '保存',
iconCls: 'fa fa-save',
btnCls: 'topjui-btn-blue',
handler: function () {
// 提示信息
$.iMessager.alert('操作提示', '请根据具体情况编写代码,如ajax更新请求,请求失败提示,请求成功提示,请求成功后关闭窗口并刷新表格等!', 'messager-info');
}
}, {
text: '关闭',
iconCls: 'fa fa-close',
btnCls: 'topjui-btn-red',
handler: function () {
$editDialog.iDialog('close');
}
}],
onLoad: function () {
//加载表单数据
$.getJSON(_ctx + '/json/goods/detail.json?uuid=' + uuid, function (data) {
$editDialog.form('load', data);
});
}
});
这样可以打开iDialog,那怎么打开iTabs,就是我想像上面代码那样打开tab窗口,请问代码需要怎样写?
回帖
回帖须知