上一页 1 ··· 7 8 9 10 11
摘要: 1.reduce 求数组中数值之和 /** * 1. reduce 求和 */ let arr = [1, 2, 3, 4, 5]; // let sum = arr.reduce(function (pre, cur, index) { // console.log(pre, cur, index 阅读全文
posted @ 2021-09-01 21:13 青柠i 阅读(85) 评论(0) 推荐(0)
摘要: 全局作用域和函数作用域,基本概念大家应该都知道,这次总结一下深层次的作用域 function fn(a, c) { console.log(a) // function a() { } var a = 123 console.log(a) // 123 console.log(c) // funct 阅读全文
posted @ 2021-09-01 17:30 青柠i 阅读(50) 评论(0) 推荐(0)
摘要: 隐式转换 1.题目: //1. console.log(1 + "true"); console.log(1 + true); console.log(1 + undefined); console.log(1 + null); //2. console.log("2" > 10); console 阅读全文
posted @ 2021-09-01 17:24 青柠i 阅读(119) 评论(0) 推荐(0)
摘要: Vue学习笔记 一、介绍 1.官网地址 Vue官网地址 https://cn.vuejs.org/ Vue3官网地址 https://v3.cn.vuejs.org/ 2.Vue介绍 ​ Vue (读音 /vjuː/,类似于 view) 是一套用于构建用户界面的渐进式框架。与其它大型框架不同的是,V 阅读全文
posted @ 2021-08-13 10:58 青柠i 阅读(272) 评论(0) 推荐(0)
摘要: 一、webpack 前端项目工程化的具体解决方案,打包工具 1. webpack基本使用 项目中安装: #使用最新版本,可以不指定版本 npm i webpack webpack-cli -D 配置webpack webpack.config.js 的作用 自定义打包的入口和出口 2. webpac 阅读全文
posted @ 2021-08-13 10:57 青柠i 阅读(134) 评论(0) 推荐(0)
摘要: 一、Node.js 1.简介: ​ node.js 是一个名词,不是技术,技术语言:JavaScript ​ 目标:让JavaScript可以操作服务器 ​ 场景:博客,聊天室 2.特点: Node.js 解决服务器高性能瓶颈问题 ==1.单线程:==仅仅使用一个线程,当用户连接,就触发一个内部事件 阅读全文
posted @ 2021-07-25 11:19 青柠i 阅读(135) 评论(0) 推荐(0)
摘要: 一、ECMAScript 6 1. Babel 转码器 1.1简介 Babel 是一个广泛使用的 ES6 转码器,可以将 ES6 代码转为 ES5 代码 1.2babel 安装和配置 1. 安装babel npm init -y 初始化package.json npm i -D @babel/cor 阅读全文
posted @ 2021-07-25 11:11 青柠i 阅读(342) 评论(0) 推荐(0)
摘要: 问题: 使用Vue插件swiper,报如下bug: 解决: 报错原因: vue-awesome-swiper下载版本问题 解决: 如果写成下面这样报错: 则加上$ 反之,删除$ 问题解决 阅读全文
posted @ 2021-07-25 11:00 青柠i 阅读(308) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11