次のような単純な配列を作成したいとitem_structure = {thumb, head, cont}
思います。コードは次のとおりです。
$('.items_options').find('#'+item_id+' .option .blog_item_structure li')
.each(function(event) {
var item_class = $(this).attr('class');
item_structure[] = item_class;
});
しかし、表現が機能しitem_structure[] = ...
ていないようです。では、リグ構文とは何か知っている人はいますか?
あなたの時間のためのThx。