js object 中刪除某個元素而且重置obj[obj.splice(1,1)]

 for (var i = 0; i < old.length; i++) {
        if(old[i].id==$(spanthis).data("id")){
            // old[i].id=0;
            // old[i].name='';
            old.splice(i,1)
        }this

        if(old.length==0){
            area.old=[];
        }
    }spa

相關文章
相關標籤/搜索