Title
摘要: npm i swiper@6.8.4 vue-awesome-swiper@4.1.1 --save-dev 实测有效! JavaScript: <script> import { Swiper, SwiperSlide } from 'vue-awesome-swiper' import 'swi 阅读全文
posted @ 2022-11-22 11:04 谈亦行 阅读(823) 评论(0) 推荐(0) 编辑
摘要: module.exports = { css: { loaderOptions: { sass: { // 根据自己样式文件的位置调整 data: `@import "./src/style/media.scss";` } } }, } 阅读全文
posted @ 2022-02-23 09:40 谈亦行 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 1.如何隐藏所有指定的元素 const hide = (el) => Array.from(el).forEach(e => (e.style.display = 'none')); // 事例:隐藏页面上所有`<img>`元素? hide(document.querySelectorAll('im 阅读全文
posted @ 2022-02-17 15:31 谈亦行 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 1、复制到剪贴板 使用 navigator.clipboard.writeText 轻松将任何文本复制到剪贴板。 const copyToClipboard = (text) => navigator.clipboard.writeText(text); copyToClipboard("Hello 阅读全文
posted @ 2022-02-17 14:42 谈亦行 阅读(42) 评论(0) 推荐(0) 编辑
摘要: import axios from "axios"; import { Toast, Notify } from "vant"; /* base config */ const serve = axios.create( { baseURL: `https://cnodejs.org/api/v1` 阅读全文
posted @ 2021-12-08 16:58 谈亦行 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 简单记录心得: 结构: --store stepData actions.js mutations.js state.js index.js stepLogin actions.js mutations.js state.js index.js index.js 代码: actions.js con 阅读全文
posted @ 2021-11-12 16:34 谈亦行 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 请求到的歌词数据: lyrics: "[id:$00000000]\r\n[ar:Bomb比尔]\r\n[ti:0222心动-比尔的歌]\r\n[by:]\r\n[hash:5ecfecaa3768c12a0d0bc2f6bd49d67b]\r\n[al:]\r\n[sign:]\r\n[qq:]\ 阅读全文
posted @ 2021-09-17 17:11 谈亦行 阅读(361) 评论(0) 推荐(0) 编辑
摘要: 导言:初次爬虫,若有不足之处,多多指正,内容借鉴一位大神爬虫经历,我这边锦上添花,添加获取音乐播放路径和连接mysql数据库等相关内容, 涉及软件: Navicat for MySQL破解版 以及 postman 爬虫数据有: 歌词,歌曲,歌手,播放路径,封面图显示,歌曲时长,歌词次数大小等等 爬虫 阅读全文
posted @ 2021-09-15 19:21 谈亦行 阅读(580) 评论(0) 推荐(0) 编辑
摘要: 1·解决python爬虫requests.exceptions.SSLError: HTTPSConnectionPool(host='XXX', port=443)问题 方法:先检查pip有没安装cryptography,pyOpenSSL,certifi要是没有先安装 pip install c 阅读全文
posted @ 2021-08-27 18:41 谈亦行 阅读(87) 评论(0) 推荐(0) 编辑
摘要: import pymysql conn = pymysql.connect(host='127.0.0.1', user='root', password='123', db='videos', charset='utf8') cursor = conn.cursor() # 建立存放电影数据的表d 阅读全文
posted @ 2021-08-27 18:28 谈亦行 阅读(56) 评论(0) 推荐(0) 编辑