摘要:
实现思路:根据当前环境是否存在某个对象来判别,如果光存在还不足以判别就再判断属性,最终将结果返回。 /** * Determine if we're running in a standard browser environment * * This allows axios to run in a 阅读全文
摘要:
直接看代码吧,浅显易懂并配有英文注解, /** * Iterate over an Array or an Object invoking a function for each item. * * If `obj` is an Array callback will be called passi 阅读全文
摘要:
实现需求: 在页面上显示 距离活动截止的时间 // startDate 活动开始日期 // endDate 活动截止日期 function endDistance(startDate, endDate) { var y, d, h, m, s; // 获取相差毫秒数 var leftTime = e 阅读全文