logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

转义特殊字符防止xss攻击

function symbolEscape(text){return text.replace(/[<>"&]/g, function(match, pos, originalText){switch(match){case "<": return "&lt;";case ">":return "&gt;";..

#xss#前端
微信小程序设置不同的顶部导航栏名称以及背景颜色

一、背景首先是,我们知道在app.json中,有一个window属性,这个规定了全局的顶部导航栏目的显示:"window": {"backgroundTextStyle": "light","navigationBarBackgroundColor": "#fff","navigationBarTitleText": "全局导航名称","navigationBarTextStyle": "blac

#小程序#web app#css +1
uniapp swiper轮播图自适应高度问题

先来讲下主体思路:每个tab页(swiper-item)都嵌套在swiper中,swiper-item中在放置一个scroll-view,实现超出部分滑动;即让swiper、scroll-view高度都占满屏幕剩余部分<–template部分–>这里的:style="{height:swiperheight+‘px’}"是设置他动态的的高度这里用scroll-view是把要设置自适应高

#css#html#前端 +1
vue使用docxtemplater导出word实现使用textarea输入的内容换行

vue使用docxtemplater导出word实现使用textarea输入的内容换行

文章图片
#vue.js#前端
使用uniapp开发支付宝/钉钉小程序uni.uploadFile报错errMsg: “uploadFile:fail 无效参数“

使用uniapp开发支付宝/钉钉小程序uni.uploadFile报错errMsg: “uploadFile:fail 无效参数“

文章图片
#小程序#uni-app
uniapp使用uview开发钉钉小程序使用LoadMore加载更多,当需要加载Loading状态时报错Cannot read properties of null (reading ‘index‘)

uniapp使用uview开发钉钉小程序使用LoadMore加载更多,当需要加载Loading状态时报错Cannot read properties of null (reading ‘index’)

文章图片
#uni-app#小程序
微信公众号H5音频视频自动播放(安卓,苹果)

微信公众号H5音视频自动播放,不需要用户跟页面交互

#微信#音视频
到底了