摘要: function fix(num, length) { return ('' + num).length < length ? ((new Array(length + 1)).join('0') + num).slice(-length) : '' + num;} fix(1234, 8);// 阅读全文
posted @ 2021-08-21 15:07 郑州谷多软件 阅读(157) 评论(0) 推荐(0) 编辑