2

设置 Github 页面后,尝试加载 Processing.js .pde 文件时,我收到以下错误:

# <file.pde> is in https://raw.github.com/
# <canvas data-processing-sources="https://raw.github.com/.../file.pde"></canvas>

# On Firefox:
NetworkError: 404 Not Found - <file.pde>
uncaught exception: Processing.js: Unable to load pjs sketch files: <file.pde> ==> File is empty.

# On Chrome:
OPTIONS <file.pde> 404 (Not Found)
XMLHttpRequest cannot load <file.pde>. Origin is not allowed by Access-Control-Allow-Origin.
Uncaught Processing.js: Unable to load pjs sketch files: <file.pde> ==> File is empty.

他们似乎都说<file.pde>不存在,但是当我尝试从浏览器访问它时,我能够检索它。此外,如果我将文件的内容直接复制并粘贴到<script>index.html 中的标记中,那么一切正常。

有人知道可能导致这种情况的原因吗?

4

0 回答 0