更新时间:2023-01-06 07:39:11
( function ()
{
(' #jstree2')。jstree({' plugins':[ wholerow, 复选框],' core':
{
type: POST,
data: {},
contentType: 应用/ JSON; charset = utf-8,
dataType: json,
' data':[
{ id: ajson1, parent: #, text: 简单},
{ id: ajson2, parent: #, text: Root},
]
}
}
);});
< / script>
('#jstree2').jstree({'plugins':["wholerow","checkbox"], 'core' : { type: "POST", data: "{}", contentType: "application/json; charset=utf-8", dataType: "json", 'data' : [ { "id" : "ajson1", "parent" : "#", "text" : "Simple"}, { "id" : "ajson2", "parent" : "#", "text" : "Root" }, ] } } );}); </script>
My json object sent to server side code:
<script type="text/javascript">
( function (){