Base. js? 1.1.23
Base. js contains the following content
Class creation and inheritance:Class. create (): create a Class, such as person = Class. create () Object. extend (destination, source): copy the method attribute in source to destination
In‑criptclass, howtocalltheprototypemethod. (threemethod) 1. Using Javascript eval Method.
2. using a temporary Ables save object "this" reference.
3. in innerHTML, we can using String to pass the prototype Method.
E.g.
How to Use Prototype in string. js? 1.1.23
The following describes how Prototype extends String objects:
This section mainly adds several useful methods to the string object:
Strip ():Removes the white space on both sides of the string. For example,
Gzip Static Compression in JavaScript is an effective and feasible method, but it requires Apache support (Apache and IIS share a port ).
The compression ratio provided by traditional JS compression (delete comments, delete extra spaces, etc.) is
Using the button tag to implement the three-state image button is essential for a good user experience. I processed dom events and implemented three-state buttons without changing the html. The key to the solution below is to remove the dotted line
About the prototype of Javascript. Prototype
1,
Prototype is associated with Clone,
That is to say, when an instance is created, prototype will clone the Member to the instance of this Class (function.
Detail: the prototype of the most common built-
The full set of Javascript standard DOMRange operations level 2 DOM defines a createRange () method. If it is based on the DOM standard browser (IE does not support this standard, however, the attributes or methods in IE are much larger than those
A good way to copy a table on a webpage through js script someone asked me today: how to copy a table on a webpage through js script? It seems difficult, but it is still done. By the way, we will record the process of solving this problem and hope
In javascript, the development of the control layer on the layer is very important in practical applications, such as floating advertisements. I will discuss it briefly here.
1. display or hide the control layer
Both methods actually control the
The fromCharCode and charCodeAt Methods return a string from some Unicode character values.
String. fromCharCode ([code1 [, code2 [,... [, codeN])
Parameters
String
Required. Is a String object.
Code1,..., codeN
Optional. Is the
Js is not a basic Preface
Javascript is a very free language. Everything in Javascript is a variable, including a function.
Basic
Function
(Definition) (parameter 1 [, parameter 2...]) the following code creates a function and runs it.
Javascript example tutorial (19) Use HoTMetal (3)
Use javascript in HoTMetal3. What kind of resources are suitable for script writing?When using HotMetal PRO 6.0 to write macros, you can use the following resources:Predefined eventsHoTMetaL PRO 6.0
Used to automatically add DiggThis! Button JavaScript
The Code is as follows:
Var main = document. getElementById ("main ");Var singlepost = false;Var firstpost;Var anchor;For (var I = 0; I
{
If (main. childNodes [I]. className & main.
Javascript script forie, firefox From: http://blog.donews.com/dodo added to favorites
The test passed in IE and FF is invalid in TE.
function addBookmark (title, url) {if (window. sidebar) {window. sidebar. addPanel (title, url, "");} else if
The paging function implemented by Javascript From: IECN. Net; Author: Clock
/**
* Paging Class Construction
* Parameter nTotalList: Total number of entries
* Parameter nPageSize: number of entries displayed per page
* Parameter nPageNum: Current
Method to get the name of the Javscript execution function From: http://blog.iecn.net/zmm href = "http://blog.iecn.net/zmm" target = _ blank> http://blog.iecn.net/zmm
Implement the progressive expansion of table row clicking! I once saw this effect on a flash RIA site, and the visual effect was really good. Flash developers also probably use this to demonstrate that the dynamic effect of flash applications is
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