1. First, open the html editor, create a new html file, such as index.html, and fill in the basic code of the question.
2. In index.html
3. The browser runs the index.html page, and js gets the class name of the button and prints it out.