ES6随笔 各数据类型的扩展(2) 数值 二进制和八进制表示 二进制 (或 )表示;八进制 (或 )表示; 这两种字符串转换成十进制数值,使用 方法; Number.isFinite(), Number.isNaN(); 的参数如果不是数值,一律返回 , /` Infinity NaN false` ...
分类:
其他好文 时间:
2018-06-18 11:48:53
阅读次数:
199
function add(user1, length) { let status = true; //状态值 console.log("请输入新增学生姓名:"); let name = readline.question(); let reg1 = /[a-zA-Z]/; //使用正则表达式来确保学... ...
分类:
编程语言 时间:
2018-05-27 22:12:03
阅读次数:
157
1, unsupported operand type(s) for /: 'map' and 'int' 机器学习实战 PCA程序 解决办法: 2 ,TypeError: ufunc 'isnan' not supported for the input types, and the inputs ...
分类:
编程语言 时间:
2018-05-22 22:11:10
阅读次数:
1904
const readline = require("readline-sync"); console.log("请输入一个年份:"); let year = readline.question()-0; while (isNaN(year) || year 2018) { console.log("... ...
分类:
编程语言 时间:
2018-05-20 18:12:54
阅读次数:
181
Array.prototype.remove = function (dx) { if (isNaN(dx) || dx > this.length) { return false; } for (var i = 0, n = 0; i < this.length; i++) { if (this[ ...
分类:
Web程序 时间:
2018-05-19 13:13:10
阅读次数:
206
本文转自:http://www.jeasyui.net/demo/512.html Different date formats are applied to different DateBox components. Different date formats are applied to di ...
分类:
其他好文 时间:
2018-05-16 00:21:47
阅读次数:
243
基于上一篇随笔后,新需求需要再导出的表格上面加一行标题行 ...
分类:
Web程序 时间:
2018-05-08 14:34:51
阅读次数:
847
1. input 内容修改后的事件(oninput、onpropertychange) 2. input 焦点离开后事件 3. jquery 找到 某个 标签下的 某个 东东 4. jquery 找到 某某 开头的 东东 5. 去除所有空格 6. textarea 根据内容自适应高度 7. 只能输入 ...
分类:
Web程序 时间:
2018-05-03 20:04:14
阅读次数:
217
23.流程控制介绍 24.流程控制 if语句基本使用 26.if语句注意事项 27.if语句练习1 28.if语句练习2 29.if语句练习3 30.if语句练习4 31.if语句练习5 32.switch--上 基本格式: 33.if和switch的区别 34.switch的练习题 35.whil ...
分类:
其他好文 时间:
2018-05-02 21:01:54
阅读次数:
155
通用函数:能同时对数组中所有元素进行运算的函数。 常见的通用函数: 一元函数:abs(绝对值), sqrt(开根号),exp,log,ceil,floor,rint/rount,trunc,modf,isnan,isinf,cos,sin,tan 二元函数:add,substract,multipl ...
分类:
其他好文 时间:
2018-05-02 16:12:30
阅读次数:
254