摘要: 一,全局预编译 GO 全局活动对象。 找变量声明,将变量名作为AO属性名,值为undefined 找函数声明,优先级同样最高在<script></script>全局预编译阶段 1、案例一: console.log(a);//fn console.log(c);//undefined var a = 阅读全文
posted @ 2021-04-21 15:18 千叶祥龙 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 1、npm 安装依赖包 npm i http-proxy-middleware -D 2、在 src目录下新建setupProxy.js配置文件 const {} = require("http-proxy-middleware"); module.exports = function() { ap 阅读全文
posted @ 2021-04-01 16:08 千叶祥龙 阅读(418) 评论(0) 推荐(0) 编辑
摘要: JavaScript数据类型 空值(null) 未定义(undefined) 布尔值(boolean) 数字(number) 字符串(string) 对象 (object) 符号(symbol, ES6中新增) 大整数(BigInt, ES2020 引入) Symbol: 是ES6中引入的一种原始数 阅读全文
posted @ 2021-03-30 17:30 千叶祥龙 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 1、介绍 这里的vue代理是 vue静态服务器做代理。使用的是 http-proxy-middleware 这个模块(这个模块相当于是node.js的一个插件)。 2、在 config/index.js , dev 属性下添加配置 proxyTable: { '/pweixin': { target 阅读全文
posted @ 2021-03-15 10:33 千叶祥龙 阅读(548) 评论(0) 推荐(0) 编辑
摘要: 一、使用keep-alive 和 vue-router 的 keepAlive 实现(页面跳转需动态控制keepAlive实现) 1、在入口页面,比如 app.vue 页面添加<keep-alive> 标签。 // 方式一 <keep-alive> <router-view v-if="$route 阅读全文
posted @ 2021-03-12 15:48 千叶祥龙 阅读(1891) 评论(0) 推荐(0) 编辑
摘要: 1、将切换的页面用transition包裹 2、css设置切换动画 3.完工。 阅读全文
posted @ 2019-07-12 23:51 千叶祥龙 阅读(1499) 评论(0) 推荐(1) 编辑
摘要: 1、html,通过ref=replyBox设置焦点元素,以便后续获取 2、js控制,必须放在this.$nextTick里面才能控制,Input如果是for循环出来的,则必须用replyBox[0]才能获取当前的textarea 阅读全文
posted @ 2019-07-12 23:45 千叶祥龙 阅读(4254) 评论(1) 推荐(0) 编辑
摘要: 一、html演示代码: 二、2.1 假设设置每组显示的3个slide,则js配置如: 三、3.1 假如需要自定义每个slide的宽度(或者在最后一个slide添加其他操作),则js配置如: 3.2、css配置: 3.3 最终效果如下: 四、打完收工。 阅读全文
posted @ 2019-03-22 15:20 千叶祥龙 阅读(8607) 评论(0) 推荐(0) 编辑
摘要: 1、html代码: 2、在后台接口返回数据后初始化swiper构造函数。(注意 this.$nextTick的使用) 3、完美通关。 阅读全文
posted @ 2019-03-22 10:30 千叶祥龙 阅读(6208) 评论(0) 推荐(0) 编辑
摘要: 1、路由文件 :router/index.js 添加 meta属性配置: 2、在入口文件 main.js中添加 router.beforeEach 配置 以下代码 完结。 阅读全文
posted @ 2019-02-19 18:16 千叶祥龙 阅读(4069) 评论(0) 推荐(0) 编辑