在XML中创建对象的目的是什么?

时间:2016-09-20 08:43:14

标签: javascript xml magento

var duplicates = ["a","a","b","c","a"];
var withoutDuplicates = duplicates.filter(function(currentValue, index) {
    return duplicates.indexOf(currentValue) == index;
});
console.log(withoutDuplicates); // Array [ "a", "b", "c" ]

此代码在XML中的用途是什么?

0 个答案:

没有答案