Teacher, I wrote the carousel image based on your code. Why did I get the error "Cannot set property 'onclick' of null"" when binding the click event of the carousel box?
Is the JS executed after the browser loads the button node first? Try loading the js at the bottom
Is the JS executed after the browser loads the button node first? Try loading the js at the bottom