About how to get the current time in a servelet //Get the current time Date date=new Date();DateFormat format=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");Str
This article describes the method of cross-browser parsing XML files implemented by JS. I will share it with you for your reference. The following code loads an XML document ("note.xml") into the XML parser: <script type="text/javascript">functi
Simply put: these two problems are actually the same problem, but I have been searching online for a long time but I can't find a method. There cannot be any HTML markup comments in the outlinked js and css files. Once there is, the browser will go cr
This article describes the menu sliding revealing effect implemented by JS based on constructor. I will share it with you for your reference. The specific details are as follows: The screenshot of the operation effect is as follows: The specific code is a
Before talking about prototype chains, we must first understand what the relationship is between custom functions and functions, and what are the inextricable relationships between constructors, prototypes and instances? In fact, all functions are instanc
1. Overview When browsing many websites, you will find that the function of displaying the current system time is added to the website. Displaying the current system time on the web page not only makes it convenient for the browser to grasp the current ti
Many companies now use the framework of bootstrap in development. bootstrap is the work of a team of Twitter, which greatly simplifies our front-end development. (I will summarize some less usage later) Learning to use the API I suggest directly viewing t
This article will introduce you to how to judge the example code of form verification. Before introducing the main text, I will introduce you to the plug-in. The plug-in introduction is the previous picture: Download address: https://github.com/nghuuphuoc
This is a relatively simple and practical menu, and the most important thing is that it does not need to reference the jQuery library. The menu can be adaptable in the vertical direction. When the main menu is close to the top, the submenu will be below,
Learning points Why use directives to create custom directives to work with jqLite 1. Why use custom directives NG has many custom directives built in, but they sometimes do not meet your requirements. This requires us to create custom attributes. 2. Cust
I continued to write the layout of the previous article. In the previous article, I have completed the layout of the navigation bar and advertisement. Start to continue placing: I think the final rendering is like this, as follows: I divided into three pa
Javascript is not an object-oriented language and does not provide traditional inheritance methods, but it provides a way of prototype inheritance, using the prototype properties it provides to achieve inheritance. Prototype chain is the main method of in
In a project, a control is needed to enter minutes and seconds, but after investigating some open source projects, no suitable control is found. There is a similar control TimePicker in the Angular Bootstrap UI, but it doesn't go deep into minutes and
jQuary basic selector $("div*") gets all elements below the div $(".red,.green").html("How") // It should be noted that two choices should be written in the same quote (used when multiple selectors need to be selected at the