2


私のデータグリッドでは、 tornadoサーバーを使用して json にダンプされたデータベースから読み取りました
{"total": 0, "rows": "[]"}

   transport: {
      read: {
        url: '/api/notes/',
        dataType: 'json',
        type: 'GET',
      },


      parameterMap: function(options, operation) {
        var map = {};
        if (operation == 'read') {
            map.page = options.page;
            map.rows = options.take;
            map.sort = options.sort;
            if (map.sort) {
              map.sort = map.sort[0];
              if (map.sort) {
                var t = map.sort;
                map.sort = t.field;
                map.order = t.dir;
              }
            }

ページの読み込み時に Uncaught ReferenceError: uid is not defined が表示される

クロムダンプ:

Uncaught ReferenceError: uid is not defined
(anonymous function)
h.extend._rowsHtmlkendo.web.min.js:10
h.extend.refreshkendo.web.min.js:10
e.extend.proxy.gjquery.min.js:2
B.extend.triggerkendo.web.min.js:10
o.extend._processkendo.web.min.js:10
o.extend.successkendo.web.min.js:10
e.extend.proxy.gjquery.min.js:2
p.extend.read.c.successkendo.web.min.js:10
f.Callbacks.njquery.min.js:2
f.Callbacks.o.fireWithjquery.min.js:2
wjquery.min.js:4
f.support.ajax.f.ajaxTransport.send.djquery.min.js:4
4

2 に答える 2

2

データ ソースのスキーマを設定してみてください。

schema: {
  total: "total",
  data: "rows"
}
于 2012-12-23T21:20:43.917 に答える
0

問題は、解析されていないjsonをクライアントに供給したこと
でした

于 2012-12-24T13:13:26.173 に答える