these days and learned a lot of the original knowledge, in the weekend summed up some JavaScript library-lodash (Array) of the content, I hope in the future learning from time to review and update themselves. The lodash-JavaScript Tool Library is
JavaScript Pseudo-protocol and inline events are different for this point - ahref="#"onclick= "alert (this.tagname);">Click Mea>Eject a - ahref= "Javascript:alert (this.tagname);">Click Mea>Eject undefined - ahref= "Javascript:alert
This article mainly introduces several common JavaScript cross-domain communication methods. First, explain the JSONP.JSONPJSONP (JSON with Padding) is a "usage pattern" of JSON that can be used to address cross-domain data access issues in
Instance 016 Dynamic Display window Instance description when the window is opened, the window is set to the minimum width, and the height of the window increases gradually, and when the height of the window matches the height of the screen, the
Suppose the user needs to fill in the HTML form with name, address, date of birth, etc.Then, before submitting the form to the server for further processing, the JavaScript program examines the form to confirm that the user has actually entered the
When attaching data on an event object (whether it is a DOM event or a private event that is owned like backbone), the hash object should be passed instead of the original value, which allows subsequent contributors to add more data to the event
Define the method on the prototype object instead of rewriting it with the new object. Overrides make inheritance impossible: Resetting the prototype overrides the entire base class.function Jedi () {console.log (' new Jedi ');} Badjedi.prototype = {
1. The tags. If embedded code is included, only the external script file is downloaded and executed, and the embedded code is ignored. All JavaScript references are generally placed behind the page content in the element.2. Circular reference:
Tips for mobile development: javascript and CSS code sharingThis article mainly introduces essential tips for mobile phone Development: javascript and CSS code sharing. This article describes viewport (visible area) operations, Link Operations,
Mobile webapp adaptive practices (css Sprites for creating gadgets)Why write this?
I have previously written articles (LINKS) on the adaptive screen of webapps, but most people do not understand them, so I came to a illustrated version. Although it
JavaScript and JQuery code sharing for getting the mouse pointer coordinates, jquery mouse pointer
jquery obtains the coordinates of the mouse pointer test the mouse position (jquery function processing) test the mouse position (Common
Problems encountered when using jquery. validate
This article mainly introduces jquery. A summary of the solutions to the problems encountered during the use of the validate is really an old saying, the meeting is not difficult, it is not difficult,
The most detailed JavaScript event User Guide in history (1)
Event stream
Event streams describe the sequence of events received from the page. IE and Netscape propose an almost identical concept of event streams. IE event streams are event
JQuery automatically scrolls to the top of the page.
This example describes how jQuery automatically scrolls to the top of the page. Share it with you for your reference. The specific implementation method is as follows:
$ (". Scroll "). click
HTML5 local storage localStorage, sessionStorage and IE exclusive UserData, html5localstorageHTML5 local storage localStorage, sessionStorage and IE exclusive UserData
The most common method for storing data on the client is non-cookie. With the
JavaScript achieves special effects on carousel images with titles, and javascript titles
Image carousel, which is widely used on some shopping websites, is described below.
CSS code:
HTML code:
1 2 3 4
JS Code:
The above is all the
The ultimate solution for selecting all checkpoints in javascript
It is easy to select the CheckBox or Radio status on the javascript page. Next we will show you the ultimate solution for using the CheckBox in javascript in asp.net, if you have any
Background-attachment attribute, background attribute
The premise is that the background-image attribute is defined, and then the background-attachment is used to indicate whether the position of the background image is fixed in the viewport or
Multiple Threads and single threads of javascript;In javascript, user-defined functions are run in a single thread, but after the rendering part is handed over to the browser, it is run in multiple threads. Other sequences are uncontrollable.For
A complete example of a browser version game based on native js, and a js version
This article provides an example of a snake web game implemented by native js. Share it with you for your reference. The specific implementation method is as follows:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service