Web site for testing:
Http://www.pagecolumn.com/tool/regtest.htmthe string used for testing is:
BsdfefsdfAaaDfsdfaAAA G: Global lookup Mode
No g will only match 1, plus g to find all the matches
Regular expression:
/aaa/The results match the
The Javscript function looks for content to be printed within the DIV control id,div. function Printme ()
... {
Document.body.innerhtml=document.getelementbyid (' Div1 '). InnerHTML;
Window.print ();
}
Implementation of printer settings
One of the 3 languages that JavaScript Web developers must learn: HTML defines the content of a Web page CSS describes the layout of a Web page the behavior of JavaScript pages
This tutorial is about JavaScript and about how JavaScript works with
JavaScript Regular Expressions and variable elevation
Grammar
/Regular expression principal/modifier (optional)
using string Methods
In JavaScript, regular expressions are typically used in two string methods: Search () and replace ().
The search
I. Demand
Recently encountered a requirement, using JS read the file name information under the shared folder, and then list the file name on the page for users to choose. Second, the code JS read files need plug-in support, the plugin only IE
2.2 JavaScript User Experience
The starring in Ajax tools Needless to say it must be JavaScript. An AJAX application is completely down to client memory, fusing data and performance and program logic, and JavaScript is a tool for executing
1, JavaScript movement----fade in the picture
1.1 Compatibility notation for transparency
1.2 Use variables to preserve the change of transparency
1.3 Code
fade in Picture 1.4 Use of the picture
If a page stipulates that the entire page's encoding format is utf-8, but because the browser default encoding is iso-8859-1, after the data submits to the server to say, whether Java or PHP can be easy to convert between different coding formats,
Brief IntroductionIn many traditional languages (c/c++/java/c#, etc.), functions are present as a second-class citizen, you can only declare a function with the keyword of the language and call it, if you need to pass the function as an argument to
Write to the following code
$ ('. Menu '). Click (function () {
//do something with ' this '
//This property is used here
});
Here, this refers to an ordinary DOM object, such as [object Htmldivelement]To operate, you need to use the
JavaScript can be very slow to perform a large number of character processing. Refer to some articles on the Web and write a simple StringBuffer class:
First, class diagram:StringBuffer ()StringBuffer (String). Append (String). toString (separator)
Address: http://www.iteye.com/problems/92347
This bug is JS intrinsic, floating point accuracy is not allowed, you can use the following methods to solve the idea is to enlarge first, sum, difference, product and so on after the calculation and then
In the development will often have directly closed the page does not eject any hint of the demand, in the IE6 can be directly like the following to write it
This problem may be due to some security considerations in IE7 (because it is not
5 Promise.all ()
The Promise.all method is used to wrap multiple Promise instances into a new Promise instance.var p = promise.all ([p1, p2, p3]);In the code above, the Promise.all method accepts an array as an argument, p1, p2, and P3 are instances
Turn from: http://www.nowamagic.net/javascript/js_SomeJavascriptSkills.php
feature detection rather than browser detection
Because certain characteristics of a browser does not support, we often do in the code directly to do the browser to judge
Turn from: http://www.cnblogs.com/uedt/articles/1748422.html
This digest from: http://www.cnblogs.com/reommmm/archive/2010/01/20/1652469.html
One, self
This is very simple. We know that if you open any Web page, the browser will first
This article refers to http://www.datchley.name/es6-eventemitter/Let's talk about the Observer model first. Because Eventemitter is based on the observer pattern. Observer Mode
Eventemitter
Implement a Eventemitter class as an object to be observed:
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