RequireJS ctrl+f5 refresh has a high probability of 404 problems, how to solve it?

1. I did not configure baseUrl with requireJS, (I also tried to configure baseUrl). As long as I refreshed deeply, there will be a path problem. I read the error of the reported baseUrl and did not go to require.config configuration. Here is the configuration file, and the path.

clipboard.png


clipboard.png


clipboard.png


clipboard.png

clipboard.png

the question is that it is found according to the path of data-main,. I wrote the path in require.config. Why don"t I take this path sometimes when I refresh it deeply?

Mar.19,2021

you should put config.js above and introduce requirejs first. Since the code is executed sequentially, try


put the following

clipboard.png

requireconfig
clipboard.png

// data-main...

//data-mainbuyordershow


JS
clipboard.png

Menu