js给vue输入框赋值

//找到输入框
var account23 = document.querySelector('input');
account23.value = 'wusong';
account23.dispatchEvent(new Event('input'));

//登录按钮,触发点击
document.querySelector("button").dispatchEvent(new Event("click"));

你可能感兴趣的:(js,javascript,vue.js,前端)