The link method returns the (italic) string that is defined using the HTML a label property. The syntax is as follows:
Copy Code code as follows:
Str_object.link (URL)
Parameter description:
Parameters
Navigator Browser object that contains the version information for the navigator you are using. Reflects the information of the browser currently in use. The JavaScript client runtime engine automatically creates the Navigator object.
More detailed
JavaScript provides a RegExp object to complete the operation and functionality of regular expressions, and each regular expression pattern corresponds to a regexp instance. There are two ways to create an instance of a RegExp object.
Using the
In this chapter I mainly introduce the first-level dom of the web, which has been supported by a new generation of browsers. Make a general understanding of his work and let you know what you can do to them.
First, there are some suggestions for DOM
What is unit testing?
Unit testing, also known as module testing, is a test work for correctness testing of program modules (the smallest unit of software design). Unit tests are primarily used to verify the internal logic of a program, also known
JavaScript is a dynamic language, you can add properties to an object at run time, or you can delete (delete) attributes to an object
Copy Code code as follows:
Property Name: Method name is also possible.
This article illustrates the JavaScript alternative method for implementing HTMLEncode () and HtmlDecode () functions. Share to everyone for your reference, specific as follows:
The most common practice is the use of regular expression replacement
You're going to go home and farm.
Copy Code code as follows:
Delete Thisisobject[key]
Or
Delete Thisisobject.key
By the way, we'll talk about the use of delete.
A few weeks ago, I had a chance to read Stoyan Stefanov's
The first part of this series introduces the basics of JavaScript modules and today describes how to use modules in a standardized way.
(up to the above)
Specification of Modules
first think about why the module is important?
Because of the
For JavaScript types, it is simple to generalize that it is a weakly (loosely) typed language relative to a strongly typed language; There are basic types and reference types, and they are the difference between a fixed space that exists in stack
Examples are as follows:
Untitled document
The above is a small series of JavaScript for everyone to access the ID object properties in the way access attributes (instance code) all the content, I hope that we support cloud
I have been in touch with jquery for some time, and today I just use the carousel to practice practicing. The front of the blog will introduce a simple use of jquery to do a carousel diagram of the example, the middle will be inserted some more
1.document.formname.item ("itemname") problem
Note: Under IE, you can use Document.formName.item ("ItemName") or document.formName.elements ["elementname"]; Firefox, you can only use the document.formname.elements["ElementName"].
Workaround: Unify
1, the discovery of IE under the input label ID attribute the default and name properties are the same, and Firefox must explicitly write out the name of the id attribute, or you can not use the id attribute.
such as:
In IE under the following code
Objective
The recent discovery of regular in JavaScript is somewhat different in some places than in other languages or tools. Although it is almost impossible for you to write and hardly use the following I say, it is good to know.
The code
1. Jquery–javascript Framework
JQuery is the most popular JavaScript framework, simplifying HTML document traversal, event handling, animation, and Ajax interaction.
2. Dojo Javascript Framework
The powerful core of dojo makes Web development more
This morning I took the time to write a star rating effect, to share with you. Because of the limited level, please point out if you have any questions.
First to prepare a picture of the stars, Gray is the default state, yellow is the selection
Read Cookie string method:
Copy Code code as follows:
A Web site's cookie string contains all the cookies (JavaScript-accessible, not-httponly cookies) under the site's domain name, separated by semicolons
On the Windows platform, JS can invoke many Windows provided ActiveXObject, this article uses JS to implement document processing, and use JS to write ActiveX to do a simple introduction.
Copy Code code as follows:
New Document
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.