JS
黑心的绿萝
累成狗的码员
展开
-
ueditor 无法插入视频问题(缺点无法全屏)
一、ueditor.config.js搜索whitList该对象最下方加上 source: ['src', 'type'], embed: ['type', 'class', 'pluginspage', 'src','width', 'height', 'align', 'style', 'wmode', 'play','autoplay','loop', 'menu', 'allowscriptaccess', 'allowfullscreen', 'controls', '原创 2022-02-24 13:36:49 · 500 阅读 · 0 评论 -
记录a标签内容有click动作,如何阻止跳转
单击事件添加阻止冒泡代码dom.onclick=function(e){ e.stopPropagation(); e.preventDefault();}原创 2022-02-19 15:22:43 · 440 阅读 · 0 评论 -
layui弹窗 实现图片、音频在线预览
一、layui组件下载地址Layui镜像站-经典开源模块化前端 UI 框架(官方文档完整镜像)二、实现1.图片预览function previewImages() { let parentObj = $(this).parents('[data-img="prveimgbox"]');//父元素 layer.photos({ photos: parentObj, closeBtn:1, anim: 5 });}2.视频原创 2022-03-01 13:34:37 · 4370 阅读 · 0 评论