If you want to learn more about mechanics and electromagnetism, what mathematics do you usually need as the basis? I only have some knowledge of high school mathematics.
You should study advanced mathematics first. If you have enough time, you can refer to mathematical analysis while studying advanced mathematics. The content is similar to advanced mathematics, but it is more comprehensive. After learning definite integral (the first volume of advanced mathematics), you can learn the mechanics of general physics. At this time, you should continue to study the second volume of advanced mathematics, especially the chapter on vector field, which is the basis for you to continue to study electromagnetism. After studying mechanics, I studied advanced mathematics. I suggest you read the chapter on vector analysis of electromagnetic fields and electromagnetic waves before studying electromagnetism (don't read other chapters, it's too abstruse). You can also learn linear algebra in the process of studying advanced mathematics, laying the foundation for the following courses. After studying electromagnetism, you can learn complex variable functions and ordinary differential equations, and then you can March into theoretical mechanics and electrodynamics in theoretical physics. You'll be in charge of the direction then. Try to find some textbooks compiled by 985 school. It doesn't have to be published by Tsinghua Publishing House, because some books compiled by second-rate schools will also be commissioned by Tsinghua Publishing House, so be sure that it was written by that university, not a university publishing house. The electromagnetism and mechanics of physics suggest that you refer to the new concept physics series written by Zhao Kaihua. You can also refer to the series of general physics textbooks for college physics majors edited by Qi Boyun of the Chinese University of Science and Technology.