摘要:
/* * @Descripttion: 自定义指令 * @version: */ export const direcitiveFUc = (app: any) => { /* * @Descripttion: 防抖,单位时间内触发最后一次 * @param [function] func --执行 阅读全文
摘要:
/** @format */ /* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable @typescript-eslint/explicit-module-boundary-types */ // 观察者 c 阅读全文
摘要:
import axios from 'axios'; import iView from 'iview'; const baseApiObj = { production: 'https://imzt.bndxqc.com/api', experience: 'https://imztty.bndx 阅读全文
摘要:
<template> <div class="trailer_video_box"> <!-- 宣传片区域 --> <video ref="trailer" class="trailer_box" preload :src="videoUrl"></video> <!-- end --> <!-- 阅读全文
摘要:
第一、 在 router 文件夹下 新建个个模块的文件夹,存放对应的路由js文件 如图1: 第二、修改router文件夹下的index.js 如图2 三、在main.js 修改如下代码 图3 阅读全文
摘要:
一、建立JSbrideg.js文件 var jsBridge = { isAndroid: null, isIOS: null, callHandlerFunc: function(json_data){ var that = this; var res_data = null; var nv = 阅读全文
摘要:
简单说明:当h5端使用vue-infinite-scroll 插件 做滚动加载 如:页面布局 <header></header> <div class='main'> </div> <footer></footer> 中间区域是计算好高度的话,使用vue-infinite-scroll 插件,这个时 阅读全文
摘要:
一、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( 阅读全文