Why modularity is needed?
When we call a js function in html, if we write this function in another js file, we need to introduce that js file in the head of HTML when we call it.
<h1 id="boy">Hello world</h1> ...
Posted on Sun, 14 Jul 2019 12:10:38 -0700 by sastro
To meet the needs of the project, I wrote a detail page, the effect of the magnifying glass, threw the code on it for learning and sharing, and took daily notes as well.
The effect is shown in the figure (in the example, the picture of Tiancat is secretly chained, hopefully nothing happens). -):
The implementation process is easy to teach, b ...
Posted on Sun, 14 Jul 2019 11:08:16 -0700 by nikes90
Upload function plays an important role in any website. This article mainly talks about how to implement an upload component.
Supported image format (default parameters are used without reference)
Supported picture size
Pictures will be compressed (front-end) - loaded asynchronously before uploading
Posted on Fri, 12 Jul 2019 19:15:04 -0700 by Zooter
Colleagues get a design draft, is the rotation effect of the carousel, so I looked online and found Effect of jquery implementation , whenever you have time, look at the source code, study its implementation principle, and think about using vue's data-driven method to achieve one, but this effect is different from previous demo effect, each tim ...
Posted on Fri, 12 Jul 2019 10:15:18 -0700 by remote2
Previous remarksHTML5 adds two new media-related tags that allow developers to embed cross-browser audio and video content in web pages without relying on any plug-ins. These tags are <audio> and <video> and are not supported by IE8-browser. Video files, for example, contain audio tracks, video tracks, and other metadata (cover ...
Posted on Thu, 11 Jul 2019 18:05:45 -0700 by Plakhotnik
Let's look at a more complete one. Plupload Demo
<title>Plupload Guide to Use</title>
<!-- First, it needs to be introduced. plupload Source code of -->
Posted on Thu, 11 Jul 2019 17:15:09 -0700 by tbone05420
AngulaJS instructions are a very powerful feature. An ng-repeat can make it very convenient for us to display a list of data. Instructions are equivalent to a component, which provides us with the possibility of reuse by encapsulating something. Personally, I think the custom instructions are more complicated, so I will start to tackle the key ...
Posted on Thu, 11 Jul 2019 16:07:56 -0700 by goltoof
ThinkPHP framework has the concept of routing. It seems that routing is more a back-end thing. How can Angular run out of a routing? In fact, Angular is focused on one-page applications. One of his applications is generally a page. The changes you see in the content of the page actually change only the content after the # of the URL address. Ro ...
Posted on Thu, 11 Jul 2019 11:15:06 -0700 by aman_batra
A lot of Promise introductions were found on the Internet, and most of them ended up pointing to the official description of Promise. The official did not give the relevant case description for each sentence. I am dull in nature, unable to understand the meaning of the explanation, so I have to understand one sentence at a time, which ...
Posted on Wed, 10 Jul 2019 16:12:54 -0700 by gabrielserban
Function calls between iframe frameworks
Knowledge Points: Function calls of the same domain windows object of iframe, and function calls of the cross domain windows object of iframe.
Get the window object in iframe on the page
In the midst of compatibility, it is recommended to use contentWindow attributes to obtain window s objects in if ...
Posted on Wed, 10 Jul 2019 13:31:43 -0700 by revraz