Advertisement

前端学习(1497):表格案例中的搜索功能实现

阅读量:
复制代码
 <!DOCTYPE html>

    
 <html lang="en">
    
  
    
 <head>
    
     <meta charset="UTF-8">
    
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
    
     <title>Document</title>
    
 </head>
    
  
    
 <body>
    
     <!-- 数据渲染界面 -->
    
     <!-- 绑定表单元素 -->
    
     <div id="abc">
    
     <div class="add">
    
         <input type="text" v-model="itemname">
    
         <!-- 控制长度为0的时候不能点击 -->
    
         <input :disabled="itemname.length==0" type="button" value="添加" @click="addItem()">
    
     </div>
    
     <div class="add">
    

全部评论 (0)

还没有任何评论哟~