对于您的数据,函数如
readExtensions: (feature, extensions) => {
const children = extensions.children;
for (let i = 0; i < children.length; ++i) {
const element = children.item(i);
feature.set(element.tagName, element.textContent);
}
}
可用于将扩展元素转换为功能属性。