摘要: 1.将对象数组按照一定的数量进行切割 应用场景:列表前端分页,swiper翻页等 json数据如下: const arr = [ { "name": "AAA", "info": '01' }, { "name": "BBB", "info": '02' }, { "name": "CCC", "i 阅读全文
posted @ 2023-12-26 15:37 宫圆薰 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 1. 参看微信官方文档(https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/Wechat_Open_Tag.html#21) ① vue跳转微信小程序(https://www.jianshu.com/p/c3db8f177845, 阅读全文
posted @ 2023-05-17 17:24 宫圆薰 阅读(58) 评论(0) 推荐(0) 编辑
摘要: 前期准备环境: node (18.14.2) , 安装pnpm 1. 安装vue3空项目 ## 创建工程 npm create vite@latest "项目名字" --template vue-ts ## 进入工程目录 cd "项目名字" ## 安装依赖 npm i ## 运行 npm run d 阅读全文
posted @ 2023-03-01 14:56 宫圆薰 阅读(16) 评论(0) 推荐(0) 编辑
摘要: let arrold = [ { name: "name1", age: "1", date: '2016-05-03' }, { name: "name2", age: "2", date: '2016-05-02' }, { name: "name3", age: "3", date: '201 阅读全文
posted @ 2022-12-21 15:58 宫圆薰 阅读(389) 评论(0) 推荐(0) 编辑
摘要: // 引入一个包 const path = require("path"); const HTMLWebpackPlugin = require("html-webpack-plugin"); const { CleanWebpackPlugin } = require("clean-webpack 阅读全文
posted @ 2022-12-05 17:32 宫圆薰 阅读(164) 评论(0) 推荐(0) 编辑
摘要: { // include 用来指定哪些ts文件需要被编译 "include": [ // src 目录下的所有ts文件 // ** 任意目录 // * 任意文件 "./src/**/*" ], // exclude 不需要被编译的文件 // 默认值 ["node_modules","bower_co 阅读全文
posted @ 2022-12-05 17:22 宫圆薰 阅读(96) 评论(0) 推荐(0) 编辑
摘要: ### 1. 类型系统 #### 数字类型声明: let e:number; #### 字符串类型声明: let e:string; #### 布尔类型声明: let e:boolean=true; //也可以声明完直接进行赋值,如果变量的声明和赋值是同时进行的,ts 可以自动对变量进行类型检测 等 阅读全文
posted @ 2022-12-05 10:17 宫圆薰 阅读(49) 评论(0) 推荐(0) 编辑
摘要: 写在前面: 转自:http://www.wfuyu.com/s/jquerygroup/limq12lf.html 1. HTML部分: <!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Com 阅读全文
posted @ 2022-11-21 16:37 宫圆薰 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 写在前面: 转自:https://blog.csdn.net/weixin_43686133/article/details/110535069 JS部分: 第一种: /** * 设置根元素font-size * 当设备宽度为375(iPhone6)时,1rem=100px * 除以100并将px换 阅读全文
posted @ 2022-11-21 11:43 宫圆薰 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 1. 安装nvm 安装地址:https://github.com/coreybutler/nvm-windows/releases 由于后来的报错,我安装了1.1.7 版本 https://github.com/coreybutler/nvm-windows/releases/tag/1.1.7 2 阅读全文
posted @ 2022-09-15 14:51 宫圆薰 阅读(341) 评论(0) 推荐(0) 编辑