[How many ways to open the page] 1. Create a subcker page during initialization 2. Open the new page directly 3. Pre -load page [Example] 1. Create a subpage MUI.Init ({subpages: [{url: your - subpage -url, // sub -page html address, support the local add
Recently, the function of downloading the picture (as shown below) In the beginning, the download of the DOWNLOAD attribute of the A tag was originally considers to download the download: <a href=图片src download=下载海报>download the poster</a> but through the
Path path. Specify the WEB page associated with the cookie. The value can be a directory or a path. If //www.VeVB.COm/test/index.html creates a cookie, then all pages in the //www.VeVB.COm/test/ directory,
I just wanted to make a small thing that combines winform with html5. I suddenly became interested and wanted to embed a WeChat web version in it. Okay, as soon as the idea comes up, take action. The final effect is as follows: From the beginning, I plann
Effect: molding date - age = required test date! Event: The event is triggered when the molding date text box is changed! The event is triggered when the age text box is changed! Code: (Description: Molding date ID: tbcxrq Age ID: tblq Required test date
The following is the situation I encountered in development: 1. Dynamically delete a line in Table. Table: Indicates Table objects. K: Indicates the line number table.rows [k] .Removenode (true); // Firefox's execution failed, IE execution successfull
During the development of the web project, we often quote CSS and JS files. After updating files, cache problems often occur (clearly changed the code, but it has not changed when accessing on the browser). In this case, we usually use the following two t
The code is as follows: Copy the code The code is as follows:<script type="text/javascript"> String.prototype.Trim = function() { var m = this.match(/^/s*(/S+(/s+/S+
This article introduces the sample code for dynamically drawing a pie chart using HTML5 canvas, and shares it with everyone. The details are as follows: Let’s first look at the rendering. This does not refer to third-party libraries such as jquery, but is
In a recent project, there is such a feature: there is a checkbox on the page. When the user selects or deselects the checkbox, a jsonp request will be sent to the background. The implementation at that time was to add an onchange event to this checkbox,
I think everyone has done common functions such as mask layers, which can be implemented with css or jquery. The implementation methods are diverse. Here http://I will introduce the method I implemented in the project. Full-screen mask, some areas are ope
<canvas></canvas>is a new tag in HTML5, used to draw graphics. In fact, this tag is the same as other tags. Its special feature is that this tag can obtain a CanvasRenderingContext2D object, which we can control through JavaScript scripts.