Opengist Logo 清羽飞扬の代码片段

Explore

  • All gists
  • Topics
  • Users
个人主页 站长博客
Give feedback on the new UI Powered by Opengist ⋅ 18ms

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Login Register
e

ech0

Recently created Least recently created Recently updated Least recently updated
LiuShen

LiuShen / ech0说说展示到前端网站

Last active 2 months ago ech0 hexo javascript shuoshuo

将ech0说说展示到前端网站页面

0 0 2
1 const goComment = (e) => {
2 const n = document.querySelector(".el-textarea__inner");
3 n.value = `> ${e}\n\n`;
4 n.focus();
5 btf.snackbarShow("已为您引用该说说,不删除空格效果更佳");
6 };
7
8 // 如果是twikoo评论区,请自行替换goComment函数,注意,如果评论区开了懒加载可能导致无法找到元素。