通用一键复制代码的方法
最近想给博客主题增加一个一键复制代码的功能,结果发现highlight.js并不支持一键复制,这就非常的可惜啊。
于是百度了下,找到一个不错的例子,根据其例子我自己写了一个通用的方式。
效果图
安装
此处内容已隐藏回复后方可阅读。
版权申明
本文系作者 @tj1587825300 原创发布在Hello World站点。未经许可,禁止转载。
最新文章
Nestjs CORS配置和生产环境处理
1点赞
·
0评论
Debian12 SSH连接报错:Error Handshake failed no matching host key format
0点赞
·
0评论
Prisma 使用MongoDB创建数据时报错:Prisma needs to perform transactions, which requires your MongoDB server to be run as a replica set.
0点赞
·
0评论
Prisma 初始化MongoDB数据库下载报错reason unable to verify the first certificate解决方案
0点赞
·
0评论
Nuxt3 useFetch和$fetch的探讨以及封装请求处理
0点赞
·
3评论
全部评论 44
ll
Google Chrome Windows 7江里
Google Chrome Windows 10Tlyer
Google Chrome Windows 10chrome
UC Browser Android清酒踏月
Google Chrome Android1
Google Chrome Windows 10kok
Google Chrome Windows 7kok
Google Chrome Android我相信
Google Chrome Linux嗯嗯
Google Chrome Windows 10