客户端代码:
var store = new Ext.data.JsonStore({
autoLoad: false,
proxy: new Ext.data.HttpProxy({
url: 'http://localhost:82/WebService/news.asmx/Getnews',
headers: { 'Content-type': 'application/json' },
method: 'GET'
}),
totalProperty: 'totalProperty',
root: 'root',
fields: ['smt_id', 'smt_title']
});
服务端用的是WebService:
返回的数据:
{"d":"{root:[{smt_title:公司获“履行社会责任贡献突出奖”,smt_id:1142},
{smt_title:使命引领 持续发展,smt_id:1140},
{smt_title:南
方李锦记积极参与“中医中药中国行”活动中华中医药养生文化高峰论坛举办,smt_id:1139},{smt_title:春季特惠活动,smt_id:1138},
{smt_title:这样的手指能接吗?,smt_id
:1136},
{smt_title:区骨科医院实施首例足拇趾末节移植再造手拇指术,smt_id:1135},
{smt_title:免费索取巧虎网《乐智小天地》VCD,smt_id:1134},
{smt_title
:如何训练出好老公?,smt_id:1133},
{smt_title:丢丢宠物,smt_id:1132},
{smt_title:白宫官员说美国可能向土耳
其提供情报,smt_id:1130}],
totalProperty:157}"}
但是结果不显示数据,
totalProperty: 'totalProperty',
root: 'root', 这里该如何处理?