InstantClick – fast response! Make your website different

InstantClick – fast response! Make your website different

InstantClick is a small JavaScript library that uses pushState and Ajax technology. This combination is called Pjax。 Before a visitor clicks a link, the mouse will hover over the link. There is usually an interval of 200ms~300ms between these two events, InstantClick Use this time interval to preload the page, so that when you click the page, the page has already been loaded locally, and of course the presentation will be fast, greatly accelerating the response speed of your website. Example of use: ... <script src="instantclic...
common problem seven hundred and seventy-four
 What is the MIME type? What types are included?

What is the MIME type? What types are included?

MIME is the abbreviation of Multipurpose Internet Mail Extensions, which is the full Chinese name of Multipurpose Internet Mail Extension. It refers to the method of setting a file with an extension to be opened by an application. When the file with an extension is accessed, the browser will automatically use the specified application to open it. Common Mime types are as follows: File Suffix
common problem six hundred and sixty-six
 The most intuitive way to understand the difference between javascript constructors and ordinary functions

The most intuitive way to understand the difference between javascript constructors and ordinary functions

The way to distinguish a javascript function from a constructor or an ordinary function is to see which calling method they use. Whether a javascript constructor or a javascript ordinary function is a function, they are always functions. Their calling method determines whether they are constructors or ordinary functions. The following is the declaration of a function, which is a function, but the way it is used later determines whether it is a constructor or a normal function: function website(name,url){ this.webName = name; this.webUrl = url; } Constructor
common problem six hundred and sixty-two
 What is the function of the @ symbol in front of the php code? Description of the function of the @ operator

What is the function of the @ symbol in front of the php code? Description of the function of the @ operator

@The symbol is used in php code to mask/ignore the error prompt information generated by the expression. The @ operator is only valid for expressions. It can be called in variables, constants, functions and include(), but it cannot be used before the definition of functions or classes, or in conditional structures (such as if and foreach). Generally speaking, after using the @ symbol, the statement following the @ symbol will not give an error prompt even if there is an error. If the track_errors function is enabled, the error message generated by the expression will be saved in the variable $php_errormsg, and each error will overwrite this variable. Code example:
common problem six hundred and three
 IE browser loading rem adaptive web page element size display exception

IE browser loading rem adaptive web page element size display exception

Use rem to make an adaptive web page with equal scale. After the page is loaded in IE browser, the size of the web page element using rem units will display abnormally. The reason is that a fixed size default value is defined for the font size attribute of the body tag. The solution is to set the font size attribute value to 100% and delete the attribute directly. Example: Original code body { font:normal 16px/1.875em 'Arial';} Modify to body { font:normal 100%/1....
common problem six hundred and sixty-five