https://blog.csdn.net/front_endxiaobaia/article/details/105420530
数组.indexOf(元素)返回-1或索引值
let a=[{"q":1}].indexOf({"q":1})//a=-1
数组方法indexOf
原文:https://www.cnblogs.com/xwqqq/p/15186669.html