网站首页 JavaScript 您当前的位置:首页> 学无止境> JavaScript
javascript 常见面试题问答,typeof、undefined.....
发布时间:2015-05-26编辑:邻芯 (1053)人看过
console.log(typeof(null)) // object console.log(typeof(undefined)) // undefined console.log(typeof(NaN)) // number console.log(NaN==undefined) // false console.log(NaN==NaN) // false var str="123abc"; console.log(typeof(str++)) // number console.log(str) // NaN
相关文章
- string字符串常用处理方法(去空、……、html编码)
- HTML 标签在剩余空间垂直居中
- js实现弹出窗口可移动、随窗口变化垂直居中的 可手动输入的弹出窗口
- JS根据类名获取元素getElementsByClassName
- javascript 添加和删除节点元素
- js区分鼠标单击和双击事件
- jQuery中dbclick、click、mousedown事件冲突解决方法
- JS优化技巧之性能优化
- JS设置cookie,获取cookie,删除cookie
- JavaScript如何控制内存
- JS数组转化字符串,字符串转化数组
- JQuery禁用a标签,JQuery禁用点击事件
- JQuery中append后之前的事件失效,重新加载javascript文件,IOS浏览器支持jquery的live方法
- html自定义toast提示语显示
- IE不兼容console.log()处理
- 百度地图经纬度纠偏
- js时间格式化工具,时间戳格式化,字符串转时间戳
- javascript获取当前url中所有的参数,并返回参数对象
- eslint 使用说明及配置规则
- 基于ES6常用函数、js常用工具函数