数组方法indexOf
时间:2021-08-25 23:43:37
收藏:0
阅读:18
https://blog.csdn.net/front_endxiaobaia/article/details/105420530
数组.indexOf(元素)返回-1或索引值
js中indexOf方法传递对象作为参数
let a=[{"q":1}].indexOf({"q":1})//a=-1
原文:https://www.cnblogs.com/xwqqq/p/15186669.html
评论(0)