Related issues in web page production

Related issues in web page production.

We will inevitably have some bugs in the process of writing code. The following will mention the various problems and personal opinions I encountered in the process of writing.

1. Spelling errors.

Have consequences

在编写代码过程中如果出现拼写的错误,轻则造成部分代码对应的功能无法正常实现。
严重将导致整个网页的构造混乱,难以找出问题所在。

Solution

1.俗话说,心急吃不了热豆腐,在写代码的时候一定不要着急,慢慢来,即使非常熟
悉的拼写也有可能出错(这种错误还最不容易发现)。
2.在HTML中用到的类名等需要在css或者js中添加样式或功能,尽量用快捷复制键
复制使用,这样可以大大降低出错的概率。

2. Syntax error.

Have consequences

同样,语法错误也会造成相应的功能无法实现,但一般情况下,编译器会提示报错,这
类错误容易发现,但是不容易更正。

Solution

1.如果语法错误是由于编辑过程中的失误造成,只需在将报错部分更改为正确的即可。
2.如果语法错误自己看不出问题的话,就要百度、Google查阅相对应的学习资料学习

The problems and solutions in the production of the webpage will be updated continuously, welcome to exchange private messages

Guess you like

Origin blog.csdn.net/weixin_43716048/article/details/87464392