介绍
在网站功能设置中,放置第三方评论代码,来帮助文档增加评论功能,第三方评论代码中如果需要填写文章ID,可以用“{id}”参数,程序默认支持了【来必力】评论系统,其他评论系统需要再填写重载函数
畅言重载函数
if(document.querySelector("#SOHUCS")){
window.changyan = undefined;window.cyan = undefined;
const s = document.createElement('script');
s.src = "https://cy-cdn.kuaizhan.com/upload/changyan.js";
s.onload = () => {
window.changyan.api.config({
appid: "你的appid:",
conf: "你的conf"
});
};
document.head.appendChild(s);
}