07 2022 档案

CSS3选择器nth-child(n)
摘要:#### CSS3 nth-child(n)选择器 /** * CSS3中的nth-child(n)选择器允许你选择父元素的特定子元素,基于它们的位置或它们与其他兄弟元素的关系。 * 可以用于选择列表、表格行、盒子等元素的特定顺序或模式。 */ /* 选择第3个LI元素 */ li:nth-chil 阅读全文

posted @ 2022-07-24 23:12 完美前端 阅读(814) 评论(0) 推荐(0)

vue 使用 swiper vue-awesome-swiper
摘要:文档与演示链接 文档地址 演示地址 NPM安装指令 npm install swiper vue-awesome-swiper@4.1.1 --save 代码部分 // 引入 Swiper 和 vue-awesome-swiper,以及Autoplay模块 import SwiperCore, {A 阅读全文

posted @ 2022-07-24 20:11 完美前端 阅读(1116) 评论(0) 推荐(0)

微信小程序 用uniapp转h5
摘要:微信小程序转换为uni-app 最近有个需求,需要将微信小程序中一些页面和功能改成h5,这次功能开发的时间有点紧,而且重新写一套有点来不及。考虑到微信小程序与uni-app有着一些共通之处,所以打算直接转成uni-app。uni-app官网上也有从微信小程序项目转uni-app的教程:minipro 阅读全文

posted @ 2022-07-19 18:34 完美前端 阅读(4639) 评论(0) 推荐(0)

npm 更换淘宝镜像源
摘要:1. 安装cnpm npm install -g cnpm --registry=https://registry.npm.taobao.org 2. 切换npm源 // 切换至淘宝源 npm config set registry https://registry.npm.taobao.org / 阅读全文

posted @ 2022-07-17 22:43 完美前端 阅读(885) 评论(0) 推荐(0)

javascript 两个数组合并后随机打乱
摘要:定义变量 // 定义两个数组,分别用于存储充值和提现的列表 var arr1 = []; var arr2 = []; 合并数组 // 将arr2数组的内容合并到arr1数组中 rechargingList.push.apply(arr1, arr2); 向swiperContainer3List中 阅读全文

posted @ 2022-07-05 18:22 完美前端 阅读(65) 评论(0) 推荐(0)

导航