vscode中使用getElementsByClassName获得事件源且添加下标后仍无法添加事件,只有先用getElementsById后再将Id改为ClassName才可以使用
没有getElementsById函数有getElementById函数
完美绑定事件