【JavaScript】Json属性提取

var elements = "";                
let properties = e.layer.feature.properties;
for (var item in properties) {
    let name = item;
    let value = properties[name];
    if (window.hideFields.indexOf(name) < 0 && value != null) {
    
        elements = elements + name + ":" + value + "<br>"
    }
}

 

上一篇:C++容器


下一篇:1608. Special Array With X Elements Greater Than or Equal X