https://blog.csdn.net/front_endxiaobaia/article/details/105420530
数组.indexOf(元素)返回-1或索引值
js中indexOf方法传递对象作为参数
let a=[{"q":1}].indexOf({"q":1})//a=-1
2022-04-08 02:28:49
https://blog.csdn.net/front_endxiaobaia/article/details/105420530
数组.indexOf(元素)返回-1或索引值
let a=[{"q":1}].indexOf({"q":1})//a=-1