dojo 1.91 html文件放到其它子目录里再调用.././dojo.js火狐3就报错 NS_ERROR_DOM_BAD_URI IE正常 为什么
火狐下面报错“[Exception..."AccesstorestrictedURIdenied"code:"1012"nsresult:"0x805303f4(NS_E...
火狐下面报错
“[Exception...
"Access to restricted URI denied" code: "1012" nsresult: "0x805303f4
(NS_ERROR_DOM_BAD_URI)" location:
"file:///E:/William/JS/Dojo/DOJO-OBJ/dojo/dojo/request/xhr.js Line:
206"] { constructor=DOMException, code=1012, INDEX_SIZE_ERR=1, 更多...} (空字符串)”
ie正常
源码:
<html>
<head>
<style type="text/css">
@import url("../dojo/dijit/themes/claro/claro.css");
* {
outline: none !important;
}
body {
font-family: Lucida Sans,Lucida Grande,Arial !important;
font-size: 13px !important;
background: white;
color: #333;
}
body,div,ul,li,dl,dt,dd,h1,h2,h3,h4,h5,h6,p,pre { margin:0px; padding:0px; list-style-type:none;}
#dialog { }
.dijitDialogPaneContent {}
</style>
<title>弹窗-并显示系统配置信息</title>
<script src="../dojo/dojo/dojo.js" data-dojo-config="has:{'dojo-debugging-messages':true}, async: 1, isDebug: 1,baseUrl:'../dojo/dojo/'"></script>
<script>
require(["dijit/registry", "dojo/parser", "dojo/json", "dojo/_base/config", "dijit/Dialog", "dojo/domReady!"]
, function(registry, parser, JSON, config) {
parser.parse();
var dialog = registry.byId("dialog");
dialog.set("content", "<pre>" + JSON.stringify(config, null, "\t") + "</pre>");
dialog.show();
});
</script>
</head>
<body class="claro">
<div id="dialog" data-dojo-type="dijit/Dialog" data-dojo-props="title:2222"></div>
</body>
</html>
问题已自己解决!谢谢! 展开
“[Exception...
"Access to restricted URI denied" code: "1012" nsresult: "0x805303f4
(NS_ERROR_DOM_BAD_URI)" location:
"file:///E:/William/JS/Dojo/DOJO-OBJ/dojo/dojo/request/xhr.js Line:
206"] { constructor=DOMException, code=1012, INDEX_SIZE_ERR=1, 更多...} (空字符串)”
ie正常
源码:
<html>
<head>
<style type="text/css">
@import url("../dojo/dijit/themes/claro/claro.css");
* {
outline: none !important;
}
body {
font-family: Lucida Sans,Lucida Grande,Arial !important;
font-size: 13px !important;
background: white;
color: #333;
}
body,div,ul,li,dl,dt,dd,h1,h2,h3,h4,h5,h6,p,pre { margin:0px; padding:0px; list-style-type:none;}
#dialog { }
.dijitDialogPaneContent {}
</style>
<title>弹窗-并显示系统配置信息</title>
<script src="../dojo/dojo/dojo.js" data-dojo-config="has:{'dojo-debugging-messages':true}, async: 1, isDebug: 1,baseUrl:'../dojo/dojo/'"></script>
<script>
require(["dijit/registry", "dojo/parser", "dojo/json", "dojo/_base/config", "dijit/Dialog", "dojo/domReady!"]
, function(registry, parser, JSON, config) {
parser.parse();
var dialog = registry.byId("dialog");
dialog.set("content", "<pre>" + JSON.stringify(config, null, "\t") + "</pre>");
dialog.show();
});
</script>
</head>
<body class="claro">
<div id="dialog" data-dojo-type="dijit/Dialog" data-dojo-props="title:2222"></div>
</body>
</html>
问题已自己解决!谢谢! 展开
1个回答
展开全部
尊敬的用户,您好!很高兴为您答疑。
据错误提示来看,这应该是您引用路径存在问题,或者您的服务器进程没有权限读写您所设置的路径所致。
希望我的回答对您有所帮助,如有疑问,欢迎继续咨询我们。
据错误提示来看,这应该是您引用路径存在问题,或者您的服务器进程没有权限读写您所设置的路径所致。
希望我的回答对您有所帮助,如有疑问,欢迎继续咨询我们。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询