In the investigation concerning the Vue this $ refs.audio.play ();. Why can not call time by chance (2018.12)

Vue.js upgrade stepped pit small note
https://github.com/DDFE/DDFE-blog/issues/24

This time I found the problem by recording - positioning problem - solving process, I would like to bring to the students to think of more than just the question itself, as well as some of our attitude after experiencing problems. The problem is not difficult to find, many people will find the problem in writing code, then found the problem after your first reaction is to try to solve their own, or go for help, I believe that the former is certainly better. You need to locate the problem before solving, and here I would like to mention a word, called "coincidence oriented programming", many people will continue to have problems after trying this approach, it is likely a way to "solve" From the appearance of this problem, but do not know why, this problem-solving approach is very tricky, you may not fundamentally solve the problem, and possible solutions to this problem but caused another problem. So the nature of the problem of positioning is very critical, but in fact this is a capacity, a good engineer will not only write the code, but also will look into the problem, can quickly navigate to the nature of the problem, it is a necessary condition for good engineers, which is not easy, usually need to continue to accumulate. After positioning the nature of the problem, it is necessary to solve the problem, a question often several solutions, but each solution is reasonable, this process is a need to think about, and more powerful than you, and some people exchanges, more accumulated some of this experience, which is a cumulative process. If you encounter problems, but also problems with such an attitude to face the future, then you will soon grow.

Guess you like

Origin blog.csdn.net/fengtingYan/article/details/85091463