1
Dojo 파일을 내 컴퓨터에 다운로드하는 방법을 포함시키고 싶습니다. 어떻게해야합니까? 오류 콘솔에 "dojo is not defined"가 표시되고 웹 페이지가 원본과 동일하게 표시되지 않습니다. 나는 무엇을 놓치고 있습니까?dojo를 올바르게 포함하는 방법은 무엇입니까?
원래 사람이 있었다 :
<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>
내 다운로드 도장 폴더에있는 "dojo.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>
"웹 서버 사용"및 no-XHR-from-file : // tip에 +1했습니다. Dojo를 다운로드하려고 시도하는 많은 사람들이 이렇게 해킹합니다. –
내가보기에 ... – yeeen