只在IE下显示,谷歌和搜狗猎豹等都不显示?
是不是浏览器配置问题还是代码问题
连demo都是不显示的 求大神解答
不会的,注意看看easyui的版本,我这里的一个例子在ie以及chrome都试过,没有问题。http://blog.csdn.net/chinacsharper/article/details/39523053
谷歌浏览器不显示的原因是:
chrome通过file协议浏览html代码时,发送的ajax请求本地文件,会报跨域错误
XMLHttpRequest cannot load file:///D:/cary/jquery-easyui-1.4/demo/datagrid/datagrid_data2.json. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.
解决办法是给chrome添加启动参数:--allow-file-access-from-files ,这样本地ajax请求就不会报跨域错误了。