- 博客(5)
- 收藏
- 关注
原创 三目运算符判断多个条件的使用方法
写项目的时候数据状态有三种,给三种不同的样式,然后发现可以简单地使用三目运算符,就可以实现多个条件的判断也就是这个用法
2022-06-08 20:04:10
2188
转载 Property or method “xxxx“ is not defined on the instance but referenced during render. Vue报错
1. Property or method “xxxx” is not defined on the instance but referenced during render有时候在写 vue 时突然就报这个错误了,Property or method “xxxx” is not defined on the instance but referenced during render,报错错误理解:属性或者方法 XXX 没有立即定义但是却在渲染时被引用。报错信息已经十分明显了, XXX属性或方法没有定
2022-06-08 17:37:06
28863
3
原创 npm install报错node-sass@4.14.1 postinstall: `node scripts/build.js` cnpm安装成功运行不了
解决方法然后再执行嫌速度慢的话可以淘宝镜像
2022-06-01 15:24:58
562
原创 Vue的计算属性computed
computed的基本使用<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
2022-05-28 22:17:56
181
原创 迭代器Iterator
实现了Iterator接口的数据,即使可迭代的数据1)访问iterator.next()通过调用.next方法,{value:'tom',done:false} value有值,done为false{value:undefined,done:true}2)作用- 是为各种数据结构,提供一个统一、简便的访问接口- 数据内部成员按照一定的次列排序,提供调用.next方法,指向下一个成员- 供ES6...
2022-05-12 13:40:32
142
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人