Layui의tab 탭 전환 중 데이터 테이블 로드 예외

8577 단어 경험담layUI
<div class="layui-container">
        <br>
        <div class="layui-row">
            <div class="layui-col-md2">
                <div class="layui-form-item">
                    <span>span>
                div>
                <div class="layui-form-item">
                    <span style="color: red"> span>
                div>
            div>
            <div class="layui-col-md10">
                <table id="demo18" lay-filter="demo18">table>
                <table id="demo19" lay-filter="demo19">table>
            div>
        div>
    div>
    let table18 = table.render({
     
        elem: '#demo18'
        , cols: demo18
        , data: []
    });
    let table19 = table.render({
     
        elem: '#demo19'
        , cols: demo19
        , data: []
    });


    element.on('tab(docDemoTabBrief)', function (elem) {
     
        table18.resize('demo18');
        table19.resize('demo19');
    });

좋은 웹페이지 즐겨찾기