会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
风一样的猿
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
10
下一页
2020年6月18日
小程序 返回上一页面 传参
摘要: let pages = getCurrentPages(); let currPage = pages[pages.length - 1]; //当前页面 let prevPage = pages[pages.length - 2]; //上一个页面 let prevPage_ = pages[pa
阅读全文
posted @ 2020-06-18 11:48 风一样的猿
阅读(284)
评论(0)
推荐(0)
2020年6月16日
Vue 打包下载图片
摘要: 1、 npm安装依赖 //jszip是一个用于创建、读取和编辑.zip文件的JavaScript库https://stuk.github.io/jszip/npm install jszip https://www.npmjs.com/package/file-saver npm install f
阅读全文
posted @ 2020-06-16 19:48 风一样的猿
阅读(1135)
评论(0)
推荐(0)
2020年5月26日
小程序 onShow 里面 获取传递过来的参数
摘要: // 获取当前小程序的页面栈 let pages = getCurrentPages(); // 数组中索引最大的页面--当前页面 let currentPage = pages[pages.length - 1]; // 打印出当前页面中的 options console.log(currentP
阅读全文
posted @ 2020-05-26 11:28 风一样的猿
阅读(6132)
评论(0)
推荐(0)
2020年5月19日
网页滚动条修改 css
摘要: ::-webkit-scrollbar { width: 6px; height: 6px; } ::-webkit-scrollbar-thumb { background-color: #c2c2c2; background-clip: padding-box; min-height: 28px
阅读全文
posted @ 2020-05-19 11:34 风一样的猿
阅读(365)
评论(0)
推荐(0)
2020年5月8日
VUE 缓存
摘要: 清除指定缓存(退出登录) window.localStorage.removeItem("token");
阅读全文
posted @ 2020-05-08 15:03 风一样的猿
阅读(260)
评论(0)
推荐(0)
2020年4月18日
Vue 实时过去 页面宽高
摘要: mounted() { let that = this; // <!--把window.onresize事件挂在到mounted函数上--> window.onresize = () => { return (() => { window.fullHeight = document.document
阅读全文
posted @ 2020-04-18 17:55 风一样的猿
阅读(421)
评论(0)
推荐(0)
2020年4月7日
css 全网页呈现灰色
摘要: filter: grayscale(100%);
阅读全文
posted @ 2020-04-07 17:47 风一样的猿
阅读(727)
评论(0)
推荐(0)
2020年4月1日
Vue 省市区三级联动(基于ElementUI)
摘要: npm install element-china-area-data -S import { provinceAndCityData, regionData, provinceAndCityDataPlus, regionDataPlus, CodeToText, TextToCode } fro
阅读全文
posted @ 2020-04-01 10:33 风一样的猿
阅读(6304)
评论(0)
推荐(0)
2019年12月18日
小程序 节流函数 (防止按钮重复点击)
摘要: function throttle(fn, gapTime) { if (gapTime == null || gapTime == undefined) { gapTime = 1500 } let _lastTime = null // 返回新的函数 return function () { l
阅读全文
posted @ 2019-12-18 14:18 风一样的猿
阅读(1892)
评论(0)
推荐(0)
2019年12月6日
Vs Code 自动编译TS
摘要: 全局安装 TS npm install -g typescript 初始化 生成tsconfig.json文件 tsc --init 打开tsconfig.json设置生成js地址 快捷键 Ctrl+shift+B 选择监视模式 进行编译(每次有更新就会编译)
阅读全文
posted @ 2019-12-06 18:30 风一样的猿
阅读(6570)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
10
下一页
公告