- 博客(4)
- 收藏
- 关注
原创 推荐一款中文转拼音的前端插件-pinyin
写在前面 最近在项目中,需要使用中文转拼音的功能,在网上找到一款比较全面的js插件-pinyin.js使用方法1、安装npm i pinyin 或者 npm i js-pinyin2、使用方法// 引入拼音插件const PINYIN = require('pinyin');const chinese = "绿色";const pinyinSTYLE_NORMAL = PINYIN(chinese, { style: PINYIN.STYLE_NORMAL, }
2021-03-01 19:50:44
1943
2
原创 Ubuntu20下php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution
错误提示:SMTP ERROR: Failed to connect to server: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution (0)SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting邮件发送失败: SMTP connect() failed. https://
2021-02-05 00:59:32
1325
原创 idea控制台日志中文乱码问题解决
这两天打开Idea,发现Idea控制台的日志输出是乱码,但是输出到日志文件却不会,参考了网上的一些做法,但是最终还是无法解决乱码的问题,最后自己琢磨了一下,将采用的做法总结如下:1)修改Idea的vmoptions文件,点击Idea工具栏Help》Edit Custom VM Options,在文本末尾加上-Dfile.encoding=UTF-8为了心安,把-Dconsole.encoding=UTF-8也加上了2)设置Idea编码,点击File》Settings,或者快捷键Ctrl+Alt+S
2021-01-15 11:16:22
14879
5
原创 HTML 压缩库 HtmlCompressor
HTML 压缩库 HtmlCompressorHtmlCompressor 是一个 Java 类库,用来对 HTML 内容进行压缩。HtmlCompressor 会删除 HTML 中无用的空格、空行、注释等内容。示例代码:HtmlCompressor compressor = new HtmlCompressor();compressor.setEnabled(true); // 如果false,则关闭所有压缩(默认值为true)compressor.setR
2021-01-04 13:19:04
1390
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人