1、大小写转化,将字符串转化成驼峰的方法 例:border-bottom-color转化为:borderBottomColor var str="border-bottom-color"; 方法一:字符串处理方式 function change(str){ var arr=str.split('-' ...
分类:
Web程序 时间:
2016-11-21 19:50:25
阅读次数:
163
JavaScript是区分大小写的语言,关键字、变量、函数名和所有的标识符都必须采用一致的大小写。 标识符:第一字符必须是一个字母、下划线(_)或一个美元符号($),其他字符可以是字母、下划线、美元符号或数字,不能把关键字、保留字、true、false 和 null 作为标识符。 数据类型 type ...
分类:
编程语言 时间:
2016-11-21 16:36:15
阅读次数:
392
keyspace类似关系数据库的schema或database; cassandra可以支持column数量到2 billion; primary index 建立在primay key基础上。primary key有1个或多个column组成,但不管哪种情况,第一部分(通常用括号括起来)作为par ...
分类:
其他好文 时间:
2016-11-21 07:49:24
阅读次数:
162
/** * java常见的控制流语句 * @author javawg * @version 2016-11-20 * */ public class IfTest { public static void main(String[] args) { // TODO Auto-generated m ...
分类:
编程语言 时间:
2016-11-20 18:21:08
阅读次数:
196
一、来自wikipidia的解释: Shallow copy One method of copying an object is the shallow copy. In that case a new object B is created, and the fields values of A ...
分类:
其他好文 时间:
2016-11-20 07:20:07
阅读次数:
280
A string such as "word" contains the following abbreviations: Given a target string and a set of strings in a dictionary, find an abbreviation of this ...
分类:
其他好文 时间:
2016-11-20 07:08:26
阅读次数:
402
在JavaScript中,RegExp对象表示正则表达式,用来对字符串进行匹配。 一、两种定义方法: 1、直接量法: /pattern/attribute 2、对象法: new RegExp(pattern,attribute); 参数说明: pattern是一个字符串,指定了正则表达式的模式或其他 ...
分类:
Web程序 时间:
2016-11-19 22:59:22
阅读次数:
166