Above is the body load event, add 10 buttons

CodePudding user response:
The following code executes, anniu haven't executeCodePudding user response:
In chrome getElementsByClassName have compatibility problems, you can normal useCodePudding user response:
6-8, firefox 2, I don't supportCodePudding user response:
And you have to call anniu method create 10 inputCodePudding user response:
Js asynchronous execution mechanism