Closed Littleor closed 5 years ago
is it a server side rendering in vue? xml2json is binary, it does not work in a browser.
i think https://www.npmjs.com/package/xml-js is pure js, that might work in a browser
I have use 'x2js' to solve it,thanks!
my code :
const parser = require('xml2json');
it shows :
Uncaught TypeError: Cannot read property 'indexOf' of undefined