目录一、基本语句 1、循环控制(break,continue) 3、字符的替换(replace,repalceFirst,replaceAll,regex) 4、字符串的连接("+",append) 5、字符串的截取和分割(substring,split) 6、文件夹的创建与删除(mkdirs,de ...
分类:
编程语言 时间:
2017-03-14 22:58:49
阅读次数:
277
--关于游标 if,for 的例子create or replace procedure peace_ifis cursor var_c is select * from grade;begin for temp in var_c loopif temp.course_name='OS' then ...
分类:
数据库 时间:
2017-03-14 17:43:19
阅读次数:
196
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace ConsoleApplication4{ class P ...
分类:
其他好文 时间:
2017-03-14 11:00:48
阅读次数:
130
四种标量类型: boolean (布尔型) integer (整型) float (浮点型, 也称作 double) string (字符串) 两种复合类型: array (数组) object (对象) 最后是两种特殊类型: resource (资源) NULL (NULL) 为了确保代码的易读性 ...
分类:
Web程序 时间:
2017-03-14 10:47:43
阅读次数:
239
这里可以调用一个jq-qrcode库,然后根据参数往里面传内容即可,本人当时做的是一个名片系统,所以可以生成一个vcf文件在PC端。 具体项目文件请见:https://github.com/marhovey/QRcode; jq-qrcode直接访问:https://github.com/jerom ...
分类:
Web程序 时间:
2017-03-14 10:42:03
阅读次数:
686
比如文字是: Hello my name is bob find what 那里是: my name is (\w+) replace with 那里是: my name used to be $1 点replace,就可以把文字变为: Hello my name used to be bob 其中 ...
分类:
其他好文 时间:
2017-03-13 19:19:13
阅读次数:
184
1>replace的参数是char和CharSequence,既可以支持字符替换,也可以支持字符串替换。 2>replaceall参数是regex, replacement,regex表示是正则表达式。 String str = "wel2come3Souhe"; String str1 = str ...
分类:
编程语言 时间:
2017-03-13 18:33:01
阅读次数:
217
查看系统版本:lsb_release -a[root@localhost /]# lsb_release -aLSB Version: :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4. ...
分类:
系统相关 时间:
2017-03-13 13:16:01
阅读次数:
249
addClass()-为每个匹配的元素添加指定的样式类名after()-在匹配元素集合中的每个元素后面插入参数所指定的内容,作为其兄弟节点append()-在每个匹配元素里面的末尾处插入参数内容attr() - 获取匹配的元素集合中的第一个元素的属性的值bind() - 为一个元素绑定一个事件处理程 ...
分类:
Web程序 时间:
2017-03-13 11:20:36
阅读次数:
153
Maven规定,必须创建以下几个Source Folder src/main/resources src/main/Java src/test/resources src/test/java 添加以上的Source Folder 创建好后的目录如下: 2.配置Build Path 3.设定4个文件夹 ...
分类:
Web程序 时间:
2017-03-13 10:17:57
阅读次数:
245