会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
zcl113366
博客园
首页
新随笔
联系
订阅
管理
2023年11月30日
富文本样式处理
摘要: 读取富文本接口,对富文本的样式进行处理 此处为uniapp的方式 (微信小程序同理) res.data.article_content=res.data.article_content.replace(/(style="(.*?)")|(width="(.*?)")|(height="(.*?)")
阅读全文
posted @ 2023-11-30 10:29 新手上线
阅读(53)
评论(0)
推荐(0)
2023年11月16日
微信小程序预留底部安全区域
摘要: padding-bottom: calc(constant(safe-area-inset-bottom)); padding-bottom: calc(env(safe-area-inset-bottom));
阅读全文
posted @ 2023-11-16 14:16 新手上线
阅读(207)
评论(0)
推荐(0)
2023年11月2日
常用工具的地址
摘要: 微信小程序常用组件 (Vant Weapp) 地址: https://vant-contrib.gitee.io/vant-weapp/#/button uniapp常用组件 (uView) 地址: https://uviewui.com/components/color.html 图片压缩 htt
阅读全文
posted @ 2023-11-02 15:00 新手上线
阅读(13)
评论(0)
推荐(0)
2023年7月11日
数组排序
摘要: let shw2 = [1,3,5,2,1] shw2.forEach((item, index) => { var min = item; var temp; var minIndex = index; for (var j = index + 1; j < shw2.length; j++) {
阅读全文
posted @ 2023-07-11 11:22 新手上线
阅读(12)
评论(0)
推荐(0)
2023年7月10日
根据数组中的参数对另一个数组中的字段进行拼接
摘要: let arr1=[ {id: 1, goods_title: "浴巾大号"}, {id: 2, goods_title: "浴巾小号"}, {id: 3, goods_title: "洗发水"}, {id: 4, goods_title: "饮料"}, {id: 5, goods_title: "
阅读全文
posted @ 2023-07-10 10:58 新手上线
阅读(23)
评论(0)
推荐(0)
判断数组是否包含另一个数组
摘要: let array1 = [1,2,3] let array2 = [1,2,3,4] let checker = (arr, target) => target.every(v => arr.includes(v)); //如果返回为true,则为包含;返回为false则不包含 console.l
阅读全文
posted @ 2023-07-10 10:39 新手上线
阅读(172)
评论(0)
推荐(0)
2023年5月22日
从git拉取指定分支代码
摘要: 以拉取develop分支的代码为例, 要拉取其余分支代码类似操作 1.使用git命令拉取 命令:git clone -b develop XXX 其中develop就是分支的名称 2.使用TortoiseGit工具拉取
阅读全文
posted @ 2023-05-22 17:09 新手上线
阅读(434)
评论(0)
推荐(0)
2023年4月13日
a标签的拨号和跳转到页面指定地方
摘要: 1.a标签拨号 <a href="tel:136********">联系我们</a> 2.a标签跳转到页面指定地方(页面1跳转时添加"#"和页面2指定地方的id,): 页面1代码 <a href="b.html#zhidin"></a> 页面2代码 <div id="zhidin">指定的地方</d
阅读全文
posted @ 2023-04-13 10:14 新手上线
阅读(37)
评论(0)
推荐(0)
2023年4月12日
网页下滑超过一定高度时添加类名(以顶部导航为例)
摘要: // html部分 <header class="header"> <div class="container all_top_nav clearfix contentAll"> <div class="fl left"> <a href="javascript:void(0)"><img src=
阅读全文
posted @ 2023-04-12 11:16 新手上线
阅读(31)
评论(0)
推荐(0)
网页单位为(rem)时,js控制自适应字体大小
摘要: // js部分:屏幕大小决定根元素字体大小 (function flexible(window, document) { function resetFontSize() { const size = (document.documentElement.clientWidth / 1920) * 1
阅读全文
posted @ 2023-04-12 10:54 新手上线
阅读(34)
评论(0)
推荐(0)
下一页
公告