Vue JS können Werte nicht von der Taste abrufen, wenn SVG vorhanden ist

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Vue JS können Werte nicht von der Taste abrufen, wenn SVG vorhanden ist

by Anonymous » 04 Mar 2025, 08:01

Ich benutze VUE3. Ich habe eine Taste, die die ID des Benutzers abruft, wenn ich klicke.

Code: Select all

@php  $id = '999';   @endphp








Vue.createApp({
data() {
return {
state: null,
};
},
mounted() {
console.log(this);
},
methods: {
start(event){
//  const { id } = event.target.dataset;
var id = event.target.getAttribute('data-id');
console.log(id);
},
}
}).mount('#profile');



Top