0

我收到此错误:

“javascript 错误:输入意外结束。”

    this.editor.setComponents(`<html><head><style>* { box-sizing: border-box; } body {margin: 0;}.txt-red{color:red;}</style></head><body><div class="txt-red">Create Your Page here.</div><div id="ig47"></div><script>var items = document.querySelectorAll('#ig47');
          for (var i = 0, len = items.length; i < len; i++) {
            (function(){
var e=this,t=JSON.parse('[]'),r=function(e){return parseInt(e,10)||0},n=function(e){return!!e},o=function(){var o=e;o.innerHTML='<span></span>';var c=parseInt('Infinity',10),s={typeSpeed:r(''),startDelay:r(''),backDelay:r('700'),backSpeed:r(''),smartBackspace:n('true'),fadeOut:n(''),fadeOutClass:'typed-fade-out',fadeOutDelay:r('500'),shuffle:n(''),loop:n(''),loopCount:isNaN(c)?1/0:c,showCursor:n('true'),cursorChar:'|',autoInsertCss:n('true'),bindInputFocusEvents:n(''),attr:'',contentType:'html'};t&&t.length&&(s.strings=t),new Typed(o.children[0],s)};if(window.Typed)o();else{var c=document.createElement('script');c.src='https://cdn.jsdelivr.net/npm/typed.js@2.0.11',c.onload=o,document.head.appendChild(c)}
}.bind(items[i]))();
          }</script></body></html>`);
4

0 回答 0