code: function() {
                  document.getElementById('upload-file').addEventListener('change', onUpFileChange);
                  document.getElementById('text').addEventListener('change', ttfmin);
                  document.getElementById('font-size').addEventListener('change', function (e) {
                      $('.ttf-text').css({
                          fontSize: e.target.value + 'px'
                      });
                  });
              }
docs: 初始化