Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
NPM 包 xml2js 有一个explicitArray 选项,它只在有多个节点时才将节点放入一个数组中。有时我有一个只有一个节点实例的 XML,但我需要它在一个数组中。有没有办法指定应始终放入数组中的节点名称列表?
问题 #216“已知数组值”解决了这个问题。作者不想处理这个。