01 2025 档案

摘要:如Copy to Clipboard Button所述,我们可以配置注册一个复制到剪贴板的按钮。 那么,如果之后我们想禁用它该怎么做呢? 这里要用到的就是data-toolbar-order,如其章节所言,它可以控制已经注册的按钮的序列。 同时,没有在其中出现的button项,则不会显示,换言之,这 阅读全文
posted @ 2025-01-21 16:19 彼时今日 阅读(7) 评论(0) 推荐(0) 编辑
摘要:Copy to Clipboard Button 属于插件内容,其依赖于toolbar 问题1:复制按钮不加载 在How to use中所述内容值得注意: The plugin depends on the Prism Toolbar plugin. In addition to including 阅读全文
posted @ 2025-01-21 16:18 彼时今日 阅读(24) 评论(0) 推荐(0) 编辑
摘要:判断里面赋值就OK啦 var ss = "hi go oh" const reg = /\w{2}/g const ii = ss.matchAll(reg) while (_ = ii.next()) { if (_.done) break console.log(_.value, _.done) 阅读全文
posted @ 2025-01-21 16:18 彼时今日 阅读(5) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示