google chrome--Kein Access-Control-Allow-Origin-header vorhanden ist, auf die angeforderte Ressource

Ich versuche, erstellen Sie ein jquery-raster, das ruft Daten aus einer json-Datei.es tut gut in Firefox. aber funktioniert nicht auf Google chrome
ich Tue dies aus
trirand Beispiele

gebe ich den code, um json-Daten

jQuery("#rowed2").jqGrid({
    url:'datagrid_data.json',
    datatype: "json",
    colNames:['Inv No','Date', 'Client', 'Amount','Tax','Total','Notes'],
    colModel:[
        {name:'id',index:'id', width:55},
        {name:'invdate',index:'invdate', width:90},
        {name:'name',index:'name asc, invdate', width:100},
        {name:'amount',index:'amount', width:80, align:"right"},
        {name:'tax',index:'tax', width:80, align:"right"},      
        {name:'total',index:'total', width:80,align:"right"},       
        {name:'note',index:'note', width:150, sortable:false}       
    ],
    rowNum:10,
    rowList:[10,20,30],
    pager: '#prowed2',
    sortname: 'id',
    viewrecords: true,
    sortorder: "desc",
    caption:"JSON Example"
});
jQuery("#rowed2").jqGrid('navGrid','#prowed2',{edit:false,add:false,del:false});

InformationsquelleAutor ess | 2014-01-24

Schreibe einen Kommentar