请问上个问题中我的页面应该怎么打开是127.0.0.1/echarts吗?
时间: 2023-05-24 08:06:32 浏览: 65
如果您的 echarts 文件夹已经放在 web 服务器的根目录下,并且添加了虚拟主机,则您可以通过访问 http://localhost/echarts 或 http://127.0.0.1/echarts 打开。 如果您正在本地打开文件,则可以右键单击 echarts.html 文件并选择“在浏览器中打开”选项,也可以将文件拖动到您喜欢的浏览器中。
相关问题
Invalid URL '127.0.0.1/mask/': No scheme supplied. Perhaps you meant http://127.0.0.1/mask/?
Yes, it is possible that the correct URL is http://127.0.0.1/mask/. The error message suggests that the URL provided is missing the scheme (http or https), which is necessary for the browser to understand how to connect to the website. Adding the scheme to the URL should resolve the issue.
如何在html中去掉http://127.0.0.1:8000/goodsdetails/?q=中的?
可以使用 JavaScript 中的 `location.href` 属性来获取当前页面的 URL,再使用 `replace()` 方法去掉不需要的部分。以下是示例代码:
```html
<script>
// 获取当前页面的 URL
var url = location.href;
// 去掉不需要的部分
url = url.replace('/goodsdetails/?q=', '');
// 使用新的 URL 跳转页面
location.href = url;
</script>
```
请注意,这段代码需要放在 `body` 标签内,或者放在 `window.onload` 事件中。