您的位置:首页 > Web前端 > JQuery

.net使用jquery easyui的datagrid无法显示本地.json文件中的数据

2012-09-14 19:13 976 查看
代码很简单,就是模仿easyui官网上的例子在asp.net中实现,然而在用html中数据显示正常,移植到.net中,数据无法显示,代码如下:

<table id="tt" class="easyui-datagrid" style="width:700px;height:350px"
data-options="url:'datagrid_data.json',fitColumns:true,singleSelect:true"
title="数据"
rownumbers="true" pagination = "true">
<thead>
<tr>
<th data-options="field:'code',width:100">代码</th>
<th data-options="field:'name',width:100">名字</th>
<th data-options="field:'col4',width:100">其他</th>
</tr>
</thead>
</table>


在百度上查找不到相关解决方法,最终在google上找到类似的问题,最终将json文件扩展名改成.aspx就可以读取了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐