我有一个像这样的多维javascript数组。
[
["9", "16", "19", "24", "29", "38"],
["9", "15", "19", "24", "29", "38"],
["10", "16", "19", "24", "29", "38"],
["9", "16", "17", "19", "24", "29", "39"],
["10", "16", "17", "19", "24", "29", "39"],
["9", "15", "21", "24", "29", "38"]
.......
.......
]准确地说大约是40岁左右
而我有另一个名为check的数组,它的值如下
 [9,10] //This is of size two for example,it may contain any number of elements BUT it only contains elements(digits) from the multidimensional array above我想要的是使多维数组对于check数组元素来说是唯一的
1.例如,如果检查数组为[15],则多维数组将为
[
    ["9", "15", "19", "24", "29", "38"],
   //All the results which contain 15
]2.例如,如果检查数组为[15,21],则多维数组将为
[
    ["9", "15", "21", "24", "29", "38"]
    //simply containing 15 AND 21.Please note previous example has only 15 in it not 21
    //I need an AND not an OR
]我已经尝试过JavaScript IndexOf方法了,它得到的结果是OR,不是BUt
提前感谢
https://stackoverflow.com/questions/11881859
复制相似问题