前端和后端都是什么

The frontend is the part of a web site that you can see and interact with, while the backend is all the rest.

You know how the tip of an iceberg pokes out above the water, but they’re really hundreds of feet deep? That’s a lot like a web site.

The parts you see and interact with on a web site – the buttons, the dropdown menus and big bold fonts – make up the frontend.

The frontend of a web site has specific technologies attached to it. HTML makes up the text on the page,CSS makes it pretty, and JavaScript makes it interactive. All of these things happen in the browser.

The backend is everything that happens before it gets to your browser. If you’re booking a flight, that’s where prices are checked, itineraries are booked, and credit cards are charged. A backend can be very simple or very complicated.

A typical setup for a backend is a web server, an application and a database. The web server delivers a note to the application that you’d like to see all of the flights to Chicago. The application looks up the flights in the database, puts together a web page that lists them, and sends that web page back to your computer through the web server. That’s all the backend. Once your computer gets a hold of it, it’s the frontend.

For technologies used in the backend, anything goes. If a database stores your name or flight info, it might beMySQL, MongoDB, PostgreSQL, or many others. Web pages could be put together with Python, Ruby on Rails, or PHP. The web server that sends those pages over to your computer might be Apache, Nginx, or IIS. The list goes on and on!

Cocktail Party Fact

Because you don’t see the backend, programmers can swap out pieces of it without you ever knowing. For a while Twitter was powered by Ruby on Rails, but in 2011 switched over to Java. I’ll bet you didn’t notice!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值