javascript - 加载资源失败:服务器在向我的网站添加 google+ 评论时响应状态为 404 ()
问题描述
这是带有代码的链接。 在此处输入图像描述 https://dogemap.com/comments.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Document</title>
</head>
<body>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Sequi expedita
quod excepturi, nostrum laudantium nihil, voluptate placeat sed aspernatur
quisquam sunt accusantium debitis mollitia quibusdam hic, eveniet quidem
voluptates corrupti.
</p>
<hr />
<script src="https://apis.google.com/js/plusone.js"></script>
<div id="comments"></div>
<script>
console.log("web page url:" + window.location);
gapi.comments.render("comments", {
href: window.location,
width: "624",
first_party_property: "BLOGGER",
view_type: "FILTERED_POSTMOD"
});
</script>
<hr />
</body>
</html>
通过以下链接显示以下错误
解决方案
Plus API,包括不受支持的用于向网站添加评论的 API,已停止使用,没有替代品。
您不能将“Google+ 评论”添加到网站。
推荐阅读
- swift - 如何使用搜索栏从 SwiftUI 视图调用完成块?
- qpython - pip安装太慢了
- java - 我的闪屏视频一直在后台播放
- python - Tkinter - 变量跟踪 un 类
- javascript - 如何在 springy.js 代码中包含 iframe?
- r - 比较当前 i 的子集列和 R for 循环中下一个 i 的子集列
- r - 在 R 中的图表中插入三条水平线
- reactjs - 如何从 React 导航中的深层链接的 URI 方案中获取参数?
- arduino - 如何修复 Arduino IDE 中 ESP32 的编译错误?
- hash - 如何将字节转换为 UTF8?