js end: // content after filtering cluster selection function check_jl_val (Top) { var jl_name the getCookie = ( ' jl_zdz ' ); var checkItem_jl_check = $ ( ' INPUT [type = CheckBox] [Data-Group = " ' + + jl_name ' "]: the checked ' ); // Get selected subjects // subject var jl_val = new new the Array (); // var jl_val =" "; $ .each (checkItem_jl_check, function () { IF ($ ( the this ) .val ()! = ' ON ') { // jl_val.push ($ (the this) .val ()); jl_val.push ( new new Object ($ ( the this ) .val ())); // jl_val + = $ (the this) .val () + ';'; } }); // filters write file IF (jl_val.length> 0 ) { var saveDataAry = []; var DATAl = {jl_val: jl_val, jl_name: jl_name}; saveDataAry.push (jl_val); .ajax $ ({ of the type: " POST " , // method url: "?h=generalTools&action=get_jlz_in_file" ,//表单接收url dataType:'json', // contentType:"application/json", data:{jsonarray:JSON.stringify(jl_val)}, success: function (result) { if(result['state']=='success'){ // window.location.reload();//页面刷新 } }, error : function(result) { // layer.alert ( "an acquisition failure"); } }); } // the setCookie ( 'jl_val_check', jl_val); } the PHP terminal: $ JSONArray = stripslashes ($ _ the POST [ ' JSONArray ' ]); $ Array = of json_decode ($ JSONArray, to true ); // use json_decode json string into the array print_r ($ array); die;