2020年7月22日

摘要: 判断变量是数组还是对象,使用Object.prototype.toString.call(),兼容性好,切勿使用typeof来判断对象或者数组,因为typeof得到的都是object; function isObjArr(value){ if (Object.prototype.toString.c 阅读全文

posted @ 2020-07-22 16:47 zkx4213 阅读(965) 评论(0) 推荐(0) 编辑


Copyright © 2024 zkx4213
Powered by .NET 8.0 on Kubernetes