<1>find 检测 str 是否包含在 mystr中,如果是返回开始的索引值,否则返回-1 <2>index 跟find()方法一样,只不过如果str不在 mystr中会报一个异常. <3>count 返回 str在start和end之间 在 mystr里面出现的次数 <4>replace 把 m ...
分类:
其他好文 时间:
2019-03-14 00:27:37
阅读次数:
167
这段程序主要用于比较sdk的版本号,例如 8.9.1 和8.9.0,8.9.1和8.7的比较。 ...
分类:
编程语言 时间:
2019-03-13 21:27:40
阅读次数:
307
思路是页面关闭前将 的数据存储到浏览器缓存里,页面加载时再取出来存到 中 ...
分类:
其他好文 时间:
2019-03-13 19:54:58
阅读次数:
834
一.调用存储过程 1.首先在数据库中定义存储过程,定义的存储过程的代码如下: create or replace function fun_add(p1 number ,p2 number) return number asbegin return p1+p2;end; 2.通过接口映射Sql,定义 ...
分类:
其他好文 时间:
2019-03-13 10:47:33
阅读次数:
171
使用完释放记得内存free(str),防止内存泄露 char * replace (const char *str, const char *src, const char *dst){ const char* pos = str; int count = 0; while ((pos = strs ...
分类:
其他好文 时间:
2019-03-12 18:34:44
阅读次数:
204
解决方法1:SET sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));这种修改只是暂时性的,还是在 my.ini 文件中的sql-mode直接修改比较好。 解决方法2:使用语句查询 sql_mode 的值再到 my.ini(w ...
分类:
数据库 时间:
2019-03-12 10:41:28
阅读次数:
247
题目 Given an array A of integers, we must modify the array in the following way: we choose an i and replace A[i] with A[i], and we repeat this process ...
分类:
其他好文 时间:
2019-03-10 19:08:06
阅读次数:
144
SQL语句复习【专题九】 视图:View视图的概念:视图是从若干基本表或其他视图构造出来的表。在创建一个视图时,只是存放的视图的定义,也即是动态检索数据的查询语句,而并不存放视图对应的数据在用户使用视图时才去求相对应的数据。所以视图被称作“虚表”。--创建视图 replace 是可选的。--创建视图 ...
分类:
数据库 时间:
2019-03-09 22:03:44
阅读次数:
198
1 String.prototype.Trim = function() 2 { 3 return this.replace(/(^\s*)|(\s*$)/g, ""); 4 } 5 String.prototype.LTrim = function() 6 { 7 return this.repl... ...
分类:
编程语言 时间:
2019-03-08 20:52:19
阅读次数:
177
官网地址:https://www.elastic.co/cn/ ELK是Elasticsearch、Logstash、Kibana的简称,这三者是核心套件,但并非全部。 Elasticsearch是实时全文搜索和分析引擎,提供搜集、分析、存储数据三大功能;是一套开放REST和JAVA API等结构提 ...
分类:
其他好文 时间:
2019-03-07 18:03:15
阅读次数:
180