code: function () {
  
                  ajaxFile({
                      type: 'xml',
                      url: './test/svgnodes.svg',
                      onSuccess: function(xml) {
  
                          var contours = svgnode2contours(xml.getElementsByTagName('*'));
                          var path = contours2svg(contours);
  
                          $('#path').attr('d', path);
                          $('#origin').html(xml.documentElement.outerHTML);
                      },
                      onError: function() {
                          console.error('error read file');
                      }
                  });
              }
docs: 初始化