- ALL
- linux30
- java25
- 前端5
- vue4
- 数据库3
- git3
- 工具3
- hexo2
- app2
- framework2
- windows2
- 资源1
- api1
- docker1
- mysql1
- markdown1
- maven1
- question1
- nginx1
在指定时间执行js中的方法
使用moment.js库
官网下载
//! moment.js
;
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
global.moment = factory()
}(this, (function () {
'use strict';
var hookCallback;
function hooks() {
return hookCallback.apply(null, arguments);
}
// This is done to register the method called with moment()
...
整个网站变为灰色
添加整个网站变灰的开关
添加网站变灰的css文件
html {
-webkit-filter: grayscale(100%);
filter: grayscale(100%);
filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);
}
index.styl 控制该css文件是否引入
if hexo-config('whole_blog_grey.enable')
@import 'grey/index.css'
效果
纯css实现文字滚动
纯css实现横向滚动和纵向滚动
allbs工具类说明 - oss工具
allbs工具类说明 - oss工具,支持minio、阿里云、华为云、腾讯云、京东云
spring boot+mybatis plus进行sql拦截实现权限过滤,优化升级
上一篇的内容优化升级,实现类上注解,新增、删除、更新时同时进行数据权限判断
el-upload文件上传封装
文件上传组件封装、预览,使用element-ui的el-upload组件
js常用的工具类示例
常用的js工具类示例。轮训获取树形结构的每一条线,获取一个树形结构的某一个树形的一维数组,根据某一个节点获取所有的祖级节点,数组去重,时间格式化,对象深拷贝,构造树形结构,计算坐标中心点
uni-app跨域问题处理
uni-app发送的请求中包含自定义header导致的跨域问题解决,包含uni-app处理方式和spring boot服务解决方式。
spring boot+mybatis plus进行sql拦截实现权限过滤
实现以下业务场景:登录用户绑定一个或多个机构,每个机构包含若干个企业,根据列名`ent_id`在数据库进行企业数据筛选,登录用户查询数据时会自动筛选出用户关联的企业数据。
vue实现3d地图的展示与切换
引入echarts依赖
npm install echarts
npm install echarts-gl
定义一个使用3d地图的组件
<template>
<div class="echarts"/>
</template>
<script>
import {watchEffect} from 'vue'
import * as echarts from 'echarts'
import debounce from 'lodash/debounce'
import {addListener, removeListener} from 'resize-detector'
const INIT_TRIGGERS = ['theme', 'initOptions', 'autoResize']
const REWATCH_TRIGGERS = ['manualUpdate', 'watchShallow']
export default {
props: {
option: {
type: Object,
...