Document directory
1:
2:
An array object uses a separate variable name to store a series of values.Instance
Create an array
Create an array, assign values to it, and then output these values.
For... in statement
Use the for... in Declaration to cyclically output the elements in the array.
Merge two Arrays-Concat ()
How to Use the Concat () method to merge two arrays.
Using array elements to form a string-join ()
How to Use the join ()
The string object is used to process existing character blocks.
Javascript string object instance
Calculate the length of a string
How to Use the Length attribute to calculate the length of a string.
Add a style to a string
How to add a style to a string.
Indexof () method
How to Use indexof () to locate the first occurrence of a specified character in a string.
Mat
Lexical structure of Javascript core reading; javascript lexical
The lexical structure of a programming language is a set of basic rules used to describe how you compile the language. As the basis of the syntax, it specifies how the variable name is, how to write comments, and how the statements are distinguished. This section describes the lexical structure of javascri
JavaScript-the most misunderstood language analysis JavaScript in the world is one of the world's most popular programming languages.
. In fact, every personal computer in the world is installed and at least one Jav is frequently used.
AScript interpreter. The popularity of JavaScript is entirely due to his
The position in the WWW scripting language field is dete
Some of the features of JavaScript bring much more trouble than they do.
Chapter 2 Essence
Some of the features of JavaScript bring much more trouble than they do. Some of these features may cause portability problems due to imperfect specifications. Some features may generate codes that are hard to understand and modify; some features make my code style too complex and error-prone; others are design error
Article Introduction: finally undefined thank you for reading this article! Sincerely hope it will help you become a JavaScript enthusiast. If you are already familiar with JavaScript, you can recommend any other relevant resources in the comments.
It's a terrible thing to learn something new. For me, the biggest problem with mastering a new skill is that I don't know what I understand. In view o
Use CoffeeScrip to write javascript code and javascript code in a elegant way
JavaScript is undoubtedly one of the greatest web inventions. Almost all the dynamic effects of web pages are based on its rich computing capabilities. Moreover, its capabilities are becoming increasingly powerful under various new JavaScript
The last time the Observer model was studied, many articles said it was also called subscribe/publish (Publish/Subscribe mode). There are some differences between the two patterns in the JavaScript design pattern book. The book reads as follows:
1.Observer mode requires that an observer who wishes to receive a topic notification must subscribe to an event that changes the content.
The 2.subscribe/publish mode uses a theme/event channel between subsc
This article mainly introduces the JavaScript Memory optimization, mainly because javascript applications are getting more and more complex, and memory problems such as choppy and memory overflow become no stranger, so we also talk about memory optimization, for more information, see C/C ++. The processing of JavaScript in memory has made us pay more attention to
Publish/Subscribe (PUB/SUB) is a message pattern with two participants: Publisher and Subscriber. The publisher posts a message to a channel that the subscriber binds to, and when a message is posted to the channel, the Subscriber receives the notification. Publishers and Subscribers are fully decoupled, sharing only one channel name with each other.This mode improves the serviceability of the application and makes the application easy to extend.Simple design idea: The design Channel records the
http://www.phpv.net/html/1700.html JavaScript's settimeout and setinterval are two easy ways to deceive others, because we begin to think that the call will be executed in a given way, I think a lot of people have the same feeling, for example
SetTimeout (function () {alert (' Hello! ');}, 0);SetInterval (callbackfunction, 100);
It is thought that the greeting method in settimeout will be executed immediately, because it is not a thin air, but rather the
Complete Javascript development kit
Prototype
Prototype is a JavaScript framework that aims to publish development of dynamic web applications.
Homepage: http://prototype.conio.net
Documentation:Http://blogs.ebusiness-apps.com/jordan/pages/Prototype%20Library%20Info.htmHttp://www.sergiopereira.com/articles/prototype.js.htmlHttp://wiki.script.aculo.us/scriptaculous/show/Prototype
Rico Rico provides a very
We often see some data types in javascript, such as "undefined", "boolean", and "string, this article will help you learn the basic JavaScript data types, value types, and reference types. For more information, see this article, four basic data types in JavaScript: Numeric (integer and real), string (character or value enclosed by a "" sign or), Boolean (expresse
The setTimeout and setInterval of JavaScript are two methods that can easily fool others' feelings, because we often start to think that the call will be executed in the established way. I think many people share the same feeling. For example
The Code is as follows:
SetTimeout (function (){Alert ('Hello! ');}, 0 );SetInterval (callbackfunctions, 100 );
It is assumed that the greeting method in setTimeout will be executed immediately, because it is
1. What is JavaScript?
Javascript is a scripting language based on object and event-driven with secure performance. It is used to link multiple objects on a web page with HTML hypertext markup language and Java scripting language (Java applet) to interact with Web customers, this allows you to develop client applications. It is implemented through embedding or calling in a standard HTML language. Its appea
Source: javascriptOnlineObfuscator http://www.BizStruct.cn/JavascriptOnlineObfuscator
Objective of Javascript code obfuscation
Javascript is a script language for interpretation and execution. It is mainly used in browsers of clients in the Web field. Due to the characteristics of Javascript interpretation and execution, the Code must be downloaded to the client
Source: javascriptOnlineObfuscator http://www.BizStruct.cn/JavascriptOnlineObfuscator
Objective of Javascript code obfuscation
Javascript is a script language for interpretation and execution. It is mainly used in browsers of clients in the Web field. Due to the characteristics of Javascript interpretation and execution, the Code must be downloaded to the client
For example
Copy Code code as follows:
settimeout (function () {alert (' Hello! ');}, 0;
SetInterval (callbackfunction, 100);
It is assumed that the greeting method in settimeout is executed immediately, because it is not a figment of the imagination, but rather a JavaScript API document that explicitly defines how many milliseconds the second parameter meaning is, and the callback method is executed. This is set to 0 millise
Summary of little knowledge about JavaScript performance optimization, and javascript Performance Optimization
With the development of the network, network speed and machine speed, more and more websites use a variety of client technologies. Ajax is currently the most popular method. JavaScript is an interpreted language, so it cannot reach the level of C/Java, w
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.