摘要: 首先使用npm安装swiper npm i swiper 接着在组件模板中添加轮播的html结构 <div class="swiper"> <div class="swiper-wrapper"> <div class="swiper-slide">Slide 1</div> <div class= 阅读全文
posted @ 2022-05-11 22:33 泡椒pg 阅读(692) 评论(0) 推荐(0)
摘要: 数组的访问 用中括号[] 通过指定数组名以及索引号码,你可以 访问某个特定的元素。 数组的赋值 将数组a赋值给数组b 数组的length 数组的遍历 1.普通for循环 //最简单的一种,也是使用频率最高的一种,虽然性能不弱,但仍有优化空间 2.优化版for循环 //使用临时变量,将长度缓存起来,避 阅读全文
posted @ 2022-05-11 22:23 泡椒pg 阅读(44) 评论(0) 推荐(0)