each language has its own special place, for JavaScript, the use of Var can declare any type of variable, the scripting language seems very simple, but to write elegant code is the need for continuous accumulation of experience. This article
Object-oriented and object-based
Almost every developer has development experience in object-oriented languages such as C + +, C #, Java. In traditional object-oriented languages, there are two very important concepts-classes and instances. A
Front.
Strings and arrays have many similarities, their methods are numerous, and their similarity is high, but they are different, and strings are immutable, so they can be considered as read-only arrays. This article compares similar methods of
I have roughly translated some of the articles, may have misunderstood the place, please correct me. It is worth mentioning that the debate in the comments section is also worth seeing.
Feature Detection
At first, the front-end engineers objected
I recently checked the JavaScript data and found a function:
Copy Code code as follows:
function format (s)
{
var args = arguments;
var pattern = new RegExp ("% ([1-" + Arguments.length + "])", "G");
return String (s).
In the previous article, we introduced the concept of prototypes, learn about the relationships between a constructor, a prototype object, and an instance of three good friends in JavaScript: each constructor has a "Guardian God"--the prototype
Node Object properties
childnodes-returns the node list of nodes to child nodes
Firstchild-returns the first child node of the node.Lastchild-returns the last child node of a node.
nextsibling-returns the sibling node immediately following the
In JavaScript, the logical AND operator is represented by a double ampersand (&&)
var btrue = true;
var bfalse = false;
var bresult = btrue && bfalse;
The following truth table describes the behavior of the logical AND operator:
Recommended reading: Add, delete, change and check the array of JavaScript learning notes
An array summation method of JavaScript learning notes
A random sort of array of JavaScript learning notes
It often happens that the interviewer will ask
ES6 (ECMAScript 6) is the upcoming new version of the JavaScript language standard, code-named Harmony (meaning of harmony, obviously did not keep pace with our country, we have entered the Chinese Dream version). The last standard was enacted in 200
When I was reading this article, I was reading "Dark Time" written by Mr. Liu Weipeng, and if you are lucky enough to see this blog, I hope you can also read this book. All right, gossip less, get to the point.The idea of generics and polymorphism
Javascript
Following IE instead of Internet Explorer, MF replaces Mozzila Firefox
1. Document.form.item question(1) Existing problems:There are many Document.formName.item ("itemname") statements in existing code that cannot be run under MF(2)
Article Introduction: in JavaScript, we can use the instanceof operator to determine whether an object is an instance of a class, and if Obj instaceof class returns True, then we think that obj is an instance of class, and obj is created by class,
Javascript| conversions are not the same in Java, for example, when integers are converted to strings, you must use the integer.tostring () static method or the String.valueof () static method to convert the string to an integer. You must use
javascript|xml| Create
You can use the FileSystemObject (FSO) object or use the XML Document Object Model (DOM) directly on the client to create an XML file. If the FSO is used, the client must install Window Script 5.5, and using the XML DOM
function is used in JavaScript to create functions or methods, but to implement object-oriented programming, classes are one of the indispensable roles and protagonists. But there is no class concept in JavaScript, and the so-called class is also
Today, sorting out their folders, found that once interviewed Tencent interns were asked to hang the face of the questions, I will be prepared for your reference. It was the handwriting code that was required. Khan, I was in a weak burst!
1,
The array sort function of JavaScript is sorted by default in ascending order of ASCII characters.
Arrayobj.sort (sortfunction);
Parameters: Sortfunction
Options available. is the name of the function used to determine the order of elements. If
First, you need to configure a Web server
When designing a WAP Web page, whether you are using a WAP development tool UP.SDK or Nokia wap Tookit or Ericsson Wapide, you must make Web server settings, So here are a few common Web server settings
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.