The principle is to loop through the controls on the web page, and then set the disabled attribute to true.
The code is as follows:
Can be obtained through document.getElementsByName("controlName")[0].type.toLocaleLowerCase().
There are the following types according to different controls:
"text"
"textarea"
"select-one"
"select-multiple"
"radio"
"checkbox"