2016年8月15日

Object:Array数组——对象的集合

摘要: 数组的属性: arr.length 长度为最后一个元素的下标+1[从0开始] 数组的方法: concat() //连接两个或更多的数组,并返回结果 arrayObject.concat(array1,array2,...,arrayN) #该方法不会改变现有的数组,而仅仅会返回被连接数组的一个副本。 阅读全文

posted @ 2016-08-15 18:58 Thelma 阅读(255) 评论(0) 推荐(0)

Object:Math——对数据的数学计算

摘要: Math无需创建,可以直接使用其属性和方法。 Math对象属性 E // 返回算术常量 e,即自然对数的底数(约等于2.718) LN2 // 返回 2 的自然对数(约等于0.693)。 LN10 // 返回 10 的自然对数(约等于2.302) LOG2E // 返回以 2 为底的 e 的对数(约 阅读全文

posted @ 2016-08-15 17:58 Thelma 阅读(234) 评论(0) 推荐(0)

Object:String——regular function (updating)

摘要: String_ 阅读全文

posted @ 2016-08-15 16:56 Thelma 阅读(264) 评论(0) 推荐(0)

Object: Date对象——时间的设置和返回

摘要: Javascript~时间 //时间的设置和返回 Step1:定义时间对象—— var mydata=new Date(); Step2: 根据需求返回时间: get/setDate() 返回/设置日期 get/setFullYear() 返回/设置年份(四位数表示) get/setYear() 返 阅读全文

posted @ 2016-08-15 14:06 Thelma 阅读(427) 评论(0) 推荐(0)

导航