我将最新的Dojo和Dijit下载到了本地的Windows 10计算机上。
我的磁盘结构是:
C:\webapps
c:\webapps\dojo
c:\webapps\demo
c:\webapps\dijit
c: \webapps\demos\themePreviewer\demo.html
它显示了以下内容,并且永远停留在“正在加载…”消息中。
在内部,我看到以下对css文件的引用:
<link rel="stylesheet" href="../../dijit/themes/claro/document.css"/>
<link rel="stylesheet" href="../../dijit/themes/claro/claro.css"/>
我可以在我的磁盘上看到这些,在这里:
c:\webapps\dijit\themes\claro\document.css
c:\webapps\dijit\themes\claro\claro.css
看起来找文件有问题?但是Chrome调试不会告诉我吗?我还尝试将dijit目录复制到:
c: \webapps\demo\dijit
后来我注意到程序中有一个href:
href:'../../dijit/tests/layout/getResponse.php?延迟=3000&梅西德=3'
http://demos.dojotoolkit.org/dijit/tests/layout/getResponse.php?delay=3000&messId=3
'