Web development often requires cross-domain problems, and the root cause of cross-domain problems is the same homology strategy in browser security, for example, for http://www.a.com/1.html:
The 1.http://www.a.com/2.html are
Scaling here refers not to the size of the browser, but to the percentage of the content of the browser's Web page (press CTRL and + key or-the zoom of the number key).There is a way to detect this scaling, QQ space all through flash to detect
First of all, the difference between null and undefined:
Performs typeof on declared but uninitialized and undeclared variables, and returns "undefined".
Null represents an empty object pointer, and the typeof operation returns "Object".
It is
Problem description
There are some empty string "" when splitting a string using the JavaScript split method, especially when using regular expressions as delimiters.
Related issues
A JavaScript regular expression produces an empty string group
There are a number of ways to create objects in Javascript.
Object constructor/literal number :
Aside from the design pattern, the most basic method is to call the object constructor to create one and then add the properties to the object.
Peter Seibel, author of Practical Common Lisp, once said that if you need a pattern, there must be something wrong. The problem he said is that because of the innate defects of language, it is necessary to seek and summarize a common solution.
1, what is closure, and closures involved in the scope of the chain here is not said.
2. JavaScript garbage collection mechanism
JavaScript does not need to manually free memory, it uses an automatic garbage collection mechanism (garbage
The performance of JavaScript in the browser can be said to be the most important usability problem faced by the front-end developers.
One of the Yslow23 rules for Yahoo is to put JS on the bottom. The reason is that, in fact, most browsers use a
JavaScript code
/* Set the Lunar date */var calendardata=new Array (100);
var madd=new Array (12);
var numstring= "1,234,567,890";
var monstring= "is 234,567,890 winter wax";
var cyear,cmonth,cday,thedate; The lunar calendar can only be 2
Abstract Factory mode Description
1. The problem of the factory method pattern: In the factory method pattern, the creation class all needs to go through the factory class, if wants to extend the program, must modify the factory class, this
Read a lot of JavaScript strict mode, which has said "Disable with statement", previously seen this is riding on the flowers, around the area, because usually rarely used this statement, the ban can not help to their relationship is not very big.
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:
This article illustrates the way that JavaScript implements copy and paste operations. Share to everyone for your reference.
The implementation methods are as follows:
Copy Code code as follows:
I hope this article will help
The UBound function method in JavaScript is to return the maximum index value used in the specified dimension of VBArray. How to use:
Copy Code code as follows:
Safearray.ubound (Dimension)
Where SafeArray is a required
How to make an efficient Web front-end program is every time I do front-end development will not consciously consider the problem. A few years ago, Yahoo's top-end engineers made a book about improving the performance of the Web front-end,
A JavaScript instance that detects form data, very simple, very practical, interested friends can look at
a JavaScript instance per day-detect form data *first field: Second field: &L T;/div> third Field (numeric):
Kissy Introduction
What is Kissy?
Kissy is an Open-source JavaScript project whose main body is a front-end UI development framework, the Kissyui. The kissy described in this paper refers only to the language and frame design thought in the
2. Perfect map
Our map has spaces, walls, steel, grass, water, headquarters and other obstacles. We can design all of these as objects.
2.1 Creating an Obstacle object group
Object groups hold objects on various maps, and we determine whether an
The examples in this article describe the public, private, privileged, and static member usages in JavaScript. Share to everyone for your reference. The specific analysis is as follows:
The following content is in the "Javascript.dom Advanced
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