摘要: 1.ionic/vue 路由跳转问题:地址改变,但是不跳转 原因:在跳转路由组件中存在调用ionic组件,未在components中引入,控制台报warn,这是,通过router.push或者其他跳转都不成功 解决方案:在components中引入用到的组件 // test.vue <templat 阅读全文
posted @ 2022-01-17 11:43 面包_girl 阅读(310) 评论(0) 推荐(0) 编辑
摘要: CancelToken:取消上一个路由未响应的接口 1.新建一个CancelToken.js,定义一个全局变量 export default class CancelToken { static cancelRequest = { // static类型不用实例化,可直接调用 source: { t 阅读全文
posted @ 2021-12-07 11:16 面包_girl 阅读(342) 评论(0) 推荐(0) 编辑
摘要: /** 描述:判断浏览器信息* 编写:LittleQiang_w* 日期:2016.1.5* 版本:V1.1*/ //判断当前浏览类型function BrowserType(){undefinedvar userAgent = navigator.userAgent; //取得浏览器的userAg 阅读全文
posted @ 2021-11-19 09:10 面包_girl 阅读(729) 评论(0) 推荐(0) 编辑
摘要: 参考文档: https://www.jb51.net/article/161713.htm 或者 // 防抖 const debounce = (func, wait, immediate) => { let timeOut; return function () { const context = 阅读全文
posted @ 2021-11-13 11:52 面包_girl 阅读(81) 评论(0) 推荐(0) 编辑
摘要: // 3des解密 export const decrypt = (params: any) => { const pubKey = localStorage.getItem('server_key'); if (pubKey == null) { throw new Error('missing 阅读全文
posted @ 2021-09-14 17:11 面包_girl 阅读(764) 评论(0) 推荐(0) 编辑
摘要: 参考地址:https://www.5axxw.com/wiki/content/3b2zj4 引入: 使用: 阅读全文
posted @ 2021-07-15 17:01 面包_girl 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 1.首先引入静态资源 2.在app.module.ts中引入 3.在页面中使用 阅读全文
posted @ 2021-07-06 14:49 面包_girl 阅读(76) 评论(0) 推荐(0) 编辑
摘要: npm地址:https://www.npmjs.com/package/spark-md5 //生成MD5 md5Count() { let blobSlice = File.prototype.slice, file = this.importFormData.File, // file chun 阅读全文
posted @ 2021-07-06 14:41 面包_girl 阅读(3027) 评论(0) 推荐(0) 编辑
摘要: const arrChunk = (arr,size) =>{ if(arr.length 0){ return []; } const tempArr = []; const chunkLen = Math.ceil(arr.length / size); let last = 0; for(le 阅读全文
posted @ 2021-05-27 14:36 面包_girl 阅读(1181) 评论(0) 推荐(0) 编辑
摘要: 有个需求是:监听iframe窗体中,15分钟内未操作,界面弹出功能。 Window.postMessage() MAN中有详解:https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage targetWindow.postM 阅读全文
posted @ 2021-05-13 14:09 面包_girl 阅读(810) 评论(0) 推荐(0) 编辑
/* 鼠标点击文字特效 */