Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/json/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
带复选框的Jquery树网格简易UI(从servlet获取json数据)_Jquery_Json_Ajax_Jquery Easyui - Fatal编程技术网

带复选框的Jquery树网格简易UI(从servlet获取json数据)

带复选框的Jquery树网格简易UI(从servlet获取json数据),jquery,json,ajax,jquery-easyui,Jquery,Json,Ajax,Jquery Easyui,嗨,我是jquery和easy ui的新手。 我能够显示template.json文件中的数据。 TreeGrid-jqueryeasyui演示中的Cascade复选框 TreeGrid中的Cascade复选框 带有级联复选框的TreeGrid节点 名称 大小 修改日期 我面临的问题是,我想从servlet获取json文件。如何在这里使用ajax调用?此外,在这个表中,我想在表下方或表尾添加submit按钮,这样当用户单击这个按钮时,他应该在警报中获取所有选定的数据。请帮我做这件事。提前谢

嗨,我是jquery和easy ui的新手。 我能够显示template.json文件中的数据。


TreeGrid-jqueryeasyui演示中的Cascade复选框
TreeGrid中的Cascade复选框
带有级联复选框的TreeGrid节点

名称 大小 修改日期
我面临的问题是,我想从servlet获取json文件。如何在这里使用ajax调用?此外,在这个表中,我想在表下方或表尾添加submit按钮,这样当用户单击这个按钮时,他应该在警报中获取所有选定的数据。请帮我做这件事。提前谢谢

    <!DOCTYPE html>
    <html>
    <head>
        <meta charset="UTF-8">
        <title>Cascade CheckBox in TreeGrid - jQuery EasyUI Demo</title>

        <link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/default/easyui.css">
        <link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/icon.css">
        <script type="text/javascript" src="http://code.jquery.com/jquery-1.6.1.min.js"></script>
        <script type="text/javascript" src="http://www.jeasyui.com/easyui/jquery.easyui.min.js"></script>


    </head>
    <body>
        <h2>Cascade CheckBox in TreeGrid</h2>
        <p>TreeGrid nodes with cascade check boxes.</p>
        <div style="margin:20px 0;"></div>
        <table title="Folder Browser" class="easyui-treegrid" style="width:700px;height:250px"
                data-options="
                    url: 'treegrid_data1.json',
                    method: 'get',
                    checkbox: true,
                    rownumbers: true,
                    idField: 'id',
                    treeField: 'name'
                ">
            <thead>
                <tr>
                    <th data-options="field:'name'" width="220">Name</th>
                    <th data-options="field:'size'" width="100" align="right">Size</th>
                    <th data-options="field:'date'" width="150">Modified Date</th>
                </tr>
            </thead>
        </table>

    </body>
    </html>