简体   繁体   English

你能在 spiffs 中保存一个在线图书馆,这样你就可以离线访问它

[英]Can you save a online library in the spiffs so you can accese it offline

Hallo my question is quit simpel.你好,我的问题很简单。 I have made some IOT projects and i am wondering if you would be able to save eg a javascript library in the spiffs on the esp32 or esp8266 and then retrive it in the browser.我做了一些物联网项目,我想知道你是否能够在 esp32 或 esp8266 的 spiffs 中保存例如 javascript 库,然后在浏览器中检索它。

The way you normaly do it is like this.你通常这样做的方式是这样的。

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>

, but i wonder if you can do something like this if it is saved in the spiffs and you made the right code ,但我想知道如果它保存在 spiffs 中并且你编写了正确的代码,你是否可以做这样的事情

<script src="https://192.168. 0.1/library"></script>

Yes you can send save js librarys or similar in spiffs and then send it to the webpage.是的,您可以在 spiffs 中发送保存 js 库或类似内容,然后将其发送到网页。

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

相关问题 如何保存附加到变量然后将它们转换为php,以便将它们保存在数据库中? - How you can save appends to variables an then convert them to php so you can save them in a database? Discord.js:您可以过滤在线和离线用户,然后将它们添加到数组中吗? - Discord.js: Can you filter online and offline users then add them to an array? 要连接什么库以便可以使用 JSONLoader、OrbitControls、AnimationAction? - What library to connect so that you can use JSONLoader, OrbitControls, AnimationAction? 你能在Firefox上暂停离线音频上下文吗? - Can you suspend an offline audio context on Firefox? 您可以离线运行Java脚本中的R脚本吗? - Can you run R scripts in Javascript offline? 您能否检查 SignalR 集线器是否在线? - Can you check if a SignalR hub is online or not? 您如何命名一个函数,以便您可以对其进行自省? - How do you name a function so that you can introspect it? 指定一个 <li> 这样您就可以单击 - target a <li> so that you can click 如何在Eclipse中附加JSdoc,以便我可以为个人库自动完成 - How do you attach JSdoc in Eclipse so that I can have autocomplete for a personal library 可以,如果可以,如何获取默认光标作为图像? - Can you, and if so how do you get the default cursor as an Image?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM