Published on blog.csdn.net/zxub
Yesterday I thought about how to use JavaScript to locate the jump menu after page refreshing, and proposed a solution. However, I always felt that it was not universal. Later I thought about it and simply looked
Javascript controls HTML element display/hide
1. Compile JS Functions
2. Add the ID attribute to the HTML element to be displayed/hidden
control the display/hide of this tr
3. Add buttons and links to trigger JS functions.
display/
Ext. Data. datareader
A pure virtual class that converts structured data from a data source to a metadata object. An object contains a record set, which is generally used as the metadata of a store object,
Has the following format
{
Totalrecord: int,
Generally, if we define a class, we define a function object and write the public method to its prototype. For example:VaR tiger = function (){}Tiger. Prototype. Hunting = function (){}
However, to build a complete framework or class library without
Only Chinese characters can be entered
Only the full width can be entered.
Only numbers can be entered
Only English and numbers can be entered.
Close parent window (no prompt)
Make the table translucentThis is body! This is layer! Or
Shield JS
Closure is a difficult and characteristic of JavaScript language. Many advanced applications rely on closures for implementation.
I. Scope of Variables
To understand closures, you must first understand the special variable scopes of
[Original] Introduction to JavaScript testing tools
1js-test-driver
The goal of jstestdriver is to build a javascript test runner which:
Easily integrates with continuous builds systems and
Allows running tests on multiple browsers quickly
I just wrote some examples and hope to get some summary:
1. Open a dialog
String jsstring1 = "window. showmodaldialog ('" pageurl "+"', '', 'center: Yes; help: No; resizable:" + (isresizable? "Yes": "no") + "; Status: No; dialogwidth:" + dialogwidth
Receiving parameters with Js in HTML
First, we will introduce how to process URLs in JS:URL example: http: // localhost/test/test.htm? Id = 1
---------------------------------Location objectContains information about the current URL.AttributeThe
Data storage is scripted. We use cookies and userdata.
First, we will introduce the cookie.
Cookie is a persistent object that the browser provides to the client to store a small amount of data.
The life cycle of a cookie can be longer than that of
Post address: http://www.cnbruce.com/blog/showlog.asp? Cat_id = 5 & log_id = 459
Open (URL, windowname, parameterlist): The open method creates a new browser window and loads a specified URL address in the new window.Close (): close a browser window.
JSON (JavaScript Object Notation) is a simple data format, which is lighter than XML. JSON is a javascript native format, which means that no special API or toolkit is required to process JSON data in JavaScript.
JSON rules are simple: the object is
Object-oriented language must support the Inheritance Mechanism. One class can reuse the methods and attributes of another class.
1. Inheritance Method
Object impersonating
Working principle: the constructor uses the this keyword to assign values
Call () method
Its first parameter is used as the object of this, and other parameters are directly passed to the function itself;
Overwrite the previous example:
Function classa (scolor ){This. Color = scolor;This. saycolor = function (){Alert
The table control (DataGrid) allows end users to read and write applications to the vast majority of databases. The DataGrid control can be quickly configured during design, with only a small amount of code or no code. When the datasource attribute
We designed a form for verification on the local client. If the verification is not correct, submission is not allowed. The jump is allowed only when the verification is complete and correct.
1. JavaScript code:
JavaScript prohibiting form
this note is not a detailed record of JavaScript. It records the characteristics of JavaScript that I saw in the third edition of the Javascript authoritative guide and considered interesting. (Javascript1.2)
1. JavaScript and Java feature sets do
Published on blog.csdn.net/zxubI forgot to move this article yesterday ~Previously I wrote about the function for jump menu positioning after the static page is refreshed. I had nothing to do with it a few days ago. It still seems a bit problematic
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