layui文字转语音提示桌面通知效果代码
代码语言:html
所属分类:其他
代码描述:layui文字转语音提示桌面通知效果代码,结合soundNotify插件实现
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!doctype html> <html lang="zh"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/js/layui/css/layui.css"> </head> <body> <div style="height:100vh;display: flex;align-items: center;justify-content: center;"> <button class="layui-btn layui-btn-primary" id="sound">(人间一场烟火 你曾盛开过) 文字转语音</button> <button class="layui-btn layui-btn-warm" id="audio">音频播报</button> <button class="layui-btn layui-btn-normal" id="notify">桌面通知</button> </div> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/layui/layui.all.js"></script> <script> layui.config({ base: '//repo.bfw.wiki/bfwrepo/js/layui/module/', }).use(['soundNotify', 'jquery'], function() { var soundNotify = layui.soundNotify, $ = la.........完整代码请登录后点击上方下载按钮下载查看
网友评论0