大家好!
本人dojo初学者,要用dojo做个表格显示数据,代码通过招资料很快就写好了,但是就是跑不通!在ie7上就是报对象不支持此属性或方法!也看了很多的帖子,类似的问题也有人提过,但是始终没有个正确的答案,特此求教!!!望哥哥们帮帮忙看一下!小弟不胜感激!!!
[code=HTM][/code]
<%@ page language="java" contentType="text/html; charset=GB18030"
pageEncoding="GB18030"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Dojo:Table</title>
<style type="text/css">
     @import "dojoroot/dojox/grid/_grid/Grid.css";
     @import "dojoroot/dijit/themes/tundra/tundra.css";
     @import "dojoroot/dojo/resources/dojo.css";
     @import "dojoroot/jojox/grid/_grid/tundraGrid.css";
    </style>
<script type="text/javascript" src="dojoroot/dojo/dojo.js"
djConfig="parseOnLoad:true">
    </script>
<script type="text/javascript">
     dojo.require("dojo.data.ItemFileReadStore");
        dojo.require("dojox.grid.DataGrid");
    </script> <title>PetList</title>
</head>
<body class="tundra">
<script type="text/javascript">
var dataStore = {"petId":"1","age":"12","name":"king","owner":"john"};
</script>
<table dojoType="dojox.grid.DataGrid" store="dataStore"
query="{petId:'*'}" clientSort="true">
<thead>
<tr>
<th field="name" >PetName</th>
<th field="age" >PetAge</th>
<th field="owner" >PetOwner</th>
</tr>
</thead>
</table>
</body>
</html>