接着自定义组件,这里是我自定义的一个modal对话框组件。 效果如下图所示: Modal.vue <template> <div class="modal-backdrop" v-if="modalShow"> <div class="modal" > <div class="modal-heade ...
分类:
其他好文 时间:
2021-04-21 12:33:42
阅读次数:
0
ECMAScript 6(以下简称ES6)是JavaScript语言的下一代标准。 最常用的ES6特性 let, const, class, extends, super, arrow functions, template string, destructuring, default, rest ...
分类:
其他好文 时间:
2021-04-21 12:02:32
阅读次数:
0
一、bit_xor 1、头文件 #include <functional> 2、模板 template <class T> struct bit_xor; template <class T = void> struct bit_xor; 3、返回两个参数按位XOR的结果(公共成员函数) 4、使用 ...
分类:
其他好文 时间:
2021-04-20 15:10:43
阅读次数:
0
#堆排序 通过将无序表转化为堆,可以直接找到表中最大值或者最小值,然后将其提取出来,令剩余的记录再重建一个堆, 取出次大值或者次小值,如此反复执行就可以得到一个有序序列,此过程为堆排序。 思路: 1.创建一个堆 H[0……n-1]; 2.把堆首(最大值)和堆尾互换; 3.把堆的尺寸缩小 1,并调用 ...
分类:
编程语言 时间:
2021-04-20 14:08:43
阅读次数:
0
1 // 变长参数传递与两个函数之间 2 template <class... Args> 3 void myTest(Args... args) { 4 printf("%d,%d,%d,%d", args...); 5 } 6 int main() { 7 myTest(1, 2, 3, 4); ...
分类:
其他好文 时间:
2021-04-19 15:50:56
阅读次数:
0
vue 模板语法是这样的: html: <div id='app'> <!-- 调用该组件之前必须先注册该组件! --> <test></test> </div> js: new Vue({ components: { // 注册 test 组件 test: { template: '<div cl ...
分类:
其他好文 时间:
2021-04-19 15:27:04
阅读次数:
0
Description Link. 起床困难综合症 上树。 Solution 线段树维护,树剖上树。 具体题解有空再写,我要去睡觉了。 #include<bits/stdc++.h> typedef unsigned long long ULL; struct node { ULL one,zero ...
分类:
其他好文 时间:
2021-04-19 15:09:51
阅读次数:
0
1、首先,通过Config Map来对容器中redis应用的配置进行管理,如自定义配置文件、密码、日志路径等 redis-standalone-conf.yml apiVersion: v1 kind: ConfigMap metadata: name: redis-standalone-conf ...
分类:
Web程序 时间:
2021-04-19 14:44:47
阅读次数:
0
#####效果:div内部swiper滑动时,外部div背景图片随着变化 ######思路:获取swiper的索引,用:style定义背景图片 //template //外部背景图片 <div class="cont-box" :style="{backgroundImage: 'url(' + b ...
分类:
其他好文 时间:
2021-04-15 11:59:42
阅读次数:
0
一、代码展示 <template> ... <div class="loading-animation-box" > <img class="loading-animation" width="26" height="28" src="../../../static/images/balabla.p ...
分类:
Web程序 时间:
2021-04-14 12:20:55
阅读次数:
0