摘要: 读取富文本接口,对富文本的样式进行处理 此处为uniapp的方式 (微信小程序同理) res.data.article_content=res.data.article_content.replace(/(style="(.*?)")|(width="(.*?)")|(height="(.*?)") 阅读全文
posted @ 2023-11-30 10:29 新手上线 阅读(53) 评论(0) 推荐(0)
摘要: 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)
摘要: 微信小程序常用组件 (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)
摘要: 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)
摘要: 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)
摘要: 以拉取develop分支的代码为例, 要拉取其余分支代码类似操作 1.使用git命令拉取 命令:git clone -b develop XXX 其中develop就是分支的名称 2.使用TortoiseGit工具拉取 阅读全文
posted @ 2023-05-22 17:09 新手上线 阅读(434) 评论(0) 推荐(0)
摘要: 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)
摘要: // 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)
摘要: // js部分:屏幕大小决定根元素字体大小 (function flexible(window, document) { function resetFontSize() { const size = (document.documentElement.clientWidth / 1920) * 1 阅读全文
posted @ 2023-04-12 10:54 新手上线 阅读(34) 评论(0) 推荐(0)