code: function() {
                  var upFile = document.getElementById('upload-file');
                  upFile.addEventListener('change', onUpFileChange);
  
                  ajaxFile({
                      type: 'binary',
                      url: './test/BalladeContour.otf',
                      onSuccess: function(binaryData) {
                          setFont(binaryData);
  
                          var otfReader = new otfreader({
                              //subset: [0x31, 0x32, 0x33]
                          });
                          var data = otfReader.read(binaryData);
                          console.log(data);
                          showOTFGlyf(data);
                      },
                      onError: function() {
                          console.error('error read file');
                      }
                  });
  
  
                  $('#font-list').delegate('li', 'click', function(e) {
                      $('#font-list li').removeClass('selected');
                      $(this).addClass('selected');
                      showGlyf(+$(this).attr('data-code'));
                  });
              }
docs: 初始化