By the way to help the master to promote the original http://www.java1234.com/a/yuanchuang/ video tutorial, although not professional training structure, but fortunately explain delicate, easy to understand!
I have always thought that jsp & servlet is too simple and troublesome, so I only understand the operation, but I have never actually done anything. Later I went on to study the framework inexplicably. After my master's tutorial, I feel very benefited a lot ~ I feel totally different at once! Bunker ~~
I will copy some of the messy notes below, but I can understand it myself. Well, especially the paging submission of easyUI, this is definitely a classic case.
EasyUI paging submission
Current page
Number of records per page in rows
Select * from data table name limit start, size;
Start: from where it is displayed, page-1) * rows can be obtained.
Size: number of records per page
SELECT count (*) as total From t_grade gets the alias for storing the number of records to total
Batch Delete
Delete from tablename (Table Name) where field in (1, 3, 6 );
// Field indicates the field name
// Delete the entry with field value 1 3 6
Firfox also supports breakpoint, type DEBUG
Join method of the array: Convert the string into an array, which is automatically matched.
JQuery post method
Four parameters: First: Submission path
Second: Submit Parameters
Third: callback Method
Fourth: Submitted data type
$. Post ("gradeDelete", {delIds: ids}, function (result ){
If (result. success ){
Alert ("deleted successfully! ");
} Else {
Alert ("deletion failed! ")
}
}, "Json ");
Garbled information during asynchronous submission may be generated after submission
Request. setCharacterEncoding ("UTF-8 ");
$ ("# S_sex"). combobox ('getvalue ')
Time query in MySQL, convert to days, and then query
"AND TO_DAYS (s. birthday)> = TO_DAYS ('" + beginbirthday + "')"
// Clear easyUi
$ ("# Sex"). combobox ("setValue ","");
Hidden uses the hidden field to hide the submitted Form
Remember to pay attention to the cascading deletion issue when associating tables.