<script src="<% = rPath1 %>" type="text/javascript"></script>
<script src="<% =rPath2 %>" type="text/javascript"></script>
<link href="<%= rPath3 %>" rel="stylesheet" type="text/css"/>
<script type="text/javascript" charset="utf-8" > $(function($)
{
$('#picker').farbtastic('#color');
});///用以上代码可以实现Js
但是报错误错误:
1. uncaught exception: [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIDOMParser.parseFromString]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: http://localhost:1655/dnn480/js/dnn.xml.js :: anonymous :: line 63" data: no]
2.
错误: container is undefined
源文件:http://localhost:1655/dnn480/DesktopModules/AllDnn.RamdonBackground/AllDnn.RamdonBackground/farbtastic.js
行:27请问怎么解决
我用低二种方案来除掉Jquery 的$被从用
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<script src="<% = rPath1 %>" type="text/javascript"></script>
<script src="<% =rPath2 %>" type="text/javascript"></script>
<link href="<%= rPath3 %>" rel="stylesheet" type="text/css"/>
<script type="text/javascript" charset="utf-8" >
var $j=jQuery.noConflict();
$j(document).ready(function($)
{
var f=$.farbtastic('#picker');
f.linkTo(this);
f.farbtastic('#color');
});
错误: $(container) is null
源文件:http://localhost:1655/dnn480/DesktopModules/AllDnn.RamdonBackground/AllDnn.RamdonBackground/farbtastic.js
行:26
请高手帮忙解决
<script src="<% =rPath2 %>" type="text/javascript"></script>
<link href="<%= rPath3 %>" rel="stylesheet" type="text/css"/>
<script type="text/javascript" charset="utf-8" > $(function($)
{
$('#picker').farbtastic('#color');
});///用以上代码可以实现Js
但是报错误错误:
1. uncaught exception: [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIDOMParser.parseFromString]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: http://localhost:1655/dnn480/js/dnn.xml.js :: anonymous :: line 63" data: no]
2.
错误: container is undefined
源文件:http://localhost:1655/dnn480/DesktopModules/AllDnn.RamdonBackground/AllDnn.RamdonBackground/farbtastic.js
行:27请问怎么解决
我用低二种方案来除掉Jquery 的$被从用
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<script src="<% = rPath1 %>" type="text/javascript"></script>
<script src="<% =rPath2 %>" type="text/javascript"></script>
<link href="<%= rPath3 %>" rel="stylesheet" type="text/css"/>
<script type="text/javascript" charset="utf-8" >
var $j=jQuery.noConflict();
$j(document).ready(function($)
{
var f=$.farbtastic('#picker');
f.linkTo(this);
f.farbtastic('#color');
});
错误: $(container) is null
源文件:http://localhost:1655/dnn480/DesktopModules/AllDnn.RamdonBackground/AllDnn.RamdonBackground/farbtastic.js
行:26
请高手帮忙解决
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货