简体   繁体   中英

Google Libraries (mootools) not working with Google Script web app

I have a simple Google Script project. The code is:

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

There is also main.html (where I am having the problem):

<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:

Cannot read property 'prototype_v___' of undefined 3953020933-maestro_htmlapp_bin_maestro_htmlapp.js:54

Can anyone shed some light on this?

Currently the only supported libraries are jQuery and jQuery UI. You can't use mootools.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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