jq解析xml字符串

var str = 'wxb7a8556e955fc6361378571102HFB6WA20KU9MBIZUWC9N6NYYLRFNRHAK头像14784096971551192.168.1.122http://wangpeng.s1.natapp.cc/gameVideoRoom/pay/Back/F6UOOP4FG1/9FQAUP4GSRJ16AP8VQJYOKIAHXQGKI2QJIKTC2160S606APP2EF27D5125A195C839E60CC1C4F6014E';
var a = $.parseXML(str);
              $(a).find('xml').each(function () {
                  alert($(this).children('mch_id').text());
              });

你可能感兴趣的:(jq解析xml字符串)