一、函数原型 该函数定义在头文件< algorithm >中,作用为找区间的最大值(最小值)。 max_element template< class ForwardIt > ForwardIt max_element(ForwardIt first, ForwardIt last ); templ ...
分类:
其他好文 时间:
2020-07-17 19:33:04
阅读次数:
83
自定义控件是需要实现input事件 并发送input事件传递当前值 使用该组件是无法把输入的数据绑定到data中的变量中 <template> <div> <input type="text" :value="value" @input="input"> </div> </template> <sc ...
分类:
其他好文 时间:
2020-07-17 14:04:14
阅读次数:
90
1 函数模板 #include <iostream> using namespace std; template <typename T> T square(T a) { return a * a; } int main(void) { cout << square<int>(3) << endl; ...
分类:
编程语言 时间:
2020-07-17 14:03:22
阅读次数:
65
https://i.cnblogs.com/posts?cateId=1048797 <template> <el-table :data="list" class="bg-fff" :row-class-name="rowIndex" > <el-table-column :formatter=" ...
分类:
其他好文 时间:
2020-07-17 13:36:11
阅读次数:
80
1,一套代码,多套公用 2,运行我们想要的类型 npm run dev : (mp-weixin) 3,打包我们想要的类型npm run build : 。。。。 4,template + view 5,引入一个模块 <script> var util = require('../../../com ...
分类:
移动开发 时间:
2020-07-16 22:01:34
阅读次数:
133
<template> <div class="m50"> <el-table border style="margin-top: 50px;" :data="originData"> <el-table-column label="题型" property="type" align="center" ...
分类:
其他好文 时间:
2020-07-16 18:22:28
阅读次数:
113
模板template 每个连接路由使用编程式路由,效率还不是很高,因为每个类别都添加了相同的点击事件,多加了很多回调,浪费内存,可采用事件委派,给相同的父元素添加即可 <div class="all-sort-list2" @click="toSearch"> <div v-for="(c1, in ...
分类:
其他好文 时间:
2020-07-16 11:56:35
阅读次数:
70
std::accumulate 该函数定义于头文件 ,它主要用于累加求和和自定义数据类型的处理。 template< class InputIt, class T > constexpr T accumulate( InputIt first, InputIt last, T init ); tem ...
分类:
其他好文 时间:
2020-07-16 00:07:47
阅读次数:
69
一、注册组件 1.全局注册 利用Vue.component()方法,先传入一个自定义组件的名字,然后传入这个组件的配置。 然后就可以在Vue实例挂载的DOM元素中使用它。 Vue.component('mycomponent',{ template: `<div>这是一个自定义组件</div>`, ...
分类:
其他好文 时间:
2020-07-15 23:49:34
阅读次数:
66
loj536「LibreOJ Round #6」花札(二分图博弈) loj 题解时间 很明显是二分图博弈。 以某个点为起点,先手必胜的充要条件是起点一定在最大匹配中。 判断方法是看起点到该点的边有流量且该点不在起点割集中。 #include<bits/stdc++.h> using namespac ...
分类:
其他好文 时间:
2020-07-15 23:11:15
阅读次数:
70