easyui tabs 返回后选中

时间:2021-04-25 06:27:53
<input type="hidden" id="tabId" name="tabId" value="${model.tabId}"/>
$(document).ready(function(){
            var tabId =${model.tabId};
            $("#tabsId").tabs("select",tabId);
function submitData(){
            var tab = $('#tabsId').tabs('getSelected');
            var index = $('#tabsId').tabs('getTabIndex',tab);
            $("#tabId").val(index);
            $("#from1").submit();
        }