HTML
文章平均质量分 53
星月I随心
这个作者很懒,什么都没留下…
展开
-
vue项目中使用layui
背景项目是vue+element UI一、引入第1种方法:从www.layuiweb.com或https://gitee.com/sentsin/layui/tree/master/下载复制dist文件夹到项目的public目录下重命名为layui第2种方法:在项目中安装layui-src依赖yarn add layui-src | npm install layui-src在node_modules下找到layui-src下的build文件夹复制到项...原创 2022-03-30 14:09:59 · 13800 阅读 · 0 评论 -
神奇的H5语音合成
在网页端实现将指定的文字进行语音合成并进行播报。使用HTML5的Speech Synthesis API就能实现简单的语音合成效果。<input id="btn1" type="button" value="点我" onclick="test();" /><script> function test() { const sos = `阿尤!不错哦`; const synth = window.speechSynthesis; let msg =转载 2021-05-18 10:21:19 · 441 阅读 · 1 评论