In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article focuses on "what are the common bug in web development". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "what are the common bug in web development?"
Path names are not case sensitive
For example, when action, the control layer of a web application, returns a page path, suppose that an element in the path uses uppercase, while the static page uses lowercase. If you develop under Windows, there may be no problem, because Windows is not case-sensitive. If your service is deployed to a Linux server, there will be 504exceptions in the log all the time.
2. Duplicate id in html page
If you use jq to select an id for operation, suddenly found that the failure, no matter how the operation does not work, you should check your page to see if there are duplicate id.
3. When the front-end data is transmitted to the background, the front-end data is doped.
Sometimes in order to experience better, we are used to using placehoder in the input box, we do not know that under IE8, the value in placehoder will be passed directly to the background, then we should add a judgment, such as js has been reporting an error 'lack of closing parentheses', check whether your code has spaces, the browser defaults to the end, pay attention to add\ "\" characters to prevent the browser from thinking that your character ends. And if your front-end code is not standard, it is likely to send some / etc front-end symbols to the back-end because of browser parsing, resulting in some inexplicable errors.
4. Use logical operators in mathematics
At first glance, there seems to be no problem. I have been using it like this for decades. I have a fixed mind, and after looking for it for a long time, I suddenly realize that comparison operators in computers cannot be used in this way.
5. On the coding format of text documents
Usually when we open notepad and edit text, the editing format of notepad under Windows defaults to ANSI, which includes gbk,gb2312, but our Java program is used to using utf8, if we read this file into the program, it is conceivable that it is all garbled (sometimes with serious consequences).
6. Suddenly found that the repalaceAll in Java can not be used.
String str = "We are all Chinese."
String replaceAll = str.replaceAll (".", ")
In any case, the period can not be replaced, not only can not be replaced, but also other words are gone, if you are more careful, you will find that the dot is a special character in Java, it represents any character. (for more information, you can refer to the api of escaped characters in the regular expression section).
7. Char x ='x transactions System.out.println (true?250:x)
The result is ú, and for two results in the trinomial operator, if one is a constant and the other is a variable of type T, the constant is transformed to type T.
8. The case of mysql database field values.
If you insert 2 different values as key, but the database is to throw duplicated key, then you need to carefully see if your two values are different in case, by default, the content of the mysql field is not case-sensitive, as for how to set it, there are many ways to read it in the official document.
At this point, I believe you have a deeper understanding of "what are the common bug in web development?" you might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.