Vue input控件复用问题 问题现象 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Vue input控件复用问题</title> </head> <body> <div id="app"> <h2>input控件复用</h2> <div v-if="isUsername"> <label for="username">输入用户名:</label> <input type="text" id=&#