アスカ

Results 2 comments of アスカ

用扩展的方法写了个: ```javascript function wordCount(markdown) { // 匹配中文和标点符号 const pattern = /[\u4e00-\u9fa5]|[\u3001\u3002\uff01\uff0c\uff1b\uff1a\u201c\u201d\u2018\u2019\u300a\u300b\u3008\u3009\u3010\u3011\u300e\u300f\u300c\u300d\uff08\uff09\u2014\u2026\u2013\uff0e]/g // 统计字符数量,排除换行和空格 const characters = markdown.replace(/\n|\s/g, '').length; // 统计中文和标点符号 const chineseWords = (markdown.match(pattern) || []).length; // 统计英文单词 const englishWords...

由于CSP的原因,部分网站在浏览器内对iframe不支持(如github),在client里倒是可以。而且直接hover预览容易误触,换成hover显示“复制,跳转,iframe显示”是否更好?