function addLink() { let body_element = document.body; let selection = window.getSelection(); let locationHref = document.location.href; let appendLin ...
分类:
Web程序 时间:
2021-06-13 10:12:51
阅读次数:
0
突然有这么个需求,变量列表,索引现实为中文 const toChinesNum = (num) => { let changeNum = ['零', '一', '二', '三', '四', '五', '六', '七', '八', '九']; //changeNum[0] = "零" let unit ...
分类:
Web程序 时间:
2021-06-13 09:51:06
阅读次数:
0
1、安装echarts依赖 npm install echarts -S 2、main.js中配置 : // 引入echarts import echarts from 'echarts' Vue.prototype.$echarts = echarts 3、在页面中//,引入基本模板 let ec ...
分类:
其他好文 时间:
2021-06-13 09:49:43
阅读次数:
0
这题非常类似 P1972 [SDOI2009]HH的项链,这是数颜色的题目的常见套路。 首先,出现偶数次的数的异或和 转化为 所有数的异或和 与 所有不重复数的异或和 的异或和。 前者是前缀和可以搞定的,后者就是区间数颜色的做法。先处理出每个点的颜色上一次出现位置 \(pre\)。离线询问,按右端点 ...
分类:
其他好文 时间:
2021-06-13 09:35:49
阅读次数:
0
VUEX 1、安装 cnpm install vuex--save 2、导入,src下新建一个文件夹vuex,文件夹下新建一个store.js import Vue from 'vue' import Vuex from 'vuex' Vue.use(Vuex); 3、state 相当于vue项目的 ...
分类:
其他好文 时间:
2021-06-13 09:32:07
阅读次数:
0
Rsync+Notify: yum install make gcc gcc-c++ 客户端启动rsync port:873/usr/local/rsync/bin/rsync --daemon --config=/usr/local/rsync/rsync.conf Client:tar xf r ...
分类:
其他好文 时间:
2021-06-13 09:26:06
阅读次数:
0
防抖 function debounce(fun,delay){ let timer = null return function(){ if(timer){ clearTimeout(timer) } timer = setTimeout(()=>{ fun.apply(this,argument ...
分类:
编程语言 时间:
2021-06-11 18:25:11
阅读次数:
0
import javax.validation.ConstraintViolation; import org.springframework.stereotype.Service; import org.springframework.validation.beanvalidation.Local ...
分类:
其他好文 时间:
2021-06-11 18:17:56
阅读次数:
0
Vue3.x中的mixin介绍使用 混入 (mixin) 提供了一种非常灵活的方式,来分发 Vue 组件中的可复用功能。一个混入对象可以包含任意组件选项。当组件使用混入对象时,所有混入对象的选项将被“混合”进入该组件本身的选项。 1、新建mixin/base.js const baseMixin = ...
分类:
其他好文 时间:
2021-06-11 18:15:30
阅读次数:
0
#include <stdio.h> const int N=3; int main() { int a[N] = {1, 2, 3}; int i; printf("通过数组名和下标直接访问数组元素:\n"); for(i=0; i<N; i++) printf("%d: %d\n", &a[i] ...
分类:
其他好文 时间:
2021-06-11 17:32:53
阅读次数:
0