Answer the question
In order to leave comments, you need to log in
How to correctly port native JS to Vue.js?
Generally. Let's say we have this code:
var a = document.querySelector("#a");
var b = a.querySelectorAll(".c");
somethingDo(a, b);
a.onchange = function() {
elseSomethingDo(a, b);
}
function somethingDo(a, b) {
//...
}
function elseSomethingDo(a, b) {
var d = b.length;
var e = a.value;
//...
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question