使用JSON.stringify(filesArr)
后,我有一个如下所示的数组:
[
["Jellyfish.jpg","775702.0","image/jpeg","0"],
["Koala.jpg","780831.0","image/jpeg","0"],
["Tulips.jpg","620888.0","image/jpeg","0"]
]
如何通过匹配关键字来删除数组,例如:keyword: Jellyfish.jpg
这将是预期的结果:
[
["Koala.jpg","780831.0","image/jpeg","0"],
["Tulips.jpg","620888.0","image/jpeg","0"]
]
或者,对于keyword: Tulips.jpg
,预期结果将是:
[
["Jellyfish.jpg","775702.0","image/jpeg","0"],
["Koala.jpg","780831.0","image/jpeg","0"]
]
我正在使用以下方法解析数组:
var filesArr = $.parseJSON(theStringifyArr);
任何帮助都会很棒。