存儲在本地存儲這是我的多維數組:刪除陣列使用JavaScript
[
{"leads":"Akhil","email":"[email protected]","phone":"9999-999-999","referance":"ByReferance","nameref":"Anand","preftime":"Afteroon"},
{"leads":"Anand","email":"[email protected]","phone":"9998789333","referance":"email","nameref":"AAA","preftime":"Afteroon"}
]
我想刪除從多維數組這個數組,按鈕
{"leads":"Akhil","email":"[email protected]","phone":"9999-999-999","referance":"ByReferance","nameref":"Anand","preftime":"Afteroon"}
,怎麼可能?
使用剪接功能刪除。方法Array.splice(索引,1); –
你想根據名稱找出數組中的項目嗎? – gurvinder372