会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
七月流火~
博客园
首页
新随笔
联系
订阅
管理
2021年11月14日
vue3 自定义指令(简易版防抖、节流)
摘要: /* * @Descripttion: 自定义指令 * @version: */ export const direcitiveFUc = (app: any) => { /* * @Descripttion: 防抖,单位时间内触发最后一次 * @param [function] func --执行
阅读全文
posted @ 2021-11-14 19:58 七月流火~
阅读(2117)
评论(1)
推荐(2)
2021年7月2日
wather.js 封装
摘要: /** @format */ /* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable @typescript-eslint/explicit-module-boundary-types */ // 观察者 c
阅读全文
posted @ 2021-07-02 21:27 七月流火~
阅读(156)
评论(0)
推荐(0)
http.js 的封装
摘要: import axios from 'axios'; import iView from 'iview'; const baseApiObj = { production: 'https://imzt.bndxqc.com/api', experience: 'https://imztty.bndx
阅读全文
posted @ 2021-07-02 21:18 七月流火~
阅读(526)
评论(0)
推荐(0)
2020年12月14日
vue 自定义video 的进度条,可快进,可拖动
摘要: <template> <div class="trailer_video_box"> <!-- 宣传片区域 --> <video ref="trailer" class="trailer_box" preload :src="videoUrl"></video> <!-- end --> <!--
阅读全文
posted @ 2020-12-14 10:26 七月流火~
阅读(6792)
评论(1)
推荐(0)
2020年1月13日
vue 路由模块化
摘要: 第一、 在 router 文件夹下 新建个个模块的文件夹,存放对应的路由js文件 如图1: 第二、修改router文件夹下的index.js 如图2 三、在main.js 修改如下代码 图3
阅读全文
posted @ 2020-01-13 17:24 七月流火~
阅读(752)
评论(0)
推荐(0)
2019年12月27日
vue 项目使用JSbrideg.js与app通信
摘要: 一、建立JSbrideg.js文件 var jsBridge = { isAndroid: null, isIOS: null, callHandlerFunc: function(json_data){ var that = this; var res_data = null; var nv =
阅读全文
posted @ 2019-12-27 09:57 七月流火~
阅读(940)
评论(0)
推荐(0)
ios 页面滑动到底部无法往上滚的问题
摘要: 简单说明:当h5端使用vue-infinite-scroll 插件 做滚动加载 如:页面布局 <header></header> <div class='main'> </div> <footer></footer> 中间区域是计算好高度的话,使用vue-infinite-scroll 插件,这个时
阅读全文
posted @ 2019-12-27 09:32 七月流火~
阅读(1449)
评论(0)
推荐(0)
2019年12月26日
梳理js数组去重中代码比较简洁的方案
摘要: 一、es6 Set去重 function removal(arr) { return Array.from(new Set(arr)) } let arr=[1,2,1,3,4,5,5] removal(arr)//[1, 2, 3, 4] 二、利用 filter function removal(
阅读全文
posted @ 2019-12-26 16:01 七月流火~
阅读(269)
评论(0)
推荐(1)
公告