jQuery AJAX JSON响应返回关键字“d” [英] jQuery AJAX JSON response returns key "d"
问题描述
当我制作一个jQuery AJAX JSON请求时,它会以d属性响应。
为什么会这样?
这里有一篇关于它的好文章 http://encosia.com/2009/06/29/never-worry-about-asp-net-ajaxs-d-again/
d什么?如果您对我所指的.d不熟悉,它
只是Microsoft在ASP.NET 3.5的
版本的ASP.NET AJAX中添加的一项安全功能。通过将JSON响应封装在
父对象中,该框架有助于防止出现特别的
讨厌的XSS漏洞。
When I make a jQuery AJAX JSON request, it responds with a "d" attribute.
Why is this?
here a good article about it http://encosia.com/2009/06/29/never-worry-about-asp-net-ajaxs-d-again/
".d" what? If you aren’t familiar with the ".d" I’m referring to, it is simply a security feature that Microsoft added in ASP.NET 3.5’s version of ASP.NET AJAX. By encapsulating the JSON response within a parent object, the framework helps protect against a particularly nasty XSS vulnerability.
这篇关于jQuery AJAX JSON响应返回关键字“d”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!