dijo-json语言(javascript对象标记法)

json就是散列字面量,不过有更加严格的限制

1、冒号左边必须带引号

      如:"wishListItem":{

"wishID":4655

}

2、可以出现在右侧的值只有 单引号和双引号括住的字符串、true\false、数值、null, 表达式和变量名不允许出现


示例

[
{
"term":"BACKCHUS",
"part":"n.",
"definition":"A convinient deity invented by the ancients as an excuse for getting drunk.",
"quote":[
"Is public worship,then,a sin",
"that for devotions paid to Bacchus"
],
"author":"Jorace"
},
{
"term":"BACKBITE",
"part":"v.t.",
"definition":"To speak of a man as you find him when he can't find you .",
"author":"sss"
},
{
"term":"BEARD",
"part":"n.",
"definition":"the hair"
}
]


dojo中用json示例


接下来我们将这个数组传入  dojo.data.ItemFileReadStore,该驱动有如下限制

identifier(ID)

items(数据本身)


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值