通用评论

12345678910111213141516171819202122232425
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <title>通用评论 demo</title>
  7. <meta name="viewport" content="width=device-width, initial-scale=1">
  8. <link rel="stylesheet" type="text/css" media="screen" href="./static/css/comment.0.5.13.css" />
  9. </head>
  10. <body>
  11. <div>
  12. <h1>在非 React.js 项目中使用通用评论</h1>
  13. <p>将其渲染到 id 为 `comment` 的节点上</p>
  14. <div id="comment"></div>
  15. </div>
  16. <script type="text/javascript" src="./static/js/comment.0.5.13.js"></script>
  17. <script type="text/javascript">
  18. window.renderComment({
  19. id: 'comment',
  20. type: 1,
  21. businessId: 'test'
  22. })
  23. </script>
  24. </body>
  25. </html>