<script> Date.prototype.format = function(fmt) { var o = { "M+" : this.getMonth()+1, //月份 "d+" : this.getDate(), //日 "h+" : this.getHours(), //小时 "m+"... ...
分类:
其他好文 时间:
2019-09-20 15:19:22
阅读次数:
137
大多数算法定义在头文件algorithm中,在头文件numeric中定义了数值泛型算法。 以find算法为例:在容器的两个迭代器指定的范围内遍历,查找特定值。 1 int val=44; 2 auto result=find(ivec.begin(),ivec.end(),val); 3 cout< ...
分类:
编程语言 时间:
2019-09-20 14:07:09
阅读次数:
114
String str="Hello World"; System.out.println( str.replace( 'H','W' ) ); System.out.println( str.replaceFirst("He", "Wa") ); System.out.println( str.re ...
分类:
其他好文 时间:
2019-09-19 23:39:51
阅读次数:
92
在plsql或sqlplus中创建目录: create or replace directory dmp11g as '/home/oracle/dmps3';grant read,write on directory dmp11g to system; 导出语句示例: expdp system/o ...
分类:
数据库 时间:
2019-09-19 14:18:00
阅读次数:
145
Zabbix Snmp Trap 配置 1. Zabbix Server 操作 1.1 Snmp Trap 安装配置 1.2 SnmpTT 安装配置 shell rpm ivh http://dl.fedoraproject.org/pub/epel yum install snmptt perl ...
分类:
其他好文 时间:
2019-09-18 19:34:54
阅读次数:
214
字符串的替换 replace('被替换值','替换成的值') 字符串是“不可改变”的,我们通过[]可以获取字符串指定位置的字符,但是我们不能改变字符串,但是,我们确实有时候需要替换某些字符。这时,只能通过创建新的字符串来实现,整个过程中,实际上我们是创建了新的字符串对象,并指向了变量 b,而不是修改 ...
分类:
其他好文 时间:
2019-09-18 17:53:16
阅读次数:
123
题目: You are given an input string. For each symbol in the string if it's the first character occurence, replace it with a '1', else replace it with th ...
分类:
其他好文 时间:
2019-09-17 12:44:58
阅读次数:
107
Porsche Piwis III is the newest Porsche Diagnostic Tool in the market. PIWIS III PST3 can replace Porsche Piwis tester II completely. PIWIS III compar ...
分类:
其他好文 时间:
2019-09-15 17:11:45
阅读次数:
124
最近做的项目中遇到个需要在前端页面中将某个设备需要的数据格式展示出来,方便用户配置。一开始单纯的将数据格式写入到pre标签中, 但是通过pre标签写入的数据格式在代码可视化上不是很优雅。由于上述原因,所以就创建了一个全局的数据格式配置文件,通过es6 中的模板字符串来实现,这样就解决了代码可视化不优... ...
分类:
Web程序 时间:
2019-09-14 12:05:04
阅读次数:
176
Refactoring and Housekeeping: ...
分类:
编程语言 时间:
2019-09-13 19:48:09
阅读次数:
99