问题描述
我将最新的Dojo和Dijit下载到了本地Windows 10计算机上。
I downloaded the latest Dojo and Dijit to my local Windows 10 computer.
我的磁盘结构是:
C:\webapps
c:\webapps\dojo
c:\webapps\demo
c:\webapps\dijit
我正在单击此文件以使用Chrome浏览器加载:
c:\webapps\demos\themePreviewer\demo.html
I'm clicking on this file to load with Chrome browser:c:\webapps\demos\themePreviewer\demo.html
它显示以下内容,并始终停留在正在加载...消息中。
It shows the following, and is stuck forever with the "Loading..." message.
在内部,我看到以下对CSS文件:
Internally, I see the following references to css files:
<link rel="stylesheet" href="../../dijit/themes/claro/document.css"/>
<link rel="stylesheet" href="../../dijit/themes/claro/claro.css"/>
我可以在磁盘上看到这些内容,这里:
I can see those on my disk, here:
c:\webapps\dijit\themes\claro\document.css
c:\webapps\dijit\themes\claro\claro.css
似乎在查找文件时遇到问题?但是Chrome调试程序不会告诉我吗?我还尝试将dijit目录复制到:
Seems like it's a problem finding the files? But wouldn't Chrome debug tell me that? I also tried copying the dijit directory to:
c:\webapps\demo\dijit
c:\webapps\demo\dijit
后来我注意到程序中有一个href:
href:'../../ dijit / tests / layout / getResponse.php?delay = 3000& messId = 3'
Later I noticed there is one href in the program:href:'../../dijit/tests/layout/getResponse.php?delay=3000&messId=3'
:
href:''
推荐答案
尝试从本地主机而不是file:///运行应用程序。
如果问题仍然存在,您可以对其进行更多调试,然后使用 Chrome开发者工具>网络标签查看是否缺少某些依赖项,这样,您应该可以识别任何404错误。
Try to run the app from a localhost instead of file:///.In case the problem persist, you could debug it more and see if some dependencies are missing using Chrome Developer Tools > Network tab, in this way you should be able to identify any 404 errors.
这篇关于Dojo themePreviewer卡住了“正在加载...”;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!