且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Json对象从客户端jquery发送到服务器端

更新时间: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 (){