Unlike python, JavaScript can easily write strings in multiple lines. For example, python can write strings like this:
Mstr ="""Line1 line2 'line3'"""
Javascript can only be assembled with ++.
Mstr = "line1" + "line2" + "'line '";
As you get
I learned a variety of C ++/Java and other languages without any help. I found that I still need to first understand some of its basic features to learn a language, which will be of great help in the future.
Today, I will start from here and
This time, let's talk about "static.
Static member variable
As we all know, static member variables are the variables that only store one copy of the entire class. No matter how many objects you create through this class, all
Recently developed projects need to use JavaScript to read the parameter values in the URL string.
By searching for materials and experimenting with yourself, we were successful.
The script is as follows:
Test:
If you have other
Differences between showmodaldialog and showmodelessdialog in Javascript
1. Similarities and Differences between showmodaldialog and showmodelessdialog
The two pop-up forms cannot be refreshed.
Exception: the former is a modal window and
click a location in the document. The message box displays the name of the tag you clicked.
This is the title This is a paragraph.
From: http://www.w3school.com.cn/htmldom/dom_obj_event.asp
First, take a lookCode:
1
Running result: Create a div on the page. The text isDivision element, then alert generates division element. When I click Div, the output is"Undefined"
My own understanding: "Create a div on the page, the text is
1. Call JavaScript Functions in COM components// Connection point method page Javascript script // Event property method page Javascript scriptFunction onstate (s ){Alert ("onstate (" + S + ")");Return 456;}VaR o = new activexobject ("testatl.
Interface interaction between MFC ActiveX and JavaScript
In ActiveX applications, JavaScript interaction with Web pages is essential. Here is a brief introduction.There are two types of ActiveX created by VC: MFC ActiveX and ATL ActiveX, which are
1. directly jump to the original form using
Window. Location. href = "the page you want to jump ";
2. Open the page in the new form:
Window. Open ('page you want to jump ');
Window. History. Back (-1); return to the previous page
3.
The prototype chain has always been a very abstract concept and cannot be found. With the recent study of JavaScript, I have a little understanding of the prototype chain. Basic knowledge
In JavaScript, there are two types of values: Original Value
Describes the status of an event, such as the element that triggers the event object, the location and status of the mouse, and the key that you press. The event object is valid only when an event occurs. Some Properties of the event only make sense
When using the free time to learn the Javascript language, I wrote an example of browsing a single image through a link:
Code
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> Doctype HTML
Http://www.cnblogs.com/cloudgamer/
Above is a front-end special effect blog
Move the mouse to enlarge the image
Doctype HTML public "-// W
3c
// Dtd xhtml 1.0 transitional // en
Cookie attributes
Expires survival
Default Value: exists during the session (the cookie value is destroyed after the user closes the browser)
Others: The date format is normalized to GMT (or UCT) "weekday, DD-mon-yyyy hh: mm: ss gmt".
/*
** Purpose: Check whether the input string is composed of English letters, numbers, and underscores (_).* Input: S, string* Return: If the verification succeeds, true is returned; otherwise, false is returned.
*/
Function
There is a popular saying that JavaScript is object-based and event-driven. How should we understand the meaning of "Object-based?
"Proficient in JavaScript" tells us that objects are the foundation of JavaScript, and even "javascript is
Common functions:
Createelement: creates an element. It is not displayed immediately and must be bound to a parent node)
Createtextnode: Create a text node. It is not displayed immediately and must be bound to a parent node)
I was going to go to bed. I opened my blog and found that there were visiting guests late at night. To thank me for my interest, I decided to write this article and go to bed again ~ If you have any mistakes or are worthy of discussion,
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