Home >Web Front-end >JS Tutorial >dojo notes gird component reference_dojo

dojo notes gird component reference_dojo

WBOY
WBOYOriginal
2016-05-16 18:10:271116browse

I created a file with the code of found online:

Copy the code The code is as follows:

"http://www.w3.org/TR/html4/loose.dtd" >




Justa Cigar Wish List


<script> <br>dojo.require("dojo.parser"); <br>dojo.require("dojo.data .ItemFileReadStore"); <br>dojo.require("dojox.grid.Grid"); <br></script>



Justa Cigar Corporation


"Sometimes a cigar is a Justa Cigar!"


jsId="wishStore" url="services/cigar_wish_list.json ">

query="{ wishId: '*' }" clientSort="true">









Cigar Length/Ring Origin Wrapper Shape




The page that comes out at this time has no effect. Open firebug and take a look: dojox.grid.Grid 404 not Found!!

What is going on? I opened the dojoroot/dojox/grid/ directory and found no Grid.js file, only _Grid.js

dojo notes gird component reference_dojo

So I changed dojox.grid.Grid to dojox.grid._Grid. This time I didn’t say I couldn’t find it, but another inexplicable problem occurred

dojo notes gird component reference_dojo

Is there something wrong with the dojo I downloaded? 1.5 from the official website. Later, I thought about it. As a popular library, dojo’s calls should not be as strange as dojox.grid._Grid. Then I found that there is compatGrid.tar.gz in the grid directory. package (shown in the screenshot of the document directory above), grid.js was found in it, and it was decisively extracted to the current directory. Try it again and it works!!!

dojo notes gird component reference_dojo

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn