1.给对象添加一个key值 成功的 <template> <div> <p>{{userInfo.name}}</p> <p>{{userInfo.sex ? userInfo.sex : ''}}</p> <button @click="updateName">修改userInfo</button ...
分类:
其他好文 时间:
2021-04-21 12:42:46
阅读次数:
0
接着自定义组件,这里是我自定义的一个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
做了个电脑端的二维码扫码工具。 可以直接识别屏幕中的二维码,支持多屏,高分屏(有的高分屏Windows会自动缩放字体)。 支持调用电脑摄像头扫码。 所用技术 .NET5 WinForm 本来用想用WPF的,由于要用到Win32注入还是算了。另外WPF所产生的依赖文件也更多。虽然最后发布时也没有选择独 ...
分类:
Web程序 时间:
2021-04-21 12:30:09
阅读次数:
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
Capability/feature WinUI 3 UWP XAML & WinUI 2 WPF WinForms MFC Windows app types supported UWP (Preview) and Win32 UWP Win32 Win32 Win32 Windows versi ...
#堆排序 通过将无序表转化为堆,可以直接找到表中最大值或者最小值,然后将其提取出来,令剩余的记录再重建一个堆, 取出次大值或者次小值,如此反复执行就可以得到一个有序序列,此过程为堆排序。 思路: 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