weixin_33692284 2013-11-06 08:43 采纳率: 0%
浏览 38

在我的Web服务器上加载dojo.js

refer to the http://dojotoolkit.org/documentation/tutorials/1.9/hello_dojo/demo/slideInGreeting.php
it is totally working fine.

The I copy the html and try to run it on my local apache.
it also working!

But when I try to load the same dojo.js on my web server, it won't work...!!?
(load the dojo.js on my localhost web server, instead of ajax.googleapis.com)
Here is my file structure, html and errors.
enter image description here

enter image description here

  • 写回答

1条回答 默认 最新

  • YaoRaoLov 2013-11-06 09:37
    关注

    Oh, Finally I got it myself.
    The dojo.js is only the base, if I use other module of dojo I have to add it on my need.

    So I need to download all the dojo modules from:
    http://dojotoolkit.org/download/

    download the zip file --> Release:tar.gz (7.9MB)zip (12MB)

    unzip it , then I can find all the files, include fx.js.
    enter image description here

    Finally , it working on my server now!

    评论

报告相同问题?