When working on the project, I found that it would be more comfortable to use js to process page jumps between JSPs, so I did it using js.
However, during js redirection, it is found that the parameter is directly written in the URL. Only in
Java calls javascript Functions,
Many people know that java calls c ++ and c ++ to call java, and java also calls javascript or javascript calls java (dwr)
In fact, it is very simple to call javascript in java. The most important thing is that
It is not easy to read the source code of jQuery.
The latest jQuery version is v1.6.4, And the uncompressed version is about 9000 lines. Even programmers who are familiar with javascript will be very difficult to read, and the design of jQuery's
JQuery AJAX methods that can be accessed across domains
GetJSON, get
See the sample code first.
Ajax URL path: http://www.A.com/Api.aspx
Api. Aspx. cs
Bytes -----------------------------------------------------------------------------------------
First, we will introduce the associated array:
Run the above Code and 1 is displayed.In javascript, methods and attributes are treated as values.
Implement the above Code and display OK. The first is to define an object test, which has four
JavaScript scopes are very important in general. Each section of JS has a scope chain and searches from the lower to the upper.
Part 1: Scope chain
View plain
Step 1: determine the scope. The ninth row is in the window. Row 10 is in getp ()
Step 2:
JSON (JavaScript Object Notation) is a lightweight data exchange format. Easy to read and write. It is also easy to parse and generate machines. It is based on a subset of JavaScript Programming Language, Standard ECMA-262 3rd Edition-December 1999.
The complete format for calling the load method is: load (url, [data], [callback]), whereUrl: the address of the file to be imported.Data: an optional parameter. Because Load can not only import static html files, but also dynamic scripts, such as
Fruit database modification:The topic list must change with the result type.After you query data on the Internet, start the operation. In the result type drop-down box, add the change () event to trigger Dwr and query the topic set-dynamically
In front-end development, we can't help but use read/write cookies and dynamically introduce js scripts and other related operations. How can we achieve this? See the following js functions:
[Javascript] var JsHelper = {CreateJS: function (url ){Var
Extension
Code:
Var blogModule = (function (my ){My. AddPhoto = function (){// Add internal code};Return my;} (BlogModule ));Say:
Pass itself into the method, and then implement the extension of the method, a bit like assembling parts.
Code:
Var
In most forums or blogs, you can see a piece of code in the author's or comments and perform online testing.
The code for implementing this function is as follows:
[Javascript] Run Code Hi, this is my website ! Run Code Hi,
JavaScript RegExp object:Global -- Boolean value, indicating whether g (global option) has been setIgnoreCase -- Boolean value, indicating whether I (case-insensitive) is setLastIndex-integer, indicating the position of the next match starting from (
I. Reasons for Demand
The following results must be implemented when filling out the form:
II. Specific implementation
no text after clicking the mouse, text after moving the mouse
Account:
From gaolinwu's column
In the Getting Started with UglifyJS, we mainly recorded the installation and configuration of UglifyJS. At the end of this article, a simple command is used in the command line to compress a JS file. This article compresses JS files
1) Basic Type--- Number, which adopts the 64-bit floating point format defined by the IEEE754 standard.Special numeric constants:Special values of InfinityNaN non-numeric valueNumber. MAX_VALUE indicates the maximum Number.Number. MIN_VALUE
NodeJS for MySQL operations
1. Create a table (such as teachers) in the database (such as lzq ).
2. Install the MySQL driver for nodeJS:Npm install mysql;
3. Execute the startSQL. js file:Node startSQL. js
4. test environment:Node. js 0.6.12
5. A
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