how to

valine-blog-comment

Jan 15, 2024
website
1 Minutes
74 Words

leancloud 注册账号创建应用,把域名填入安全域名。 valine 提供的 js 放入 <head> 把 leancloud 上的 appid 和 appkey 放入 html body 中的

1
<div id="vcomments"></div>
2
<script>
3
new Valine({
4
el: '#vcomments',
5
appId: 'Jx6fTElQS3cweoHbEj8wyWLt-gzGzoHsz',
6
appKey: '0LI9g0Hq8L8ShGBdxlnPZjdb'
7
})
8
</script>
  • 调节它的位置和 css。
  • new Valine 中加入 meta: ['nick'] 可以只显示名字框。
Article title:valine-blog-comment
Article author:Julyfun
Release time:Jan 15, 2024
Copyright 2025
Sitemap