A few days ago, I found a giant cow’s AI learning website, which is easy to understand, funny and humorous. I can’t help sharing it with you. Click to jump to the tutorial.
1. A click event reports an error:
Property or method "deleteFun" 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
2. Error reason: this method is undefined. I thought it was written in methods, but it’s not. My original writing:
3. Solution: correct the location code in the red box.
That’s it.
Read More:
- [Solved] Vue Error: Failed to mount component: template or render function not defined
- Vue error in render: “typeerror: cannot read property ‘length’ of undefined”
- [Solved] VUE Use Filters Error: [Vue warn]: Error in render: “TypeError: Cannot read property ‘toFixed’ of undefined”
- [Solved] vue.runtime.esm.js?2b0e:619 [Vue warn]: Error in render: “TypeError: Cannot read property ‘length‘
- TypeError: res.render is not a function
- [Vue warn]: Error in render: TypeError: Cannot read property ‘xxxx’of undefined
- Vue Import Baidu map error: BMap is not defined, eslint BMap reports an error
- The browser is compatible with IE11 “ReferenceError: ‘Promise’ is not defined” “ReferenceError: ‘Promise’ is not defined”
- Uniapp: TypeError: Cannot read property ‘apply‘ of undefined (H5 does not report an error, but the real machine runs with an error)
- Vue Error in callback for immediate watcher “height”: “TypeError: Cannot read property ‘style’ of
- [Fixed] Typeerror: error 1009: Cannot access properties or methods referenced by an empty object
- [Solved] Eval Error: Uncaught ReferenceError: False is not defined
- Abnormal [System.InvalidOperationException: custom type mapping for ‘xxx’ is not specified or is not a solution
- [Solved] Vue + uniapp Uncaught TypeError: Cannot read property ‘getters‘ of undefined
- [Solved] Vue Error: Uncaught TypeError: Cannot read property ‘getters‘ of undefined
- Solve the data transfer between vue irrelevant components error: this.$store.commit is not a function
- How to Solve jQuery error: Uncaught ReferenceError: $ is not defined
- errorThrown:ReferenceError: data is not defined [How to Solve]
- [Solved] (error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk.
- [Solved] Uncaught ReferenceError: FileAsyncWriter is not defined