Is it possible to invoke an anonymous function within an event handler in Vue.js 3?
I came across several options on various websites:
<button @click="return function() { console.log('test')}()">Click me</button>
<button @click="() => { console.log('test') }">Click me</button> //ES6
<button @click="(function(){ console.log('Test'); })();">Click me</button>
Unfortunately, none of these methods appear to be effective. It's possible that they were designed for use with Vue.js 2, but I cannot confirm this.