随笔分类 - JavaScript Method
JS 常用方法记录
常用判断方法
摘要:1. function isUndefinedOrNull(obj){ return typeof obj 'undefined' || obj null; } function isNullOrWhiteSpace(obj){ return typeof obj 'undefined' || ob
阅读全文
日期时间转换处理
摘要:1.获取一周中的第一天 //获取一周中的第一天 function getFirstDay(day) { var now = day; var nowTime = now.getTime(); var day = (now.getDay() == "0" ? "7" :now.getDay() );
阅读全文