与元素类型 "script" 关联的属性 "src" 应使用左引号
Open quote is expected for attribute "src" associated with an element type "script"
萨姆这边,目前我正在处理我的网站代码。我想在站点中添加一个加载动画,但是在添加添加代码后它给了我一个奇怪的错误,其解决方案无法在任何地方找到
包含造成这种麻烦的行的代码`
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html>
<html b:css='false' b:defaultwidgetversion='2' b:layoutsVersion='3' b:responsive='true' b:templateUrl='fancy.xml' b:templateVersion='1.3.3' expr:dir='data:blog.languageDirection' expr:lang='data:blog.locale' xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>
<head>
<script src=<”//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js”><\/script>
<script type=”text/javascript”>
$(window).load(function() {
$(“.loader”).fadeOut(“slow”);
})
</script>
我在尝试保存主题时遇到的错误
org.xml.sax.SAXParseException; lineNumber: 6; columnNumber: 13; Open quote is expected for attribute "src" associated with an element type "script".
错误的屏幕截图:
我已经给了 link 因为我还不允许嵌入图片
如果您需要更多代码,请告诉我
请帮我解决这个问题,我们将不胜感激
提前致谢
编辑:
SEE THE SECOND IMAGE WHICH I TOOK AFTER EDIT THE CODE
将其更改为:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html>
<html b:css='false' b:defaultwidgetversion='2' b:layoutsVersion='3' b:responsive='true' b:templateUrl='fancy.xml' b:templateVersion='1.3.3' expr:dir='data:blog.languageDirection' expr:lang='data:blog.locale' xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>
<head>
<script src=//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js></script>
<script type="text/javascript">
$(window).load(function() {
$(".loader").fadeOut("slow");
})
</script>
你好像用错了双引号。
如错误所述与元素类型“script”相关联的属性“src”需要左引号。你应该改变 :
<script src=<”//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js”><\/script>
至:
<script src=”//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js”></script>
(去掉'='后的'<'字符,<\/script> to </script>
)
此外,您应该将”更改为“。
萨姆这边,目前我正在处理我的网站代码。我想在站点中添加一个加载动画,但是在添加添加代码后它给了我一个奇怪的错误,其解决方案无法在任何地方找到
包含造成这种麻烦的行的代码`
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html>
<html b:css='false' b:defaultwidgetversion='2' b:layoutsVersion='3' b:responsive='true' b:templateUrl='fancy.xml' b:templateVersion='1.3.3' expr:dir='data:blog.languageDirection' expr:lang='data:blog.locale' xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>
<head>
<script src=<”//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js”><\/script>
<script type=”text/javascript”>
$(window).load(function() {
$(“.loader”).fadeOut(“slow”);
})
</script>
我在尝试保存主题时遇到的错误
org.xml.sax.SAXParseException; lineNumber: 6; columnNumber: 13; Open quote is expected for attribute "src" associated with an element type "script".
错误的屏幕截图:
我已经给了 link 因为我还不允许嵌入图片
如果您需要更多代码,请告诉我
请帮我解决这个问题,我们将不胜感激
提前致谢
编辑:
SEE THE SECOND IMAGE WHICH I TOOK AFTER EDIT THE CODE
将其更改为:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html>
<html b:css='false' b:defaultwidgetversion='2' b:layoutsVersion='3' b:responsive='true' b:templateUrl='fancy.xml' b:templateVersion='1.3.3' expr:dir='data:blog.languageDirection' expr:lang='data:blog.locale' xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>
<head>
<script src=//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js></script>
<script type="text/javascript">
$(window).load(function() {
$(".loader").fadeOut("slow");
})
</script>
你好像用错了双引号。
如错误所述与元素类型“script”相关联的属性“src”需要左引号。你应该改变 :
<script src=<”//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js”><\/script>
至:
<script src=”//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js”></script>
(去掉'='后的'<'字符,<\/script> to </script>
)
此外,您应该将”更改为“。