什么是.D的JSON是什么意思? [英] What does .d in JSON mean?

查看:203
本文介绍了什么是.D的JSON是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我从jQuery的称为.NET的WebMethod。该方法返回一些我展示一个DIV元素中的HTML标记。

I have a .NET webmethod that I have called from jQuery. The method returns some HTML markup that I display within a DIV element.

在我有我使用响应

$("#div").html(result.d);

我的问题是,什么是.D吗?我不喜欢用code,我不完全理解?使用eval我能得到相同的结果?

My question is, what does the .d do? I don't like using code I don't fully understand? Could I get the same result using Eval?

推荐答案

您指的是ADO.NET数据服务?

Are you referring to the ADO.NET Data Services?

我记得听到有关JSON一个presentation返回这一点,我认为它只是一个包装为确保有效载荷是JSON对象,而不是一个数组(这是回归的情况下,多个实体)。

I remember hearing a presentation about the JSON returning this and I think its just a wrapper to ensure the payload is a JSON object as opposed to an array (which is the case of returning multiple entities).

为什么'D'具体一点吗?我想,我记得他们说像'以及它必须要的东西。

Why 'd' specifically? I think I remember them saying something like 'well it had to be something'.

这篇关于什么是.D的JSON是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆