Kendo ui Telerik Kendo Grid PHP在firefox中正常工作,但没有在chrome和ie中显示任何数据

Kendo ui Telerik Kendo Grid PHP在firefox中正常工作,但没有在chrome和ie中显示任何数据,kendo-ui,grid,Kendo Ui,Grid,我使用上述php代码通过以下代码从路由数据路径获取json数据到products.php: $transport = new \Kendo\Data\DataSourceTransport(); $read = new \Kendo\Data\DataSourceTransportRead(); $read->url('data') ->contentType('application/json') ->type('POST'); $transport ->re

我使用上述php代码通过以下代码从路由数据路径获取json数据到products.php:

$transport = new \Kendo\Data\DataSourceTransport();

$read = new \Kendo\Data\DataSourceTransportRead();

$read->url('data')
 ->contentType('application/json')
 ->type('POST');

$transport ->read($read)
      ->parameterMap('function(data) {
          return kendo.stringify(data);
      }');

在Firefox中,一切正常,网格显示json数据,但chrome和ie不显示任何数据


问题是什么?

问题是路由$read->url('data'))

我用 返回视图(“示例”); 在route中,这在firefox中有效,但在chrome中不起作用

事实是 返回响应()->视图('sample')

<?php

    $customers=DB::select('SELECT    Contactname,ContactTitle,CompanyName,Country FROM customers');
$count=DB::table('customers')->count();
header("Content-type: application/json; charset=utf-8");
echo "{\"total\":".$count.",\"data\":" .json_encode($customers)."}";

?>