The use of regular in JavaScript requires attention to a pit inside the brackets, which is the meta-character problem within the brackets. I stepped on the pit, online search and a lot of people stepped on the pit, so probably say a bit.The brackets
1. Variables defined with var within the scope of the function are local variables, which are defined as global variables without var.Using the VAR definitionvar a = ' Hello World ';function bb () {var a = ' Hello Bill ';Console.log (a);}BB ()//'
A function is the most flexible object in JavaScript, and this is just about the purpose of its anonymous function. anonymous function: is a function that has no function name.The definition of a function can be broadly divided into three ways:The
Are you still worrying about converting, matching, and finding data in JavaScript? A bunch of seemingly simple foreach, but long boring, but still keep repeat it! Perhaps you have already used underscore.js, good, you have progressed very big step.
Css enables more content to be displayed when the td cell is hovering over the mouse in the table.
In table, the td cell cannot display all the content. You need to show all the content when the mouse hover.
Normal display style:
When the mouse
Usage of call (), apply (), bind () in javascript, applybind
Functions in JavaScript are not only a language function similar to methods in Java, but can also exist as objects. This article will discuss some special usage of functions in JavaScript,
For incremental enhancement and elegant degradation, incremental enhancement and elegant degradation
Graceful degradation: Build the complete functionality of the site from the beginning, and then test and fix the browser. Progressive enhancement
JavaScript code Analysis and Optimization for the example of the lantern draw activity (1 ).
Recently, I have made a project in which I want to achieve the lucky draw effect. To achieve this function, I mainly use js-related knowledge. If you are
JQuery Timelinr Vertical Horizontal timeline plug-in (with source code download), jquerytimelinr
Jquery. timelinr. js is a very cool jQuery timeline plug-in. Jquery. timelinr can be used to create horizontal and vertical timeline effects and can be
JQuery. noConflict () and jquery. noconflict
JQuery is currently one of the most widely used front-end frameworks, with a large number of third-party libraries and plug-ins developed based on it. To avoid global namespace pollution, jQuery provides
The sample code for jquery to operate the select element and option, jqueryselect
If you don't talk much about it, paste the Code directly. The specific code is as follows:
The above is the sample code for jquery to operate the select
Implement image carousel effect (focus chart) based on JQuery, jquery focus
I wrote a horizontal carousel focus chart in the form of jq. You can click the DOT or the Left or Right button to switch between them. It belongs to the fixed width type. It
JS implements the CheckBox check box function of Selecting All, not selecting, or not selecting all. jscheckbox
The CheckBox control indicates whether a specific status (that is, the option) is selected (on, the value is 1) or cleared (off, the
Implementation of checkbox instance code based on javascript, javascriptcheckbox
This article explains the code for implementing the checkbox check box in javascript and shares it with you for your reference. The details are as follows:
:
Code:
Let's talk about javascript closures and javascript closures.
The following are my study notes, which are useful for beginners of Javascript.
I. Scope of Variables To understand closures, you must first understand the special variable scopes of
Common JS Regular Expressions: js Regular Expressions
I am on the right track. If you want to learn more about the usage of js regular expressions, please refer to this tutorial.
Definition and use
var patt1 = new RegExp("hello"); var patt2 = /world/
My first HTML program, the first HTML Program
title is the content of the displayed tab
Title 1
Title 2
Title 3
Title 4
Title 5
A total of six titles are available. Each title is in the black body by default, and the font is
AngularJS monitors Scope variables and calls the Scope method externally.
In AngularJS, you sometimes need to monitor a variable in the Scope, because the variable changes will affect the display of some interface elements. Sometimes, you also want
Native JavaScript implements the scroll bar effect, javascript scroll bar
This article provides examples to illustrate how native JavaScript implements the scroll bar effect and share the Code with you for your reference. The specific content is as
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.