English 中文(简体)
如何正确纳入《公约》?
原标题:How to include dojo correctly?

I would like to included dojo files download to my machine, how to do so? I kept getting "dojo is not defined" in the Error Console and the webpage does not show up the same as the original. What am I missing out?

The original ones had these:

<script src="http://ajax.googleapis.com/ajax/libs/dojo/1.6/dojo/dojo.xd.js"
        djConfig="parseOnLoad: true"></script>
<script type="text/javascript">
        dojo.require("dojox.layout.FloatingPane");
        dojo.require("dijit.form.Button");
</script>

<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.6/dijit/themes/claro/claro.css"
        />
<style type="text/css">
        @import "http://ajax.googleapis.com/ajax/libs/dojo/1.6/dojox/layout/resources/FloatingPane.css";
        @import "http://ajax.googleapis.com/ajax/libs/dojo/1.6/dojox/layout/resources/ResizeHandle.css";
 </style>

我没有看到我下载的“多霍.xd.js”档案,因此我改变了这些档案:

<script src="C:/Users/Yeeen/Desktop/WebpageTest/js/src/dojo/dojo.js.uncompressed.js"
        djConfig="parseOnLoad: true"></script>
<script type="text/javascript">
        dojo.require("dojox.layout.FloatingPane");
        dojo.require("dijit.form.Button");
</script>

<link rel="stylesheet" type="text/css" href="C:/Users/Yeeen/Desktop/WebpageTest/js/src/dijit/themes/claro/claro.css"
        />
<style type="text/css">
        @import "C:/Users/Yeeen/Desktop/WebpageTest/js/src/dojox/layout/resources/FloatingPane.css";
        @import "C:/Users/Yeeen/Desktop/WebpageTest/js/src/dojox/layout/resources/ResizeHandle.css";
 </style>
最佳回答

我不相信这将直接解决你的问题,但你应尝试在你的机器中安装一个网络服务器,以便你能够点到<条码>http:// localhost/something。 而不是使用<代码>file:。 一些浏览器没有允许美国宇宙航空研究开发机构从file http://的原产地,并且可以宣布(并且可能夸大模块系统)。

关于眼前的问题,我并不肯定浏览器在地址中处理C:。 你们是否利用相对档案进行审判?

问题回答

暂无回答




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签