Recently reread "JavaScript Advanced Programming 3", think should write some blog to record some knowledge of learning, or forget it. Today to summarize is the JS execution environment and scope.
First, the execution environment.
I. Implementation
This article mainly introduces a kind of new advertisement after loading the way, supports the custom HTML advertisement, the Baidu Alliance advertisement and the Google Alliance advertisement. This approach is performed after the page is loaded,
Order
Most of the most appropriate methods for JavaScript are summarized.
Type
? Original type: We can use the value directly.
Οstring
Οnumber
Οboolean
Οnull
οundefined
Searchindex
var foo = 1,
bar = foo;
bar = 9;
Console.log (foo, bar); => 1,
Generally in programming, we will define functions and variables to successfully construct our system. But how does the parser find the data (functions, variables)? What happens when we refer to the object we need? Many ECMAScript programmers know
There is no problem with padding, but the contents of the Drop-down table are not taken out on the server side. The page code is as follows.
Copy CodeThe code is as follows:
look at the server side of the DropDownList control with JS fill can
javascript| Tutorial
Using JavaScript forms for validity testing
The validation of a form is a useful aspect of JavaScript. It can be used to check a given form and find any problems in the form, such as a blank input box or an invalid e-mail
Skills
1. oncontextmenu= "Window.event.returnvalue=false" will completely screen the right mouse buttonno available for table
2. deselect, prevent copying3. onpaste= "return false" is not allowed to paste
4. oncopy= ' return false; ' oncut= '
Article Introduction: JavaScript scoped Security constructor.
The constructor is actually a function called using the new operator. When called with new, the This object used within the constructor refers to the newly created object
Implementation effect:
Figure I:
Figure II:
In this example, the Chinese character string "Take care of Yourself", with three words being pronunciation, so the alert dialog box shows a combination of multiple pronunciations;
How to achieve
All along, I mainly do winform aspects of programming, recently done a bit of the web, so also studied a few days of JavaScript. I have some experience to remember:
The application of object-oriented ideas in JavaScript also applies, the key is
You'll also need to know about the Netive app on Windows 8 that uses JavaScript to develop the Metro interface. In fact, OS X also provides a similar feature, which provides a dashboard application when the v10.4 Tiger is released, and users can
1.script element Properties (6): ①async (Asynchronous script), valid only for external scripts②defer (deferred script), valid only for external scripts③CHARSET,SRC (cross-domain), type,language2. Use external JS files whenever possible, because the
Unicode Character Set and encoding method, unicode Character Set Encoding
Generally, a set of all characters that can be expressed in a standard is called a character set. For example, the character set defined by ISO/Unicode is Unicode. In Unicode,
Handlebars template engine uses learning notes, handlebars learning notesI was a little nervous when I wrote my blog for the first time. I wanted to record the process of the template engine I used. Although there are many items on Baidu, I want to
Jquery hover's solution to non-stop flash problems (also used for stop (), jqueryhover
Jquery is widely used in front-end development. I encountered a problem in the past. The effects of a drop-down jquery drop-down menu were hover up and kept
Determine horizontal screen and vertical screen (3) and horizontal screen
When you create a mobile page, you often need to determine whether the screen is landscape or landscape. We will record the currently known judgment methods through HTML, CSS,
Detailed explanation of the DOM scope in Javascript, detailed explanation of javascriptdom
Preface
To make it easier for developers to control pages, DOM defines the range interface. You can select a region in the document through the range without
AngularJS: the first basic AngularJS knowledge and the first angularjs
AngularJS learns about commands, filters, and other related content.
Command
AngularJS commands are extended HTML attributes with the prefix ng-
1. ng-app:
Defines the root
Mongoose learning comprehension (recommended) and mongoose learning Comprehension
1. Create schemas
How to Create schemas:
var userSchema = new mongoose.Schema({ name: String, email: String, createdOn: Date });
Schemas has the following data
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.