Javascript 谷歌地图应用程序:在谷歌硬盘上托管.js文件

Javascript 谷歌地图应用程序:在谷歌硬盘上托管.js文件,javascript,google-maps,google-maps-api-3,drive,Javascript,Google Maps,Google Maps Api 3,Drive,我发现了一些关于在Google Drive上托管.js文件的提示的老链接。随着时间的推移,正确的方法似乎发生了变化;我无法让我的谷歌地图应用程序在托管时查看所需的引用。当.js文件是本地文件时,地图应用程序工作正常 猜测它的简单,只需要知道正确的方法 我现在的处境是: 1. Created a shared folder on Google Drive 2. Uploaded, then shared the 2 .js files 3. Grabbed the shared file l

我发现了一些关于在Google Drive上托管.js文件的提示的老链接。随着时间的推移,正确的方法似乎发生了变化;我无法让我的谷歌地图应用程序在托管时查看所需的引用。当.js文件是本地文件时,地图应用程序工作正常

猜测它的简单,只需要知道正确的方法

我现在的处境是:

1.  Created a shared folder on Google Drive
2.  Uploaded, then shared the 2 .js files
3.  Grabbed the shared file link and inserted into the reference, example:
    Replaced:  <script type="text/javascript" src="labels.js"></script>
    With:  <script type="text/javascript" src="https://drive.google.com/open?id=<my id here></script>
No luck
4.  I tried using just the shared folder ID, and appended the "/labels.js" filename
Also No luck
1。在Google Drive上创建了一个共享文件夹
2.上传,然后共享2.js文件
3.抓取共享文件链接并插入到引用中,例如:
取代:

使用:在经过更多的闲逛和朋友的帮助后,以下表单似乎起到了作用:

<script type="text/javascript" src="https://drive.google.com/uc?export=download&id="my_doc_id"</script>

在“my_doc_id”之后缺少引号和“>”。应该是: