内置对象: 语言自带的对象/提供了常用的.基本的功能 打印数组和字符串不用for... in / 打印josn的时候采用for...in Date 获取当前事件: var date = new Date() ; var date = new Date('2017/04/02 9:55:00 ') ;定义一个指定日期的时间对象 getDate( ) 获取日期1-31 getDay () 获取今天是周几 0-6 getMonth () 月份 0-11 getFull…
scala代码块 截取以某个字符开头,以某个字符结尾的字符串 def main(args: Array[String]): Unit = { val s = "{{a61,a2,a3},{b1,b2,b3},{c1m,.,kkl,c2,c3}}" val reg = Pattern.compile("\\{(\\w+?),") val matcher = reg.matcher(s) while (matcher.find()) { println(matcher.…