posts/giscus/ #5
Replies: 3 comments 4 replies
-
天哪,你用这个怎么用这么艰难,直接在giscus官网上生成这些参数啊。 |
Beta Was this translation helpful? Give feedback.
3 replies
-
<script type="text/javascript">
//通过id属性查找标签节点
var user=document.getElementById('user');
var lang=document.getElementById('lang');
//通过id属性查找提交评价按钮并绑定点击事件
document.getElementById('btn').onclick=function(){
//在html代码中创建一个div盒子
var cont=document.createElement('div');
//将获取到的数据,放到一创建好的盒子中
cont.innerHTML=' '+user.value+':'+lang.value+' '; //将创建好的div盒子及及内容显示在页面中 document.getElementById('div1').appendChild(cont); user.value=''; lang.value=''; } </script> |
Beta Was this translation helpful? Give feedback.
0 replies
-
好像 mermaid 不支持? flowchart LR
A --> B
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
posts/giscus/
在我最早大二搭建博客的时候,就有尝试过第三方的评论系统。我记得当时用的是Hexo的Next主题,这个主题好像是支持一些常见的评论系统的快速配置的。记得当时尝试过的有Disqus和LiveRe两种评论系统。这两个评论系统的特点是网站的所有者需要在这两个网站上注册一个账号,并且在网站内加入一个标识值。也就是说,评论的信息其实还是在这两个公司的服务器中,或者说,是这两个公司对评论数据是直接保管的。当时来看只是为了方便,所以配置了这两项。如果我没记错的话,最后选择的是LiveRe。
https://www.michaeltan.org/posts/giscus/
Beta Was this translation helpful? Give feedback.
All reactions