I hope this note will be useful to myself and everyone, but I have a limited level. If something goes wrong, I hope you can point out more criticism. Thank you!Today is the prompt, format table, and table button of the datagrid frame:The datagrid is
You are welcome to repost it. Please indicate the source for reprinting!I hope this note will be useful to myself and everyone, but I have a limited level. If something goes wrong, I hope you can point out more criticism. Thank you!Today, let's talk
Example:
When I got my company homepage today, I had a small demand for online questions. Of course, I cannot jump to other pages.
[Javascript]$. Ajax ({Url: '/officeHome_infoSave.so', Type: 'post', Data: $ (document. online_form). serialize (),
There are two images in the first page. When you click it, you can get its attribute value () in the second page and pass the value through js:The first page:
[Html] untitled document
untitled document
Second page:[Html] test2
Retrieval
GetDateDiff (start, end, "day ")
/*
* Time Difference obtained, in the format of year-month-day hour: minute: Second or year/month/day hour: minute: Second* The year, month, and day are in full format, for example, 01:00:00* Return
Online Demo
Share a fixed background rolling effect from corpse. Use the background-attachment: fixed and navigation menu to scroll the page smoothly.
HTML
Section 1 Section 2 Section 3 Section 4 Section 5 CSS
/* Set all parents to full
Var;
Var B = !! A;
A is undefined by default .! A is true ,!! A is false, so the value of B is false, not undefined or another value, which is mainly to facilitate subsequent judgment.
!! It is generally used to forcibly convert the following
Today, records are written using JS naming and referencing standards. Writing code using unified coding standards can improve the readability of JS Code, facilitate later maintenance and expansion, and facilitate team development.JS Code reference
Chinese parameters are garbled during transmission in our web project. This has always been an annoying problem. My basic ideas for solving the problem are:
1. encode the file parameters in the foreground.
2. After receiving parameters in the
Then in the html page, change charset to GBK, in the referenced js file statement show that charset = "UTF-8"
--> Ext JS 4 MVC Examples-loiane.com | Sencha Try
The encoding after chaset in the html page refers to the encoding format for
Page Visibility API is used to determine whether the Page is displayed in the current window. If it is displayed in the current window, you can choose to do or not to do something.
For example, we use an AJAX call to query some data every 2
If the obtained value is incorrect, an error is returned.
[Javascript]GetRows: function (){// Add by jejVar rtnList = new Array ();Var objRows = $ ('. trselected', $ (t ));If (objRows! = Null ){For (var I = 0; I Var row = objRows [I];Var rowMap =
Needless to say, Jquery is a js framework. You can read this article.
Ajax is certainly required for projects.
If jquery's ajax is used, jquery needs to be introduced to the jsp page.
When you find that jquery ajax is invalid, use the fire bug to
Print? Nav1 = ""
Nav1 = " "[javascript] view plaincopyprint? $ ("# Top_1" ).html (nav1 );
$ ("# Top_1" ).html (nav1 );
Note: top_1 is the ID of a div in the body!
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