采用以下规范的XML阵列:
$(this).find("cp_group").each(function() {
$("select#comp_1").append( <optgroup label=" + $(this).attr( label ) + "><option> + $(this).find("cmp").map(function() {
return $(this).text();
}).get().join("</option><option>") + $(this).append( </option></optgroup> ));
});
在每一选项组的最后一种选择中,一获得不想要的[目标]:
<select name="comp_1" id="comp_1">
<optgroup label="Combat">
<option>Arme</option>
<option>Arts martiaux</option>
<option>Esquive</option>
<option>Feinte</option>
<option>Parade</option>
<option>Lutte[object Object]</option>
I dont understand from where this [object Object] come from and I didn t achieve to not get it or to remove it. Thanks for you help.