class TestClass { public static void test(params int[] array) { string s;foreach (int i in array) { Console.WrriteLine(i); } } } public static void Ma ...
Given a binary tree, return the values of its boundary in anti-clockwise direction starting from root. Boundary includes left boundary, leaves, and ri ...
分类:
其他好文 时间:
2020-04-15 21:10:31
阅读次数:
65
<Row className="row_gap workerFus"> <Col span={6} className="text_right"> {/* <div className="row_label">数据中心<span className = "colonyColor">*</span>< ...
分类:
其他好文 时间:
2020-04-15 10:57:51
阅读次数:
191
var res = await ajax.myPost( "resource/bind_floating_ips?data_center="+ this.state.bindingFloatIPModal.dataCenter + "&business=" + this.state.bindingF ...
分类:
其他好文 时间:
2020-04-15 10:45:07
阅读次数:
119
using System;using System.IO;using System.Text;using System.Security.Cryptography; namespace Elight.Infrastructure{ /// <summary> /// 字符串加密解密方法扩展类。 // ...
分类:
其他好文 时间:
2020-04-14 22:29:27
阅读次数:
74
using System;using System.Collections.Generic;using System.Linq;using System.Net;using System.Net.NetworkInformation;using System.Net.Sockets;using Sy ...
Mybatis 动态 sql 可以在 Xml 映射文件内,以标签的形式编写动态 sql,执行原理 是根据表达式的值 完成逻辑判断并动态拼接 sql 的功能。 Mybatis 提供了 9 种动态 sql 标签:trim | where | set | foreach | if | choose | w ...
分类:
数据库 时间:
2020-04-12 20:32:58
阅读次数:
412
//方法1 let str = 'zhumolanglafengyouyihah'; let max = 0, res = [], flag=false; str = str.split('').sort((a,b)=>a.localeCompare(b)).join(''); for(let i ...
分类:
其他好文 时间:
2020-04-11 23:55:24
阅读次数:
121
1. 为什么要使用线程池? 我们知道,操作系统创建线程、切换线程状态、终结线程都要进行CPU调度 这是一个耗费时间和系统资源的事情。服务端应用程序例如web应用中,比较常见的情况是:每当一个请求到达就创建一个新线程,然后在新线程中为请求服务。 每个请求对应一个线程(thread per reques ...
分类:
编程语言 时间:
2020-04-10 17:16:45
阅读次数:
79
mapMutations是vuex的mutation的辅助函数,用于在组件中映射mutation内的方法,以便在该组件中直接使用mutation里的方法 (说白了,就是一 语法糖 ) 1.在组件中导入vuex中的mapMutations: 2.在组件中导入mutation里的方法名: 这一步,是将m ...
分类:
其他好文 时间:
2020-04-10 13:30:43
阅读次数:
843