if you are free today, you can write a calendar. on the Internet, you can see the Code formatted with a javascript date, A little dizzy after reading it. Code:
/** * @ Param d the delimiter * @ Param p the pattern of your date * @ author meizz
W3school is a good learning website for beginners. The following content mainly describes and uses the API of the JavaScript Object. If you do not understand the content, you can easily view the required questions.
Javascript string object
It is not difficult to obtain URL parameter information through JavaScript, and there are many methods. The reason for using this method is that it uses regular expressions and is very concise.
FunctionGetquery (name)
{
VaRReg =NewRegexp
Batch Processing solves problems such as IE does not support JavaScript and dynamic web pages cannot be displayed.
IE does not support JavaScript! In the Internet option-> Security-> Custom Level-> script settings do not help.Some DLL files are
The requirement is as follows:
The database end is a one-to-many (master table and slave table) that requires a form input on the page. The input rows must also be dynamically added.
On the page, you need to solve the following two problems:
A simple JavaScript class
Function complex (Real, imaginary ){If (isnan (real) | isnan (imaginary ))Throw new typeerror ();This. r = real;This. I = imaginary;}
/*The instance methods of a class are defined as function-valued propertiesOf the
Someone asked me how to use JavaScript to remove the following code:
This is a div
My answer is:
Document. getelementbyid ("Link"). removenode (true)
Document. getelementbyid ("Div"). removenode (true)
However, I ignored the intermediate
If a function contains many local variables and is not of the primitive type, this means that the execution of the function consumes a lot of memory overhead. This process is obviously easy to see. For example, if you execute this function for 1000
Document directory
String. Prototype. Format
Date. Prototype. Format
Function. Prototype. Delegate
Bunker!
You must declare in advance that I do not agree with the method of intruding JavaScript Object prototypes. However, the reason for
04. Simple factory for JavaScript design patterns ---- simplefacotry
The essence of the simple factory mode is that a factory class dynamically determines the product class instance to be created based on the input parameters. This article uses the
From: http://www.w3school.com.cn/js/jsref_obj_date.asp
A good JS website,
The date object is an internal data type of JavaScript.
The date object does not have any attribute that can be read and written directly. All accesses to the date and time
① Read and write inherited attributes
Each class has a prototype object with a set of attributes. However, a class has many potential instances, and each instance inherits these prototype attributes. Since a prototype property can be inherited by
During Modular programming, many projects adopt the module mode because it provides structured ideas and helps organize the growing code. Javascript, C ++, Java, and other object-oriented languages are different. It does not have the syntax for
Arrays and operations in Javascript
This article introduces the following aspects:
1. How to create an array2. How to operate the Array (add, delete, read)3. Common array methods and attributes
How to create an array is generally divided into three
Dozens of lines of J scripts can easily implement video calls, and you do not need to download specified browsers, because mainstream browsers such as IE, Firefox, chrome and other Windows platforms all pass through and run perfectly. I will share
// 17
// Parse the search string, then return a object.// Object info:// -- Property:// ---- Result: a array contained a group of name/value item. The item is nested class.// -- Method:// ---- Getnameditem (name): find item by name. If not exists,
I spent a lot of time organizing and writing stuff. I was a little reluctant to release it. After the release, no copyright is added, which saves the trouble of deleting: d
Features: strong versatility, achieves script and HTML Separation
I will not
After learning JavaScript, for some summary, see my previous blog "Regular Expressions in JavaScript", "details in JavaScript", "self-built JavaScript function library", "Object-Oriented in JavaScript", and "scopes and closures in JavaScript ". and
Test by IE7/Firefox 3.0/Google Chrome
Closedemo.htm
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
Note:
If you are using Firefox, please make sure your settings:
1. Type "about: config" into
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