06 2022 档案

摘要:问题: 原因: 在全局注册组件时采用遍历组件池的方法,此时,每个组件都应该具备name属性,否则会出现如标题的错: Uncaught TypeError: Cannot read property 'toLowerCase' of undefined 解决: 在组件中加入name属性,标注组件名称 阅读全文
posted @ 2022-06-30 09:18 smil、梵音 阅读(342) 评论(0) 推荐(0) 编辑
摘要:vscode 安装之后,打开设置(文件 > 首选项 > 设置): vscode设置搜索“wrap tabs”,打钩即可: 阅读全文
posted @ 2022-06-28 17:29 smil、梵音 阅读(1625) 评论(0) 推荐(3) 编辑
摘要:对于VUE的初学者来讲,肯定会感觉prop的写法很麻烦,很讨厌!你肯定想如果prop也可以实现双向绑定那怎是一个爽字了得!不过现实是残酷的,如果子组件可以任意修改父组件的内容,那势必会带来数据的混乱,从而造成维护的困扰!毕竟父组件也是有尊严的! 官方推荐使用一种update:my-prop-name 阅读全文
posted @ 2022-06-27 14:50 smil、梵音 阅读(58) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/csucsgoat/article/details/117847018 阅读全文
posted @ 2022-06-27 14:32 smil、梵音 阅读(311) 评论(0) 推荐(0) 编辑
摘要:代码结构: 在 main.js 中添加如下代码: import { cvxeTable, myheader, maintree, btnAndSearch, cvxeMulForms } from '@/components/performance'; let components=[ cvxeTa 阅读全文
posted @ 2022-06-20 16:18 smil、梵音 阅读(2146) 评论(0) 推荐(0) 编辑
摘要:代码结构: axios-json.js 的代码: import axios from 'axios' import storage from '@/util/storage' // import Qs from 'qs' import router from '@/router/index' imp 阅读全文
posted @ 2022-06-20 16:11 smil、梵音 阅读(1169) 评论(0) 推荐(0) 编辑
摘要:一、简述使用 localhost 或 127.0.0.1 或直接输入本机 IP,这三者都可以访问到本机,那为什么会存在这三种形式呢?它们之间又有啥区别呢? 1、本机IP电脑主板上都内置了多种网卡,一般主要有以下几类: ①虚拟网卡(loopback) 注意,它是虚拟的,并不是物理网卡,也被称为是本地环 阅读全文
posted @ 2022-06-16 14:31 smil、梵音 阅读(1137) 评论(0) 推荐(0) 编辑
摘要:普通排序 // 普通排序 var arr1 = [1,2,10,7,8,3,20] // 从小到大 arr1.sort((a, b) => a - b) // 箭头函数单行代码 可省 return console.log(arr1) // [1,2,3,7,8,10,20] // 从大到小 arr1 阅读全文
posted @ 2022-06-14 12:29 smil、梵音 阅读(139) 评论(0) 推荐(0) 编辑
摘要:let reg = /(^[0-9]\d*$)/ 阅读全文
posted @ 2022-06-13 15:40 smil、梵音 阅读(899) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示