$.ajax Pass the JSON data to the background, there will always be some errors, this article sorted out some considerations, interested friends can refer to the following
The code is as follows: $.ajax ({url: "...) /services.ashx ", type:" POST ",//data: {' data ': {' typename ': Json.stringify (TypeName)}, ' Operationtype ': ' 2 '}, data : {' data ': TypeName, ' Operationtype ': ' 2 ', ' nowheight ': nowheight, ' Nowarea ': Nowarea}, Success:function (msg) {}}) J s code as above, when the value in the ' key '-' value ' pair in data is null (undefined), when the request is sent, the value of the key value null is not uploaded to the background, 1, through the F12 can see the value of NULL key value pairs do not pass. 2, in the background to use the context. request.form["Name", found that the value is null, if it is obtained, it will also error.