为什么在 url 中使用

编程入门 行业动态 更新时间:2024-10-12 03:27:03
本文介绍了为什么在 url 中使用 - 而不是 off _的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

为什么在 url 中使用 - 而不是 off _?Url 包含 '_' 似乎没有坏影响.

why use - instead off _ in url? Url contain '_' seems like no bad effects.

推荐答案

当你阅读 a_long_sentence_with_many_underscores 时,因为你是通过字母或单词识别来阅读它的,你的视线会沿着线的中间移动,但是当你到达下划线时,你的眼睛更有可能追踪下一个单词.

When you read a_long_sentence_with_many_underscores, because you are reading it by letter or word recognition, your eye tracks along the middle of the line, but when you reach an underscore, your eye is more likely to track down a bit and back up for the next word.

当您阅读带有许多破折号的长句时,您的眼睛会一直沿着同一地平线追踪,而通过视觉,您的大脑更容易尝试忽略它们.

When you read a-long-sentence-with-many-dashes, your eye keeps tracking along the same horizon, and by sight, it is easier for your brain to try and ignore them.

另一个很好的理由是,当单词分隔符为破折号时,Google 和其他搜索引擎会将与搜索词匹配的网址排名更高.

Another good reason is that Google and other search engines rank urls that match to search terms higher when the word separator is a dash.

这篇关于为什么在 url 中使用 - 而不是 off _的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-28 14:36:02,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1174870.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:url

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!