EasyUI-载入面板内容


@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
    <script src="~/Scripts/jquery-3.3.1.min.js"></script>
    <script src="~/Scripts/jquery.easyui.min.js"></script>
    <script src="~/Scripts/easyui-lang-zh_CN.js"></script>
    <link href="~/Content/EasyUI/themes/icon.css" rel="stylesheet" />
    <link href="~/Content/EasyUI/themes/default/easyui.css" rel="stylesheet" />

</head>
<body>
    <h2>Load Panel Content</h2>
    <p>Click the refresh button on top right of panel to load content.</p>
    <div style="margin:20px 0 10px 0;"></div>
    <div id="p" class="easyui-panel" title="Load Panel Content" style="width:700px;height:200px;padding:10px;"
         data-options="
                tools:[{
                    iconCls:'icon-reload',
                    handler:function(){
                        $('#p').panel('refresh', '_content.html');
                    }
                }]
            ">
    </div>
</body>
</html>

猜你喜欢

转载自blog.csdn.net/dxm809/article/details/88783214
今日推荐