1. treeStore的C#类对象 public class ExtTreeNode { string id; string text; string icon; string url; bool leaf; bool expanded; List<ExtTreeNode> children = ...
分类:
其他好文 时间:
2020-06-22 14:54:06
阅读次数:
73
VUE实现使用富文本编辑,如下图: 实现这个富文本编辑需要以下步骤: 第一步:安装编辑器组件 npm install vue-quill-editor –-save第二步:创建一个Ue.vue的文件,放如下代码 <template> <div> <script id="editor" type="t ...
分类:
其他好文 时间:
2020-06-21 17:36:01
阅读次数:
49
Ansible介绍 自动化运维工具,统一配置管理工具。 可以通过一个命令完成一系列的操作,进而能减少重复性的工作和维护成本,可以提高工作效率。 统一配置管理工具: Ansible 开发语言:Python 轻量级,大规模环境下只通过ssh会很慢,串行的 SaltStack 开发语言:Python 一般 ...
分类:
其他好文 时间:
2020-06-21 00:32:00
阅读次数:
69
import torch.nn as nnimport torchvision.models as modelsclass resnet(nn.Module): def __init__(self): super(resnet,self).__init__() self.model = models ...
分类:
其他好文 时间:
2020-06-21 00:29:09
阅读次数:
96
遍历mac系统访达文件时候要注意了,每个文件夹会多出来一个隐藏文件.DS_Store,是用来储存文件夹配置信息的 import os a,*b = os.walk(root_path) # a--> (root_path, children dirnames, children files) fil ...
分类:
系统相关 时间:
2020-06-20 21:07:00
阅读次数:
75
pm = static 静态,始终保持一个固定数量的子进程,这个数由(pm.max_children)定义,这种方式很不灵活,也通常不是默认的。 pm = dynamic 动态,在更老一些的版本中,dynamic被称作apache-like。子进程的数量在下面配置的基础上动态设置:pm.max_ch ...
分类:
Web程序 时间:
2020-06-19 13:38:42
阅读次数:
60
在前边的博客在分析了mybatis解析typeAliases标签,《mybatis源码配置文件解析之三:解析typeAliases标签》。下面来看解析plugins标签的过程。 一、概述 在mybatis的核心配置文件(mybatis-config.xml)文件中,有关plugins的配置如下, < ...
分类:
其他好文 时间:
2020-06-18 19:21:57
阅读次数:
37
AtomicIntegerFieldUpdater测试类 package com.dwz.atomicApi; import java.util.concurrent.atomic.AtomicIntegerFieldUpdater; public class AtomicIntegerFieldU ...
分类:
其他好文 时间:
2020-06-18 16:17:34
阅读次数:
60
<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title></title> </head> <body> <script src="../js/vue.js"></script> <div id="app"> <!-- ...
分类:
其他好文 时间:
2020-06-18 01:14:25
阅读次数:
45
$refs 作用 获取对应组件实例,如果是原生dom,那么直接获取的是该dom。获取之后我们可以使用它的属性和方法。 使用方法: // 我们需要获取实例ref (dom) <my-component ref="myRef"></my-component> // 然后我们在js中通过$refs方式获取 ...
分类:
其他好文 时间:
2020-06-17 18:21:12
阅读次数:
61