vue实现验证码功能
在这里插入<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
table {width: 100%; border-collapse: collapse;}
tr:last-child,tr:first-child { border-top: orange 2px solid; }
td {padding: 10px;}
td:last-child { color: red; width:250px;}
td:first-child { width:300px;}
[v-cloak]{display: none;}
.lv1{display:block;background:red;height:6px;width:40px;}
.lv2{display:block;background:orange;height:6px;width:80px;}
.lv3{display:block;background:green;height:6px;width:120px;}
</style>
</head>
<body>
<form action="aaa" id="app" v-cloak @submit="checkAll">
<table>
<tbody>
<tr>
<td>用户名</td>
<td><input type="text" name="username" v-model="username" @blur="checkUsername"></td>
<td>{
{usernameMsg}}</td>
</tr>
<tr>
<td>密码</td>
<td><input type="test" name="password" v-model="password" @keyup=