摘要: 实现思路:根据当前环境是否存在某个对象来判别,如果光存在还不足以判别就再判断属性,最终将结果返回。 /** * Determine if we're running in a standard browser environment * * This allows axios to run in a 阅读全文
posted @ 2020-07-11 11:58 StackOcean 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 直接看代码吧,浅显易懂并配有英文注解, /** * Iterate over an Array or an Object invoking a function for each item. * * If `obj` is an Array callback will be called passi 阅读全文
posted @ 2020-07-11 11:40 StackOcean 阅读(333) 评论(0) 推荐(0) 编辑