0

jsonp をクライアント バックボーン スクリプトで動作させるのに問題があり、pagenator は gettgin 無効なキー エラーを保持します。

たとえば、SyntaxError: 無効なラベル、私は mvc4 Web API サービスを作成しました。これは、それが返すものです。正しいように見えますか? また、jsonp をサポートするために API に追加する必要があるものはありますか?

   {
      "odata.metadata":"http://test.test.uk/api/odata/$metadata#lnews","value":[
        {
          "ID":1,"title":"This is a test news artical","mainContent":"<p>\r\n\tthis is a test article</p>\r\n","featured":1,"visiblehomepage":1,"thedatetime":"2013-08-05T10:36:05.98","expireon":"2013-08-15T00:00:00","category":17,"embargo":null,"embargotime":"PT0S","embargodate":null,"customthumbnail":null,"news_layout":3,"LNBE":0,"LNBN":0,"LNBS":0,"LNBW":0,"LNWV":0,"LNWS":1,"LNDY":0,"LNSW":0,"LNSH":0,"LNCV":0
        },{
          "ID":2,"title":"This is a test article","mainContent":"<p>\r\n\twelcome to the best site in the world</p>\r\n","featured":1,"homepage":1,"thedatetime":"2013-08-05T10:42:54.763","expireon":"2013-08-22T00:00:00","category":null,"embargo":null,"embargotime":"PT0S","embargodate":null,"customthumbnail":"Water lilies.jpg","news_layout":4,"LNBE":1,"LNBN":1,"LNBS":1,"ff":1,"LNWV":1,"LNWS":1,"LNDY":1,"LNSW":1,"LNSH":1,"LNCV":1
        }
      ]
    }
4

1 に答える 1