The data defined by vue.js cannot be printed.

is clearly defined in data , but cannot be printed

.



Mar.04,2021

this points to the problem. Generally speaking, to prevent this situation, you will declare at the beginning of the method that, let self = this


provides too little code. It may be that the this in this.form.username points to the Vue object that is not your new.


upstairs said the positive solution, this pointing to the problem, you can look at the error location on the line console.log (this) output results to know!

Menu