动态赋值 var str = ''; for (var i = 0; i < response.data.id_with_codes.length; i++){ str += '<option value="'+ response.data.id_with_codes[i][0] +'">'+ re ...
分类:
其他好文 时间:
2021-02-15 12:19:35
阅读次数:
0
struct drm_mode_config 模式配置控制结构体。 定义 struct drm_mode_config { struct mutex mutex; struct drm_modeset_lock connection_mutex; struct drm_modeset_acquire ...
分类:
其他好文 时间:
2021-02-15 12:16:04
阅读次数:
0
\(\text{原题链接}\) \(\text{题目大意}\) 初始有一个长度为 \(n\) 的序列 \(a\),初始全 \(0\)。 共 \(m\) 次修改,每次修改 \((l,r,v)\),让 \(a_i = \max(a_i, v), (l\leq i\leq r)\)。求出所有操作后的 \( ...
分类:
其他好文 时间:
2021-02-15 12:15:44
阅读次数:
0
#异常处理 异常处理 在公共配置模块添加异常处理器配置类 @ControllerAdvice @Slf4j public class GlobalExceptionHandler { @ExceptionHandler(Exception.class) //指定出现什么异常执行这个方法,此处指定的是 ...
分类:
其他好文 时间:
2021-02-15 12:12:59
阅读次数:
0
源码 /** * Make all properties in T optional */ type Partial<T> = { [P in keyof T]?: T[P]; }; /** * Make all properties in T readonly */ type Readonly<T ...
分类:
其他好文 时间:
2021-02-10 12:59:56
阅读次数:
0
在 C++ 11 中,"= default" 和 "= delete" 函数使我们能够显示指定成员函数是否自动生成。 其中,"= delete" 使我们能够避免所有函数 (特殊成员函数,普通成员函数和非成员函数) 参数中出现错误的类型提升 (导致非预期的函数调用)。 C++ 特殊成员函数: 即使用户 ...
分类:
其他好文 时间:
2021-02-10 12:59:39
阅读次数:
0
### go context理解 #### context包 总结起来就一句话:一个接口,四个实现,六个方法 (1.)一个接口 type Context interface { Deadline() (deadline time.Time, ok bool) Done() ←chan struct ...
分类:
其他好文 时间:
2021-02-10 12:51:22
阅读次数:
0
给定一棵二叉搜索树,请找出其中的第k小的结点。例如, (5,3,7,2,4,6,8) 中,按结点数值大小顺序第三小结点的值为4。 重点是,如何管理kk的值与最终结果的关系。 /* struct TreeNode { int val; struct TreeNode *left; struct Tre ...
分类:
其他好文 时间:
2021-02-09 12:14:08
阅读次数:
0
https://leetcode-cn.com/problems/er-cha-shu-de-jing-xiang-lcof/ 请完成一个函数,输入一个二叉树,该函数输出它的镜像。 例如输入: 4 / \ 2 7 / \ / \1 3 6 9镜像输出: 4 / \ 7 2 / \ / \9 6 3 ...
分类:
其他好文 时间:
2021-02-09 11:56:17
阅读次数:
0
动态组件 <component :is="componentName"></component>, componentName可以是在本页面已经注册的局部组件名和全局组件名,也可以是一个组件的选项对象。 当控制componentName改变时就可以动态切换选择组件。 is的用法 有些HTML元素,诸 ...
分类:
其他好文 时间:
2021-02-08 12:08:32
阅读次数:
0