简体   繁体   English

Google库(mootools)无法与Google Script网络应用一起使用

[英]Google Libraries (mootools) not working with Google Script web app

I have a simple Google Script project. 我有一个简单的Google Script项目。 The code is: 代码是:

function doGet() {
  return HtmlService.createHtmlOutputFromFile('main');
}

There is also main.html (where I am having the problem): 还有main.html(我遇到问题的地方):

<html>
    <head>
       <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/mootools/1.4.5/mootools.js"/>
    </head>
</html>

When I publish and test the script, I get the following error in the JavaScript console: 发布和测试脚本时,在JavaScript控制台中出现以下错误:

Cannot read property 'prototype_v___' of undefined 3953020933-maestro_htmlapp_bin_maestro_htmlapp.js:54 无法读取未定义的3953020933-maestro_htmlapp_bin_maestro_htmlapp.js:54的属性'prototype_v___'

Can anyone shed some light on this? 谁能对此有所启发?

Currently the only supported libraries are jQuery and jQuery UI. 当前仅支持的库是jQuery和jQuery UI。 You can't use mootools. 您不能使用mootools。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM