It took a long time to understand JavaScript's this, and now I have recorded my experiences here.
First, this should regard the statement with this as an execution statement, so this has the "thisobject" Decision of the function at the bottom of
I recently learned JavaScript and it is really difficult to debug it. Please remember:
1. Declare an array:
VaR new_array = new array;
Note that uppercase is used;
2. function declaration:
Function change_images () --- Note the brackets
3.
The time countdown function can be implemented using the gettime of the date object after online investigation. I wrote a small example myself,CodeAs follows:
JavaScript time countdown
I. function call
1. js function calls only match the function name, but do not match the parameter list. That is to say, when calling a function, you only need to find the same function name, regardless of whether the parameter matches.
2. the
Summary of the implementation methods of the automatic refresh page:
1)10 indicates refreshing every 10 seconds.2)If you need to refresh an IFRAME, replace the window with the frame name or ID.3)4>
Function ABC (){Window. Location. href = "/blog/
1. Pop up a full screen windowHttp://www.e3i5.com ', 'example01', 'fullscreen'); "> www.e3i5.com 2. Pop up a window after F11Http://www.e3i5.com ', 'example02', 'channelmode'); "> www.e3i5.com 3. Pop up a window with the toolbar of the favorite Link
Open Excel (downmoon original) by calling Javascript in IE)
Keywords: Javascript calls excDoctype HTML public "-// W3C // dtd html 4.0 transitional // en"
>
Html
>
Head
>
Meta
HTTP-equiv
= Content-Type
Content
= "Text/html; charsets = UTF-8"
>
1. Call generated by window. Open
Reference parent window in Child Window: window. Opener
Reference the function of the parent window in the Child Window: window. opener. callme ();
Note: JS functions in the callme parent window.
Residential
1. oncontextmenu = "Return false;" // right-click the block. Note that the body range of IE7 is different from that of FF (IE7 indicates the range of element, while FF indicates the whole) //
2. // disable Text Selection: Work in IE, but not work
Cookies are a technology that allows the website server to store a small amount of data to the client's hard disk or memory, or to read data from the client's hard disk. Cookies are a very small text file placed on your hard disk by the Web server
Javascript parsing reads XML files, mainly load and parse XML files, and then you can test the content of the parsed XML file and print the output.A JavaScript class is written to read data from an XML file. The implementation code is as follows:
Javascript pop-up window:
Onewwindow=Window. Open ([Surl][,Sname][,Sfeatures][,Breplace])
[Surl]= Path of the content displayed in the pop-up window
[Sname]=Window name
Common parameters are: _ blank, which creates a new window with no name
, _
Today, you need to determine the number of characters that need to be entered in the input box. For example, you can enter 10 characters in the full corner, and 20 characters in the half corner. I searched online and wrote an article about
Requirement Analysis:
When uploading images, if you do not limit the size of the uploaded images, the consequences are very serious. So how can we solve a difficult problem? There are two methods:
1) background processing: Submit Ajax post to the
Javascript itself cannot change the color of the image, but we can use some techniques to achieve the same effect.
1. First, we need to know which areas of the image need to change the color. here we can use the dot map method.
Example 1:
In this
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