05 2020 档案

摘要:使用Object.prototype上的原生toString()方法判断数据类型,使用方法如下: Object.prototype.toString.call(value) 1.判断基本类型: Object.prototype.toString.call(null);//”[object Null] 阅读全文
posted @ 2020-05-11 10:54 smil、梵音 阅读(848) 评论(0) 推荐(0) 编辑
摘要:var oDate = new Date();console.log(oDate.getTime()); //时间戳 1588834927764 console.log(oDate.toLocaleTimeString()); // 3:02:48 PM console.log(oDate.toLo 阅读全文
posted @ 2020-05-07 15:10 smil、梵音 阅读(291) 评论(0) 推荐(0) 编辑
摘要:阮一峰的博客:http://www.ruanyifeng.com/blog/2010/05/object-oriented_javascript_inheritance.html 阅读全文
posted @ 2020-05-06 14:27 smil、梵音 阅读(111) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示