Low-level errors that are easy to make in web Development
In the web development process, we often make small mistakes, but it wastes a lot of time. Here we will summarize several mistakes to show our vigilance.
1. When debugging js, the breakpoint is clearly set, but the breakpoint is not taken away. At the beginning of the year, I encountered this problem. I kept modifying js Code, modifying the html of webpages, and refreshing the browser constantly. The result was later found that JavaScript was introduced. When I set a breakpoint and the program went through another js, if this problem was found, it would not be a problem at all, but if you don't find it, it will take a long time.
2. submit the form, but some field values are not passed to the background. The name attribute is clearly written, and other fields are mentioned in the background. The field name is also correct, and there is no spelling error. Later, I discovered that this field was not packaged by form. Only the filed in form with the name attribute will be submitted to the background. What a simple error is that, but when you do, it is very difficult for you to find out, because we don't believe that we will make such easy mistakes.
3. after the Code was modified during development, refreshing the browser did not achieve the expected results. As a result, we always thought it was the reason for caching. we refresh the browser once and finally discovered that, in the past, we modified a local file but did not upload it to the server. Alternatively, we have two local copies. We modified one of them, the result is to display the correct result for another copy.
4. how to modify the program, the returned results are the same, it seems that the conditions we set do not work, and later we found that we have returned some specific values for debugging, and then did not modify them back, as a result, subsequent programs always fail to run.
5. Why is the page always abnormal under IE and automatically jumps to the weird mode of IE7, which is probably due to a DOCTYPE statement or writing problem.
6. why is there a problem with the execution of the selected element event? Is there a bug in jquery? If we doubt the official website, we should first doubt ourselves and avoid any other results, it is said that we have found bugs. In many cases, we often have incorrect understanding or misoperations. The selected element event may be executed incorrectly and should be checked carefully, there are multiple elements with the same id on the page, and the id is unique, so an error is generated.
What are the common mistakes in the college entrance examination?
1. No admission ticket
2. If no stationery such as 2b pencil or eraser is provided, the number of prepared black pens is insufficient. As a result, there is no written environment in case of a black pen in the exam. Don't think it's okay if you don't have it, just borrow it from your teacher. When others brush your answers, you are still arguing with your teacher. To a certain extent, it will definitely put pressure on your mind, A sense of irritability or anything.
3. Fill in the wrong answer and write the answers to the 16 questions on the 17 questions. If you find that you want to change the volume in time, forget it. If you don't find it, it's too late to find something wrong with question 21. Where can I write it again?
4. multiple-choice questions miss the question, all the way to fill in the wrong. So every 10 ~ Check the question number once for question 20. Question check also takes time, so it may take about 10 ~ About 20 questions.
5. A low-level error occurs in the calculation. 589 + 1 = 600.
6. The table is broken midway through. So buy 2 ~ Three tables. I purchased three tables for a 3D surround during the college entrance examination. As a result, a table was suspended during the examination. When a model, two models, and three models all appeared to stop the table, this RP really had nothing to say. After the exam, I just bought a good product --
7. Reading the wrong question. People ask what rhetorical devices are used and what descriptive techniques are used. Another example is that there are 234 pieces of this item, and you think of it as 243 pieces.
Make a low-level mistake
Something wrong in your life. Everything is cloudification. It's over. You don't have to worry about the past. Come on.
However, this is a lesson. Always remind yourself to avoid further attacks ..