1. JavaScript refresh the page method Window.Location.Reload (); use Window.open () pop -up window to refresh the father window window.opent.reload () Use window.showdia
1. Concept 1. What is the difference between the PC terminal and the mobile terminal? From my personal point of view, I think the positioning of the PC terminal is the user's visual browsing route, which can display more content, while the positioning
The syntax of the replace method is: stringObj.replace(rgExp, replaceText) where stringObj is a string (string), reExp can be a regular expression object (RegExp) or a string (string), repla
To learn canvas, you must first know how to draw line segments, and then you can use many simple line segments to realize more complex graphics. For example, common charts, bar charts, line charts, etc. are all realized through line segments. Basic knowle
The Window.history object does not use Window's prefix when writing. In order to protect user privacy, it has limited the method of JavaScript accessing the object. Method: History.back () -The first URL in the historical list, this is the same as
Inheritance in js can be divided into two types: object impersonation and prototype chain method 1. Object impersonation includes three types: temporary attribute method, call() and apply() method 1. Temporary attribute method Copy the code code as follow
Disable right-click menu<body oncontextmenu=self.event.returnValue=false> Disable left-click copying. Use CSS to control whether text can be selected.unselec
The local storage function provided by HTML5 allows web applications to store data in the user's local browser. In HTML5, data is not passed by every server request, but data is only used when requested. It makes it possible to store large amounts of
Needless to say, the installation is very simple. Just find FireBug in the plug-in library on FireFox and it will be OK. The picture below is the FireBug Debug window. FireBug is very commonly used by artists, and the company’s artist sister is very skill
Preface I haven’t touched canvas for a long time. I suddenly wanted to review it this afternoon, so I wrote a rotating Tai Chi. Haha, it’s quite fun. I will show the process of writing it here. The rotation is implemented using CSS, without using canvas i
Now the application of web pages is extremely wide. In actual projects, some MP4 files can be played normally in the H5 webpage, but some are not. Why is this? 1. First of all, I downloaded a MP4 file from the Internet. IE10 and Google can be played norma
When doing ID card recognition in the project, the base64 format encoding of the image needs to be transmitted, but the photos taken by the mobile phone are too large, and converting them to base64 is simply terrible, so I looked for a solution. The knowl
HTML5 defines several new date-related controls. Browsers that support date controls will provide a convenient drop-down calendar for users to select. Note: Currently, only Chrome and Opera provide drop-down calendar support, other browsers are still a no