<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<script>
function isObject( data ){
// return (typeof data === "object" && data !== null && data.constructor && data.constructor === Object)
// 判定数据类型必须为 "object" , data 不能为 null(因为typeof null === "object");
// data.constructor 区分数组和对象;
typeof data === "object" && data !== null && data.constructor && data.constructor === Object
}
// 对象合并;
function as
cookie封装合并
最新推荐文章于 2022-03-03 10:13:08 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)