摘要: 使用说明 注册小程序 https://mp.weixin.qq.com/ 下载小程序编辑器 https://developers.weixin.qq.com/miniprogram/dev/devtools/stable.html 截流、分页、loading // pages/shoplist/sh 阅读全文
posted @ 2025-11-25 21:32 东方不败--Never 阅读(4) 评论(0) 推荐(0)
摘要: index.js import piniaPluginPersistedstate from 'pinia-plugin-persistedstate' import { createPinia } from 'pinia' const pinia = createPinia().use(pinia 阅读全文
posted @ 2025-11-15 09:39 东方不败--Never 阅读(4) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2025-11-13 16:14 东方不败--Never 阅读(4) 评论(0) 推荐(0)
摘要: 在项目的根目录会自动创建一个文件夹`dist`,dist中的文件就是打包后的文件,只需要放到服务器中即可。 配置publicPath ```js module.exports = { // 设置获取.js,.css文件时,是以相对地址为基准的。 // https://cli.vuejs.org/zh 阅读全文
posted @ 2025-11-13 15:02 东方不败--Never 阅读(7) 评论(0) 推荐(0)
摘要: 1 新建一个 mixin 文件 `mixins/loginConfirm.js` ```jsx export default { methods: { // 是否需要弹登录确认框 // (1) 需要,返回 true,并直接弹出登录确认框 // (2) 不需要,返回 false loginConfir 阅读全文
posted @ 2025-11-13 11:49 东方不败--Never 阅读(11) 评论(0) 推荐(1)
摘要: 1 、安装插件 npm i babel-plugin-import -D 2、根目录创建:babel.config.js 中配置 module.exports = { presets: [ '@vue/cli-plugin-babel/preset' ], plugins: [ ['import', 阅读全文
posted @ 2025-11-07 10:36 东方不败--Never 阅读(7) 评论(0) 推荐(0)
摘要: npm install [email protected] -D module.exports = { plugins: { 'postcss-px-to-viewport': { // 标准屏宽 viewportWidth: 375 } } } 阅读全文
posted @ 2025-11-07 10:32 东方不败--Never 阅读(6) 评论(0) 推荐(0)
摘要: vue2 安装低版本的:npm install -g [email protected] 阅读全文
posted @ 2025-11-06 12:32 东方不败--Never 阅读(7) 评论(0) 推荐(0)
摘要: 01.js // npm i [email protected] // npm i -g nodemon // nodemon xx.js const express = require('express') const app = express() app.listen(3000,()=>{ cons 阅读全文
posted @ 2025-10-23 19:07 东方不败--Never 阅读(8) 评论(0) 推荐(0)
摘要: // 防抖函数,频繁操作,只执行最后一次操作 function xx(fun,t){ let timer return function(){ if(timer){ clearTimeout(timer) } timer=setTimeout(function(){fun()},t) } } // 阅读全文
posted @ 2025-10-16 11:23 东方不败--Never 阅读(10) 评论(0) 推荐(0)