1、如果不用 JSON.stringify(inputJson) 包起来就会报错
let inputJson = {"selectUid" : selectUid}; var response = await $.ajax({ type: 'POST', url: 'xxx', data: inputJson, //正确的是JSON.stringify(inputJson) contentType: "application/json;charset=UTF-8", dataType: "json", })
标签:code,syntax,JSON,报错,error,inputJson From: https://www.cnblogs.com/wwssgg/p/17578083.html