<a data-v-84976fe6 href="javascript:;" class=""><span data-v-84976fe6=""></span></a>
after using document.createElement ("a")
to create a tag, how to add data-v-84976fe6
this attribute
<a data-v-84976fe6 href="javascript:;" class=""><span data-v-84976fe6=""></span></a>
after using document.createElement ("a")
to create a tag, how to add data-v-84976fe6
this attribute
var tagA = document.createElement("a");
tagA.dataset['v-84976fe6']=""
Custom properties of DOM, which can be obtained and set through dataset
var a=document.createElement("a");
a.setAttribute("data-v-84976fe6","new")//
getAttribute () method to get
var tag=document.getElementsByTagName ("a");
tag.setAttribute ('data-v-84976fe6', "value");
when namespaced is not used, actions is registered globally by default, but after use, actions will become under the module, but I don t want to do this. I also want it to be global. My namespace:true is just for the convenience that I introduce state, ...
there are more than 10 methods for methods in one of my .vue files, and this page looks messy. is it because my componentization is not thorough enough; is there any way to make the file more concise ...
I want a variable in the drop-down box v-model data, and the default value of this variable is the constant defined in state, but what if it doesn t change with the value in state? reference: https: codeshelper.com q 10. The value of computed canno...
const obj7 = {a: {b: 1}}; const obj8= { ...obj7 } obj7.a.b = 7 console.log(obj7.a.b, obj8.a.b) 7 7 const obj9 = {a: 1}; const obj10= { ...obj9 } obj10.a = 7 console.log(obj9.a, obj10.a) 1 7 my old friend doesn t understand Why is the sec...
Hello, bosses. We usually define react component variables in the class class. But I define variables outside of class in some code. For example, import * as React from react ; let acd:string; class Abc extends React.Components{ xxxxxxx acd } expo...