- 博客(2)
- 问答 (4)
- 收藏
- 关注
原创 数字相关知识
1、数字前面的0可以省略,数字后面的0也可以省略42.toFixed(3) // SyntaxError (因为42.是一个数字)42..toFixed(3) // 正确写法42 .toFixed(3) // 正确写法 (常量后面打空格)// 不过对于常量而言,这样的语法很容易引起误会, 不建议使用 2、检测整数 Number.isInteger(num)Number.isInt
2017-06-06 20:59:55 254
原创 date.format,日期格式化
/* * date.format */ Date.prototype.format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours() %
2017-06-06 20:56:34 422
空空如也
echarts关系图配置,求教!
2017-06-07
请教下,怎么用js生成N个随机数,并且这N个随机数的和为1
2016-09-14
请教下:使用require.js的时候怎么解决文件之间的依赖问题?
2016-08-18
TA创建的收藏夹 TA关注的收藏夹
TA关注的人