This article will serve as a record of future js knowledge.
1. The datepicker plug-in is used during development and the following two methods are used:
[Html]
$ ('# Date'). datePicker ({
ClickInput: true,
StartDate: new Date (1900,1, 1). asString ()
});
It is used to set whether the input box can enter and set the start time of the text box.
2.
[Html]
$ ("# Date"). dpSetDisabled (true );
Used to disable datepicker.
3.
[Html]
$. Ajax ({
Type: "POST ",
Url: "ajax. do ",
Data :"",
Success: function (msg ){
Certificate ('{result'}.html (msg );
}
});
This section can be used for ajax requests. type indicates the request type (GET, POST), url indicates the Request Path, and data indicates the request parameters or data carried, success indicates the method by which the request is successfully executed. Msg indicates the data returned when the request is successful.
From executing dream code