Parsing XML in a Web Worker

前端 未结 2 721
时光取名叫无心
时光取名叫无心 2020-12-19 05:59

I have been using a DOMParser object to parse a text string to an XML tree. However it is not available in the context of a Web Worker (and neither is, of course, document.E

2条回答
  •  爱一瞬间的悲伤
    2020-12-19 06:43

    At this point I like to share my parser: https://github.com/tobiasnickel/tXml

    with its tXml() method you can parse a string into an object and it takes only 0.5kb minified + gzipped

提交回复
热议问题