Today is the change of the easyui framework topic:Download official website themes: Official Website themes
Of course, we need to put the downloaded themes package under the themes folder of easyui and find there are also Metro-style themes on the
I spoke about the basic usage of the datagrid framework yesterday. Today I will discuss his advanced usage:Because the data received by the datagrid is in Json format, we may encounter problems when displaying data on the front end, especially in
In javascript, context scope is complicated, and apply and call can change the context of the method.
Apply usage:
Function. apply (thisobj, args)
Thisobj: the scope of calling the function method. In the function method, this indicates
Args: A
For example, I am honored to announce that the author of this bad regular expression is me.
The regular expression originating from Unix has always been the Swiss army knife for string processing. Today, I wrote a program with this knife, and the
Json file is a lightweight data interaction format. GetJSON () is generally used in jquery to read data.
$. GetJSON (url, [data], [callback])
Url: the address of the loaded page.
Data: Optional. data sent to the server. The format is
I. load () method (simplest)
Load (url, [data], [callback])
Url: the address of the loaded page.
Data: Optional. data sent to the server. The format is key/value.
Callback: optional, callback function
1. The simplest application
[Html]
load method
In J2EE programming, the most popular scripting language is JavaScript. When JavaScript is used, we usually consider its performance. Therefore, we summarize the summary of the JavaScript Performance Optimization Method for query.
When using
[Javascript]
Many of my friends noticed that it can show news images cyclically in the form of slides. It also has a very beautiful switching effect. clicking on an image will go to the corresponding page, this not only saves valuable page layout,
The jquery tutorial provided in this article implements highly adaptive iframe.The procedure is as follows:Add the following script to the page that contains iframe, re-set the height after loading the content in iframe, and pass the test in
Add textfield to form. panel. One of the attribute settings is allowBlank: false. The input box cannot be blank.
When the input is blank, the prompt message "This field is required" is displayed. If we want to internationalize the system and convert
1. Normal Value of json data: json [I]. fieldName
2. json data fields contain spaces: eval ('json ['+ I +'] ["'+ field +'"] ')
3. json Data assignment: eval ('json ['+ I +'] ["'+ field +'"] = '+ jsonFilter. length );
4. Add fields to json data:
[Javascript]CSS can be added in-row, embedded, external chain, and pilot type.A) dynamically introduce the style sheet file:Function loadLink (url ){Var link = document. createElement ("link ");Link. type = "text/css ";Link. rel = "stylesheet ";Link.
I would like to share with you a very powerful endless loop code that can be downloaded and learned by friends, but cannot be used illegally.Endless code in Web pages A. endless loop code:"Add the following code to the webpage to achieve the above
[Javascript]The jquery image scrolling plug-in is usually used for websites with special effects of image scrolling between left and right.
The special effects of image Scrolling on websites are as follows: jquery image scrolling plug-in [javascript]
Recently, when I was studying JavaScript and Java as a domain chain that contains global information, I recorded common global attributes and methods. This is the accumulation of knowledge, not all of which are listed, for details, refer to the API
Based on the elements in the obtained page, jQuery selectors can be divided into four categories: Basic selector, level selector, filter selector, and form selector. There are six filter selectors: simple filter selector, content filter selector,
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