-1
削除配列内のすべての必要な項目を持っているdoesntの完全な配列を取り除くには:彼らとして[2] [0] & OBJをOBJを取り除くたかったです例えば...削除または「カテゴリ」フィールド</p> <p>REQを持っているdoesntの配列
をカテゴリフィールドを肝炎ません。
JSデータを:
のp/oを期待var obj=[
{"email":"[email protected]","event":"open"},
{"ip":"24.38.43.233","email":"[email protected]","category":["webinar"]},
{"email":"[email protected]","event":"open"},
{"ip":"24.98.43.230","email":"[email protected]","category":["webinar"]},
{"ip":"24.77.55.931","email":"[email protected]","category":["webinar"]},
{"ip":"44.67.85.456","email":"[email protected]","category":["webinar"]}
];
:
VAR OBJ = [
{"ip":"24.38.43.233","email":"[email protected]","category":["webinar"]},
{"ip":"24.98.43.230","email":"[email protected]","category":["webinar"]},
{"ip":"24.77.55.931","email":"[email protected]","category":["webinar"]},
{"ip":"44.67.85.456","email":"[email protected]","category":["webinar"]}
]。
質問は、私は完全に質問を理解していない、シンプルな理解のために...事前に おかげで....
おかげで、あなたのコードを試してみましたが、それは私の要求に正反対の、「カテゴリ」フィールドを持っているdoesntの配列を結果...私はカテゴリを持っている唯一の配列を必要としています。 ... plsの確認と更新... –
@ jesseoneshmark更新された答えを確認し、私はフィルタ条件を否定しました。 –
おかげさまで、フリーマンさん...コードはうまくいきます。 –