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