在分析我的 Shopify 网站上产品的 html 是否有错误时,我发现这个奇怪的错误重复了 6 次:““图标”列表中的每个字典都应包含一个非空的 UTF8 字符串字段“类型”。”
我试图找出这个问题的根源,但谷歌并没有真正清楚地解决这个问题的根源,因为它把我带到了网站的第一个字符串“<!doctype html>”
任何人都可以帮我解决这个问题吗?
编辑:此处截图:i.imgur.com/y2gjnIr.png
要查看错误,如 JosefZ 所述:转到该站点,右键单击 => Inspect(或 Ctrl+Shift+I)。
这个网站上已经有一些答案,但无法弄清楚我需要什么。
使用此处给出的公认答案:How can I change text after time using jQuery?
但是,与其发出警报,我想让它重新加载到第一条消息(为清楚起见添加完整代码:
function nextMsg() {
if (messages.length == 0) {
// once there is no more message, I don't know how to start the script over (loop it)
} else {
$('#message').html(messages.pop()).fadeIn(500).delay(1000).fadeOut(500, nextMsg);
}
};
var messages = [
"Hello!",
"This is a website!",
"You are now going to be redirected.",
"Are you ready?",
"You're now being redirected..."
].reverse();
$('#message').hide();
nextMsg();Run Code Online (Sandbox Code Playgroud)
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
</head>
<body>
<h1>Hello world!</h1> …Run Code Online (Sandbox Code Playgroud)