03 2022 档案
摘要:原因1:网络太慢,或者没有使用淘宝镜像,node-sass下载失败。 删掉项目的node_modules. 设置淘宝镜像:npm config set registry https://registry.npm.taobao.org 此时,npm install 走的是淘宝镜像,无需使用cnpm.
阅读全文
摘要:确认nvm安装路径没有英文或者空格 【例如:Program Files 中间就有空格】 确认已经把之前安装过的node卸载干净了。【详见=>完全卸载node】 上述都确认完了,如果还没有成功,那还是第二步没有卸载完全,或者没有重启。
阅读全文
摘要:1.从卸载程序卸载程序和功能。 2.重新启动(或者您可能会从任务管理器中杀死所有与节点相关的进程)。 3.寻找这些文件夹并删除它们(及其内容)(如果还有)。根据您安装的版本,UAC设置和CPU架构,这些可能或可能不存在: C:\Program Files (x86)\Nodejs C:\Progra
阅读全文
摘要:现在移动端开发越来越火,随之而来的问题也越来越多,今天给大家介绍一款移动端调试神器,vconsole。 一、先引用文件,可以从https://www.bootcdn.cn/vConsole/下载,也可以下载保存在本地,直接引用 <!DOCTYPE html> <html> <head> <meta
阅读全文
摘要:例如:改变list数组中,索引为index的项的对象属性值为 key 的值,改为 value this.setData({ [`list[${index}].key`]: value })
阅读全文
摘要:在页面的js文件中,编写:onShareAppMessage【给朋友】 和 onShareTimeline 【到朋友圈】 // index.js // 获取应用实例 Page({ // 分享给朋友 onShareAppMessage: function () { return { title: '标
阅读全文
摘要:在组件的component.json 中配置:"styleIsolation": "shared" { "component": true, "styleIsolation": "shared", "usingComponents": {} }
阅读全文
摘要:wxml 文件 <view class="container index-container"> <view class="main-swiper"> <swipe="true"> <swiper-item>1</swiper-item> <swiper-item>2</swiper-item> <
阅读全文
摘要:下载依赖 npm install gulp-sass sass gulpfile.js const { src, dest, series, watch } = require('gulp') const scss = require('gulp-sass')(require('sass')) co
阅读全文
摘要:watch: { '$store.state.cartList': { deep: true, handler(newVal,oldVal) { console.log(newVal,oldVal) } } }
阅读全文
摘要:const list = [ {id:1,age:44,index: 3}, {id:2,age:32,index: 1}, {id:3,age:22,index: 4}, {id:4,age:26,index: 2}, ] const compare = key => { return (valu
阅读全文
摘要:###方法一: ctrl+shift+P,找到 settings.json: "prettier.semi": false, // 分号 "prettier.singleQuote": true, // 单引号 "prettier.trailingComma": "none" // 去掉结尾的逗号
阅读全文
摘要:注意,他们不是实体的样式,所以在index.scss中引入是没有用的。 所以需要在vue.config.js中去配置 const { defineConfig } = require('@vue/cli-service') module.exports = defineConfig({ transp
阅读全文
摘要:let guid = () => { function S4() { return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1); } return ( S4() + S4() + "-" + S4() + "-" +
阅读全文
摘要:在vue项目中的style标签里 1.Scoped ·当 <style> 标签有 scoped 属性时,它的 CSS 只作用于当前组件中的元素, 父组件的样式将不会渗透到子组件中。 2.子组件的根元素 使用 scoped 后,父组件的样式将不会渗透到子组件中。不过一个子组件的根节点会同时受其父组件的
阅读全文
摘要:使用Eslint检验项目报错“Component name “Error“ should always be multi-word“解决办法 编辑 .eslintrc.js module.exports = { …… overrides: [ { files: ['src/views/**/*.vu
阅读全文
摘要:window 系统更改系统默认文件夹图标【一次性批量更改所有文件夹图标】 1. 找到一个icon 图标,放到C盘你不容易误删的地方。 *此处我放在 C 盘的icons文件夹下 *, 有一个folder.ico 文件. 2. windows 系统下,修改注册表 win键 + R键 组合同时按下, 打开
阅读全文
摘要:十进制转二进制:除二取余,倒序拼接。 如图:
阅读全文
摘要:思路到位,欢迎一起讨论 <body> <form action=""></form> <input type="text" value="1" tabCheckFirst /> <input type="text" value="2" /> <input type="text" value="3"
阅读全文
摘要:标签上的 tabindex 属性 <input type="text" tabindex="1"> <input type="text" tabindex="1"> <input type="text" tabindex="1"> <input type="text" tabindex="1"> <
阅读全文
摘要:vue.config.js module.exports = { // 修改标题 chainWebpack: (config) => { config.plugin("html").tap((args) => { args[0].title = "New Name"; return args; })
阅读全文
摘要:1. 导航菜单设置成router 模式 2. 面包屑组件监听路由变化 // Bread.vue <template> <div class="bread-crumb-container"> <el-breadcrumb separator-class="el-icon-arrow-right"> <
阅读全文
摘要:<div> <button id="btn">测试</button> <a href="public/favicon.ico" download="fav.icon" id="test">asf</a> </div> <script> document.getElementById('btn').o
阅读全文
摘要:vue项目中,把已经写好的html直接放进去,而不经过编译,直接跳转html页面 项目根目录里,如果有public文件夹,则直接放进public文件夹里,与index.html 同级开始,按照项目路径访问。 例如:在public新建pages/test.html, 则: 浏览器访问路径是: http
阅读全文
摘要:下载 @fancyapps/ui npm install @fancyapps/ui -S 新建组件src/components/FancyApp.vue, 文件代码如下: <template> <div class="fancy-app"> <div :id="mainId" class="mai
阅读全文
摘要:vant3 官方至今不出 sku 组件,于是自己整,全是干货: npm install vant-next-sku -S npm install less less-loader -D vue.config.js 配置 less-loader // vue.config.js 新增: module.
阅读全文
摘要:1、在网页端登录icloud.com。 2、点击日历,在日历最左边点击[编辑],然后点加号,新建一个名为“垃圾”的日历类别。 3、把所有垃圾日历的类别选到“垃圾”,然后再次登录icloud.com删除这个日历类别即可,这样就不会点击任何连接,对方应该无法获取你的信息。
阅读全文
摘要:打开联通app, 搜索 esim 打开sim 服务 点击一卡多号 打开已绑定的详情 解除绑定 等待解除成功后,在手机的连接新手表 在手机的watch app 中,打开【蜂窝网络】 绑定套餐 按照指示操作即可
阅读全文
浙公网安备 33010602011771号