gpt4 book ai didi

javascript - Google Drive 上的 Google Maps App : Hosting . js 文件

转载 作者:行者123 更新时间:2023-11-30 20:41:30 25 4
gpt4 key购买 nike

我找到了一些较旧的链接,其中包含有关在 Google 云端硬盘上托管 .js 文件的提示。似乎正确的方法随着时间的推移而改变了;我无法让我的 Google map 应用在托管时看到所需的引用资料。当 .js 文件是本地文件时, map 应用程序可以正常工作。

猜测很简单,只需要知道正确的做法即可。

这是我所在的地方:

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

有什么建议可以完成这个任务吗?

谢谢

最佳答案

经过更多的探索和 friend 的帮助,以下表格似乎可以工作:

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

关于javascript - Google Drive 上的 Google Maps App : Hosting . js 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49201996/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com