search
HomeWeb Front-endH5 Tutorial请教前端的正确学习方式?

本专业是通信,大三下学期突然想学前端,现在大四上,学了html和css,现在正在学js核心语法,看的是权威指南,也没有做过什么项目,打算先把js看一下,再说做项目练习,我不知道这个方法是否正确合理,或者有什么适合我这个阶段的前端新手做的项目也希望大家能给一下建议,谢谢

回复内容:

做一个自己的静态博客,哪怕很丑。

一方面是,知识的积累。
另一方面,HR看这个。

做前端的,简历中项目经验那一栏,不填个url,都不敢出去见人。
更直接的,连简历都放到博客上了算了。

(“谁还用纸质简历这么低级文明的东西了?” 如果只是问学习的方法,学习前端和学习编程的其他方向并没有太大的不同。

敏捷开发里有个概念叫做 “持续重构”,指的是在你写代码的过程中,需要不断地思考,并重构你的代码,以增强代码的可维护性、获得更佳的程序结构。

我觉得人在学习过程也是需要 “持续重构” 自己的思维的,如何做到这一点呢?

1. 不断地犯错。一边看书,一边写代码;写自己想要写的项目也好,直接敲书上的例程也好。一定要上手,不要空看书;那些你看着很简单的代码,真要自己动手起来,保证错误百出。如果你要写书上的例程,千万不要对着书一字一句地抄。一定要自己按理解写一遍,看看运行的效果;如果运行出来有问题,再对照书上的例子来看问题出在了哪儿?

2. 阶段性的思考。有了“不断犯错”的前提,你就会逐渐发现你写的代码存在各种各样的问题。比如你发现你之前经常复制粘贴代码,这样如果后面要改写一些代码,就要在四五个份类似的代码上改同样的地方,这个时候你就知道你该记住 DRY 原则了(Dont Repeat Yourself)

3. 记录你的思考。建立自己的知识梳理系统,千万不要仅仅把一些有用的文章放在浏览器的书签里积灰,在你解决各种各样的困惑以后,总结一下自己的收获,然后记录下来。关于这一点可以参考我的另一个答案:如何构建自己的笔记系统? - 知乎用户的回答

考虑到题主可能不仅仅问的是学习方法,也想知道学习前端的路径改怎么走;我也试着答答看:

你以后做前端可能会面临各种各样的任务,移动端开发、桌面端开发、前端基础架构开发、一些常用的组件或者控件开发,如果你有兴趣的话,你可能还会参与到开源社区中做各种奇奇怪怪而又有趣的小玩意儿。

前端的学习路径每个人都不太一样,你有多大的能力,就有多大的海洋让你遨游;你有多大的热情,你就能游多远。所以没有一条固定的路径,在这条路径上标示出“你走到哪儿,你就能拿到多少工资”;你还是个学生,对什么感兴趣就一股脑投入进去学;这就是最好的状态。 入口是键盘,捷径是努力,书山有路勤为径,下一句就不打了,免得偏题 差不多靠谱,我还是建议边做项目变学习js。纸上得来终觉浅。 学技术是为了做项目,这个目的性很明确的,
做项目除了为了养家糊口,还为了啥,出于私心的考虑,当然为了提高&精炼自己的技术了,

这两点丝毫不矛盾,你技术体系的形成,既靠项目,也靠自我学习,具体哪儿占得比重大,要自己体会,但是你一定会发现,项目以后做起来,码砖的时候更多,,,,不然为啥叫码农呢,

如果你自学能力特强,我推荐你广泛涉猎一些,不然就低一点,
但是永远不要为了项目而学习技术,自己独立的一个人,也要为兴趣学技术,
ok扯完了 。。。 多做项目 没必要学 多看看好的项目源码 再查查资料 就会了 目前大二,大一接触前端。期间做过几个学校部门的小项目,有自己的团队。
个人觉得最好能认识个大神带着你,那样的话会比一个人盲目学好很多。如果找不到的话就多看些视频,个人觉得宁皓网和极客学院都挺不错的。把自己积累的东西,问题体系化,可以做成文件夹的形式,最好做线上~放在个人博客里。(我也是最近意识到,目前正在做)
总之在迷茫时坚持下去,你会发现你有很多收获~ 一起加油。 1、html+CSS先能看懂每个标签,每一种样式
2、JavaScript+JQuery建议看《J啊vaScript DOM 编程艺术》、《锋利的JQuery》
3、《JavaScript高级程序设计》,可以再回头翻翻《html权威指南》、《CSS权威指南》会有不一样的体会和收获

感觉貌似学习技术都是先有一个项目(或者自己想实现的功能),然后边学边做,效果可能好一些。 while(true){
看书
敲代码练习
}

书么,推荐一本《javascript高级程序设计(第三版)》,一书在手,天下我有

看书一定要死嗑,不要一遍看过去完了一问三不知。
看书入门可以给你一个清晰的架构,从js的历史发展一直到其他的知识点,全面有条理。

要是通过以上的书入门了,可以找些开源的项目学习学习代码组织方式还有各种模式
还有良好的编程规范和风格
以上,你可以算一个合格的初级前端了,可以加入到茫茫的飞快的各种工具各种库各种框架的无尽迭代中去了
Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Mastering Microdata: A Step-by-Step Guide for HTML5Mastering Microdata: A Step-by-Step Guide for HTML5May 14, 2025 am 12:07 AM

MicrodatainHTML5enhancesSEOanduserexperiencebyprovidingstructureddatatosearchengines.1)Useitemscope,itemtype,anditempropattributestomarkupcontentlikeproductsorevents.2)TestmicrodatawithtoolslikeGoogle'sStructuredDataTestingTool.3)ConsiderusingJSON-LD

What's New in HTML5 Forms? Exploring the New Input TypesWhat's New in HTML5 Forms? Exploring the New Input TypesMay 13, 2025 pm 03:45 PM

HTML5introducesnewinputtypesthatenhanceuserexperience,simplifydevelopment,andimproveaccessibility.1)automaticallyvalidatesemailformat.2)optimizesformobilewithanumerickeypad.3)andsimplifydateandtimeinputs,reducingtheneedforcustomsolutions.

Understanding H5: The Meaning and SignificanceUnderstanding H5: The Meaning and SignificanceMay 11, 2025 am 12:19 AM

H5 is HTML5, the fifth version of HTML. HTML5 improves the expressiveness and interactivity of web pages, introduces new features such as semantic tags, multimedia support, offline storage and Canvas drawing, and promotes the development of Web technology.

H5: Accessibility and Web Standards ComplianceH5: Accessibility and Web Standards ComplianceMay 10, 2025 am 12:21 AM

Accessibility and compliance with network standards are essential to the website. 1) Accessibility ensures that all users have equal access to the website, 2) Network standards follow to improve accessibility and consistency of the website, 3) Accessibility requires the use of semantic HTML, keyboard navigation, color contrast and alternative text, 4) Following these principles is not only a moral and legal requirement, but also amplifying user base.

What is the H5 tag in HTML?What is the H5 tag in HTML?May 09, 2025 am 12:11 AM

The H5 tag in HTML is a fifth-level title that is used to tag smaller titles or sub-titles. 1) The H5 tag helps refine content hierarchy and improve readability and SEO. 2) Combined with CSS, you can customize the style to enhance the visual effect. 3) Use H5 tags reasonably to avoid abuse and ensure the logical content structure.

H5 Code: A Beginner's Guide to Web StructureH5 Code: A Beginner's Guide to Web StructureMay 08, 2025 am 12:15 AM

The methods of building a website in HTML5 include: 1. Use semantic tags to define the web page structure, such as, , etc.; 2. Embed multimedia content, use and tags; 3. Apply advanced functions such as form verification and local storage. Through these steps, you can create a modern web page with clear structure and rich features.

H5 Code Structure: Organizing Content for ReadabilityH5 Code Structure: Organizing Content for ReadabilityMay 07, 2025 am 12:06 AM

A reasonable H5 code structure allows the page to stand out among a lot of content. 1) Use semantic labels such as, etc. to organize content to make the structure clear. 2) Control the rendering effect of pages on different devices through CSS layout such as Flexbox or Grid. 3) Implement responsive design to ensure that the page adapts to different screen sizes.

H5 vs. Older HTML Versions: A ComparisonH5 vs. Older HTML Versions: A ComparisonMay 06, 2025 am 12:09 AM

The main differences between HTML5 (H5) and older versions of HTML include: 1) H5 introduces semantic tags, 2) supports multimedia content, and 3) provides offline storage functions. H5 enhances the functionality and expressiveness of web pages through new tags and APIs, such as and tags, improving user experience and SEO effects, but need to pay attention to compatibility issues.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool