摘要: 1. npm i vue-slick-carousel<template> <div> <div class="activities "> <VueSlickCarousel v-bind="settings"> <div class="activity"> <!-- 动态图片 --> <route 阅读全文
posted @ 2023-02-09 14:10 koo- 阅读(130) 评论(0) 推荐(0) 编辑
摘要: <div class="activities phone"> <!-- 动态 --> <div class="activity" v-for="(item, index) in imgList.slice( (currentPage - 1) * pageSize, currentPage * pa 阅读全文
posted @ 2023-02-09 14:10 koo- 阅读(39) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2023-02-09 14:10 koo- 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 优化前: 1.简单分支优化: 2.复杂分支优化: 3.抽离分支: 阅读全文
posted @ 2023-02-09 14:10 koo- 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 1.在componentes文件夹下创建toast文文件夹 toast文件夹里创建Toast.vue文件和index.js文件 2.main.js 3.vue页面引用 阅读全文
posted @ 2022-05-07 10:37 koo- 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-05-07 10:24 koo- 阅读(397) 评论(0) 推荐(0) 编辑
摘要: html: <a @click="changeHash('#row')"> {{ $t("msg.desc1") }} </a> js: 方法: changeHash(idName) { document.querySelector(idName).scrollIntoView(true); }, 阅读全文
posted @ 2022-04-29 16:05 koo- 阅读(150) 评论(0) 推荐(0) 编辑
摘要: var mobile_bs = { versions: function () { var u = navigator.userAgent; return { trident: u.indexOf('Trident') > -1, //IE presto: u.indexOf('Presto') > 阅读全文
posted @ 2022-04-29 11:55 koo- 阅读(148) 评论(0) 推荐(0) 编辑
摘要: function GetQueryString(name) { let url = window.location.href; let arr = url.split(name); if(arr[1] && arr[1].length > 0) { return arr[1]; } return n 阅读全文
posted @ 2022-04-29 11:51 koo- 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 在需要跳到的页面加: function GetQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg) 阅读全文
posted @ 2022-04-28 18:37 koo- 阅读(126) 评论(0) 推荐(0) 编辑