Vue报错:Property or method “x“ is not defined on the instance but…以及Invalid handler for event “click“

Four errors were reported at once:

 Property or method "myprice" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property.

Invalid handler for event "click": got undefined

Error in nextTick: "TypeError: Cannot read properties of undefined (reading '_withTask')"

Cannot read properties of undefined (reading '_withTask')

As shown in the picture:

 Result: It is because methods are misspelled.

Error checking process:

1. Several reasons for the error

(1) The function is not written into the methods

(2) The function called is not defined

(3) The name of the function called is wrong

2. Check

Found methods misspelled.

Guess you like

Origin blog.csdn.net/qq_56715703/article/details/130917626