gpt4 book ai didi

javascript - RiotJS 没有安装标签

转载 作者:行者123 更新时间:2023-11-29 18:10:03 25 4
gpt4 key购买 nike

我从 Github 下载了 Todo 演示:https://github.com/muut/riotjs/tree/master/demo

但是当我将 index.html 拖到浏览器中时,我什么也看不到,只有标签。

我安装了 riot,只有这个依赖失败:npm WARN optional dep failed, continuing fsevents@0.3.5

但它说可选。可能是什么原因?

最佳答案

In-browser compilation需要 Ajax 访问您的标记文件。但是现代浏览器不允许这样的本地文件访问。我们有两个选项来运行 Todo 演示。

  • ss 一样运行本地服务器, 然后打开 index.html
  • 只需在本地打开pre-compiled.html

关于javascript - RiotJS 没有安装标签,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28238210/

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