gpt4 book ai didi

javascript - Reactjs无法读取https ://cdnjs. cloudflare.com/ajax/libs/babel-core/5.8.23/browser.js:37752:65

转载 作者:行者123 更新时间:2023-12-03 01:42:12 25 4
gpt4 key购买 nike

我正在尝试关注this因此我将以下代码(从子标题“步骤 2:将 JSX 添加到混合中”下方)直接复制到一个名为 index.html 的文件中,我在 chrome 中打开该文件:

<!DOCTYPE html>
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.14.6/react.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.14.6/react-dom.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.23/browser.js"></script>
</head>
<body>
<div id="app"></div>
<script type="text/babel">
// Code omitted to keep sample short
</script>
</body>
</html>

但是我在 chrome 控制台中收到此错误:

Uncaught DOMException: Failed to read the 'sessionStorage' property from 'Window': Access is denied for this document.
at https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.23/browser.js:37752:65
at Object.423../isArguments (https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.23/browser.js:37761:2)
at s (https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.23/browser.js:2:619)
at https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.23/browser.js:2:670
at Object.421.foreach (https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.23/browser.js:37637:12)
at s (https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.23/browser.js:2:619)
at https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.23/browser.js:2:670
at Object.420../implementation (https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.23/browser.js:37618:14)
at s (https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.23/browser.js:2:619)
at https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.23/browser.js:2:670

我不知道如何处理此错误或如何修复它。请注意,我没有对代码进行任何更改,我完全按照教程中的内容复制了它。感谢您的帮助。

最佳答案

关于javascript - Reactjs无法读取https ://cdnjs. cloudflare.com/ajax/libs/babel-core/5.8.23/browser.js:37752:65,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50787932/

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