解决方案 »

  1.   

    因为这时候还没生成layout
    <body>
        <div id="cc" class="easyui-layout" style="width: 500px; height: 400px;">
            <div data-options="region:'north'" style="height:50px;" title="North">
            </div>
            <div data-options="region:'center'">
            </div>
            <div data-options="region:'south'" style="height:100px;" title="South">
            </div>
        </div>
    </body>
    </html>
    <script>
        $(function () {
            var panel = $('#cc').layout('panel', 'center');
        });
    </script>
      

  2.   


    多谢仁兄指点,是这样的。再问一个问题,$(callback) 貌似是 $(document).ready() 的简写吧,jquery手册上是这么说;
    而easyui也提供一个 $.parser.onComplete,解析完成执行我觉得如果是easy的组件渲染,就用easyui提供的
    但如果,同时使用的话,时间上先后顺序是怎么样的,还是取决于调用顺序?