雷鳴云轉(zhuǎn)音工具
雷鳴云轉(zhuǎn)音工具用于將中文轉(zhuǎn)為拼音,不依賴任何三方庫,幾KB原生js實(shí)現(xiàn),有良好的兼容性,不挑運(yùn)行環(huán)境。
使用方式
<script src="https://res.zvo.cn/pinyin/pinyin.js"></script> <script> var str = pinyin.convert('你好') alert(str); </script>
在線體驗(yàn)
https://res.zvo.cn/pinyin/demo.html
其他說明
起初為 WriteCode 自動(dòng)寫代碼 系統(tǒng)做的一個(gè)配套支持,實(shí)現(xiàn)也是網(wǎng)上找的,自己進(jìn)行了完善優(yōu)化,然后發(fā)現(xiàn)都整理好了,不發(fā)出來有點(diǎn)浪費(fèi),于是乎……
評(píng)論
圖片
表情
