Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-apps-script/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google apps script 动态创建元素时发生HTML服务错误_Google Apps Script - Fatal编程技术网

Google apps script 动态创建元素时发生HTML服务错误

Google apps script 动态创建元素时发生HTML服务错误,google-apps-script,Google Apps Script,我正在使用谷歌应用程序脚本的html服务,我正在编写一些模块来简化生活。下面的模块旨在使用易于阅读的符号快速轻松地创建元素 除了文本函数外,其他所有函数都可以正常工作。它使用输入函数创建特定的输入类型。在这种情况下,一个文本。当我尝试使用它时,会出现以下错误: 不支持来宾构造对象的卸载 我不能理解这个错误。谁能给我解释一下吗 var util = { create: (function(){ var element = function (elementName,atribute

我正在使用谷歌应用程序脚本的html服务,我正在编写一些模块来简化生活。下面的模块旨在使用易于阅读的符号快速轻松地创建元素

除了文本函数外,其他所有函数都可以正常工作。它使用输入函数创建特定的输入类型。在这种情况下,一个文本。当我尝试使用它时,会出现以下错误:

不支持来宾构造对象的卸载

我不能理解这个错误。谁能给我解释一下吗

 var util = {
 create: (function(){

     var element = function (elementName,atributes ){
              var element = $(  document.createElement(elementName)  );
              return atributes ?  element.attr(atributes) : element;
          },

     div = function(atributes){ return element('div',atributes); },
     textArea = function(atributes){ return element('textarea',atributes); },
     input = function(atributes){ return element('input',atributes); },
     text = function(atributes){ 
         atributes.type = "text";
         return input(atributes); 
     };

     return { div:div, input : input, text:text, textArea:textArea}

 })()

 };