什么是 foo?我在许多 CSS 和 Web 设计示例中看到过

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5139244/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 23:49:47  来源:igfitidea点击:

what is foo? I have seen it in many CSS and Web designing examples

css

提问by Web_Designer

What is foo? I have seen it in many CSS and Web designing examples usually as a CSS class.

什么是富?我在许多 CSS 和 Web 设计示例中看到它通常是一个 CSS 类。

采纳答案by Orbit

see 'foo' entry in jargon file.

请参阅行话文件中的“foo”条目。

http://www.catb.org/jargon/html/F/foo.html

http://www.catb.org/jargon/html/F/foo.html

esp. 2. [very common] Used very generally as a sample name for absolutely anything, esp. programs and files (esp. scratch files).

特别是 2. [很常见] 非常普遍地用作绝对任何事物的示例名称,尤其是。程序和文件(尤其是临时文件)。

回答by Piskvor left the building

A "metasyntactic variable" - in other words, it serves the same purpose as example.com, usually to illustrate "this is where yourvariable will be, whatever it is named".

一个“元句法变量”——换句话说,它的作用与 相同example.com,通常是为了说明“这是你的变量所在的位置,无论它叫什么名字”。

See the Jargon File for common (and less common) such variables: http://www.catb.org/jargon/html/M/metasyntactic-variable.html

有关常见(和不太常见)的此类变量,请参阅行话文件:http: //www.catb.org/jargon/html/M/metasyntactic-variable.html

回答by alex

The terms foobar, foo, bar, baz and qux are sometimes used as placeholder names (also referred to as metasyntactic variables) in computer programming or computer-related documentation

术语 foobar、foo、bar、baz 和 qux 在计算机编程或计算机相关文档中有时用作占位符名称(也称为元句法变量)

Wikipedia.

维基百科

When working with IE6, sometimes it is FUBAR.

使用 IE6 时,有时它是FUBAR

回答by TomTom

A standard token. "Foo" and "Bar" are names for variables, classes, whatever that have no meaning and are often used in examples.

一个标准的令牌。"Foo" 和 "Bar" 是变量、类的名称,任何没有意义的名称,经常在示例中使用。

回答by Muhammed Suhail

It is just a variable or something like that. It is used as a demo or dummy or as an example to for explaining codes. Eg:- in maths we usually say x,y,z or a,b,c ....etc

它只是一个变量或类似的东西。它用作演示或虚拟或作为解释代码的示例。例如:- 在数学中,我们通常说 x,y,z 或 a,b,c ....etc

回答by Revlis Lain

It's a metasyntactic value with some sarcastic wit. Foobar references FUBAR which is a military term for 'F'd up beyond all recognition.'

这是一个带有讽刺意味的元句法值。Foobar 引用了 FUBAR,它是一个军事术语,表示“F'd up over all known”。