作者:hypothesis82235 | 来源:互联网 | 2023-05-24 18:19
1.到GitHub 主页下载库代码下载地址: https://github.com/Kenadc/xml2json.git 点击Clone or download下载2.使用页面上将其引用进来3.
1.到GitHub 主页下载库代码
下载地址: https://github.com/Kenadc/xml2json.git
点击Clone or download下载
2.使用页面上将其引用进来
<
script
type
=
'text/Javascript'
src
=
"xml2json.js"
>
script
>
3.
var _db = "
200
1
10
8
";
var x2js = new X2JS();
var jsOnObj= x2js.xml_str2json(_db);
console.log("===================:"+JSON.stringify(arrBJ))