英文:
On the Wix Velo platform, is code placed in the "Page" area publicly visible?
问题
根据这篇文章,放在页面区域的代码是公开可访问的。他们甚至包括这张图片来演示:
我在网站的已发布版本上无法看到输入在这里的代码。以下是一个示例,我发布了一个带有在onReady
函数中的代码的空白页面:
https://steven0790.wixsite.com/my-site/blank
当我访问这个页面并查看和搜索时,我无法找到代码。我预期它应该在<script>
标签中。
我还尝试查看代码中的链接,以确定是否将其保存在.js文件或类似文件中。
有人可以确认这段代码是否真的可以访问吗?
英文:
According to this article, code that is put in the Page area specifically is publicly accessible. They even include this image to demonstrate:
I have not been able to see code that is entered here on the published version of the site. Here is an example where I published a blank page with a code in the onReady
function:
https://steven0790.wixsite.com/my-site/blank
When I go to this page and inspect and search, I can't find the code. I would expect it to be in a <script>
tag.
I have also tried looking through links in the code in case this is saved in a .js file or something like that.
Can anyone confirm whether or not this code really is accessible?
答案1
得分: 0
查看浏览器开发工具中的控制台,而不是元素选项卡。它会告诉您包含您的代码的JS文件。
查找类似以下内容的消息:
运行主页的代码。要在浏览器的开发工具中调试此代码,请打开cnric.js。
然后,您可以在浏览器的开发工具中打开该文件并查看代码。
英文:
Check the Console instead of the Elements tab in the browser developer tools. It will let you know which JS file contains your code.
Look for a message that looks something like this:
> Running the code for the HOME page. To debug this code in your browser's dev tools, open cnric.js.
You can then open that file in your browser developer tools and see the code.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论