我正在迭代json數據數組,但需要在迭代之前刪除第一個元素。我如何刪除最初的元素?這是我到目前爲止有:如何使用jquery彈出第一個數組元素?
$.post('player_data.php', {method: 'getplayers', params: $('#players_search_form').serialize()}, function(data) {
if (data.success) {
// How do I remove the first element ?
$.each(data.urls, function() {
...
});
}
}, "json");
'data.urls.shift()' – Shmiddty