
js
privateobject
is null
展开
-
play() failed because the user didn‘t interact with the document first
使用js调用音频文件报错,错误信息如下:play() failed because the user didn’t interact with the document first翻译:play方法调用失败,因为用户没有先操作文档【用户没有先去跟网页做交互再执行音频播放】用户再跟网页有了交互后,该报错不会再出现参考:链接内的评论解决方案解决方式:muted=“muted” 在标签上添加<video muted="muted"></video>...原创 2021-08-30 19:30:12 · 39212 阅读 · 0 评论 -
js 去掉字符串前后缀的多个0
js 去掉、替换 字符串 前后 重复 字符```'0012300123000'.replace(/\b(0+)/gi,"")"12300123000"'0012300123000'.replace(/(0+)\b/gi,"")"0012300123"```原创 2021-06-02 08:24:52 · 2086 阅读 · 0 评论 -
layui 自定义 模块 hello
这里写自定义目录标题layui 自定义模块hello参考链接截图源码效果layui 自定义模块hello参考链接layui封装模块小白教程版本layui-v2.5.7截图源码hello.js/** layui-v2.5.7 自定义模块 */layui.define(['jquery','layer'],function(exports){ //使用内置模块 var $ = layui.jquery,layer = layui.layer; //自定义模块的对象 var obj原创 2021-01-01 17:12:24 · 378 阅读 · 2 评论 -
Spring Boot 启动 Logo 修改 字符图案 只支持ASCII字符
Spring Boot 启动 Logo 修改 字符图案 只支持ASCII字符参考网址:http://patorjk.com/software/taaggitee的pages:https://winsonzhao.gitee.io/banner原创 2020-07-31 17:01:48 · 421 阅读 · 0 评论 -
流程图绘制工具 Draw.io -初步分析及搭建
Draw.io 是 GitHub 上一个开源的流程图绘制工具,功能丰富,而且免费。参考相关链接:在线网页版,直接访问:https://www.draw.io/桌面版下载地址:https://github.com/jgraph/drawio-desktop/releases网页版github:https://github.com/jgraph/drawio国内gitee...原创 2020-03-27 17:00:59 · 6935 阅读 · 2 评论