js常用函数 1.value.slice(stratIndex,endIndex); 按起始终止下标截取字符串的子串。 2.Math.abs(value);获得value的绝对值函数。 3.var date = new Date();创建日期变量