1、创建Array对象创建Array对象的语法var 数组名 = new Array();定义数组之后,就需要向数组中添加元素,格式如下数组名[<下标>]=值;2、Array对象属性Array对象仅提供了4个属性index:字符在字符串的匹配位置,或者找不到返回-1input:指定匹配正则表达式的原始字符串length:返回数组的长度,即数组里有多少个...【阅读全文】
起因……额……不好说……说不好……还是从js来讲,由于NHN的树残兄问了个问题:7>>1 是 3 而 -7>>1 是 -4,为啥?先排除 js 的干扰,ECMAScript 的 9.8.1 ToString Applied to the Number Type 内第三条:3.If m is less than zero, return the String concatenation of the String "-" and ToString(?m).这...【阅读全文】