Refer to the online blog for offline deployment, make an old error, find out the reason, and view the browser console, prompt.
For some reason, refer to the original tutorial in ArcGIS API. Finally, the test is successful. Compared with other online tutorials, the difference is that the sample used is not the same.
And the API tutorial is like this:
Why can the latter run successfully? Who knows, leave a message and tell me!!!