我已经完成了使用OpenWeather的api构建p5.js天气预报的项目。当我打开index.html文件时,代码运行得很好。为什么当我在web编辑器上运行它或者在我的博客上使用它作为iframe时,它不能显示天气?
发布于 2018-09-10 15:37:35
您没有上载包含p5和其他库的库文件夹。
更新您的index.html以包含这些库
这几行
<script src="libraries/p5.js" type="text/javascript"></script>
<script src="libraries/p5.dom.js" type="text/javascript"></script>
<script src="libraries/p5.sound.js" type="text/javascript"></script>https://stackoverflow.com/questions/52252989
复制相似问题