vue.runtime.esm.js?2b0e:4605 [Vue warn]: Error in v-on handler: "ReferenceError: temp is not defined"
时间: 2023-10-27 20:37:36 浏览: 171
This error occurs when you are trying to reference a variable or function that has not been defined in your Vue component. In this case, the error message specifically mentions that the variable "temp" is not defined.
To fix this error, you need to ensure that all variables and functions used in your Vue component are properly defined. Check your code to see where "temp" is being used and make sure it is defined before it is referenced.
If you are still having trouble, you can try using the Vue Devtools to inspect your component and see what variables and functions are available. Additionally, you can try adding console.log statements to your code to see what values are being assigned to your variables.
阅读全文