Custom events: The main thing is that it has to do with the function, which is to let the function have some characteristics of the event. A custom event can be triggered when it cannot be bound to an event, and it is a call to a custom event
1. This in the self-executing function is window:1 var obj = {2 fn: (function () {3 console.log (this);//this-->window4 return 12;5 }) () 6 };2. The event binding method for the
function counter () {var date = new Date (); var = date.getfullyear (); var date2 = new Date (year, 12, 31, 23, 59, 59);/* Turn Change to seconds */var time = (date2-date)/1000;var day = Math.floor (Time/($ *)) var hour = Math.floor (time% (24 * 60 *
Html summary ---------------------- this is enough. html Summary
HTML is the first step for us to learn Javaweb. It is very necessary to have a good grasp of the course! The following are my notes from senior teachers! I personally think it is very
How do I customize a scroll bar ?, Custom scroll bar?
The customization of the scroll bar often adds a lot of elegance to our projects when we do mobile web, and by adding the css Attribute-webkit-overflow-scrolling: touch; to it, it has the same
Let IE6 IE7 IE8 IE9 IE10 IE11 support Bootstrap solution, ie8ie9
Bootstrap is compatible with the IE series. In fact, the simplest method is to copy the html source code from the bootstrap component page and then change it to your own.The following
HTML, html5
HTML Basics
Mainly inHereI thinkW3shoolIt is a good place to learn.
I recently learned some about HTML, and did not have a detailed system to learn its syntax knowledge. I have learned some about it at the basic level.
What is HTML?Below
Javascript implements dynamic Tag Cloud and javascript dynamic tag
Today, I went to the school library and saw a fun thing. I tried Baidu and found it called the "tag ball", which is:
The direct code is as follows:
CSS:
#div1 {position:relative;
JQuery implements the second-level folding menu code with animation fade-out effect, and jquery fades out
This article describes jQuery's second-level folding menu code for implementing an animation fade-out effect. We will share this with you for
About JavaScript custom callback functions and javascript callback Functions
If you don't talk much about it, You can directly post code to everyone.
Background Analysis
First, let's take a look at a piece of js Code. When adding a javascript code,
A journey to javascript by learning javascript closures, prototypes, and anonymous Functions
This article uses examples to introduce the closure, prototype, and anonymous functions of javascript. For more information, see the following.
1.> about
How to enable a mobile browser to not display advertisements on the pc end?
I wrote a blog post about built-in browsers that do not display Alliance ads.
Determine whether the current browser is a built-in browser based on window. navigator.
How to center a vertical ?, Vertical center img
super Hu
// container settings are as follows:
2 {
3 display: table-cell;
4 text-align: center;
5 vertical-align: middle;
6}
Baidu homepage (exercises), Baidu homepage exercises
After learning Html and CSS for a few days, I made a Baidu homepage as an exercise (because it is the simplest ). Since Javascript has not yet been seen, we just try to make the layout
Simple use of list in JavaScript (menu)
Easy to use: Click the menu to display the following or not
1. Main Purpose: display a menu item, click it, hide it, and click it. The following content is displayed.The overflow: hidden and overflow = visible
JS simple method to limit the number of characters input in textarea, jstextarea
This document describes how to limit the number of characters entered in textarea in JavaScript. Share it with you for your reference. The details are as follows:
In
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