SOURCE

console 命令行工具 X clear

                    
>
console
var app = new Vue({
  el: '#app',
  data: {
    message: 'Hello Vue!',
    datas: [
      {
        name: '张三',
        state: 1
      }
    ]
  }
})
<div id="app">
  <h3>客户管理</h3>
  <div id="tools"></div>
  <table class="table">
    <tr>
      <th>序号</th>
      <th>客户名称</th>
      <th>状态</th>
      <th>客户名称</th>
      <th>操作</th>
    </tr>
    <tr v-for="(row,index) in datas" :key="index">
      <th>{{index}}</th>
      <th>{{row.name}}</th>
      <th>{{row.state==1 ? '成功':'失败' }}</th>
      <th>{{row.name}}</th>
      <th>
        <button type="button" class="btn btn-link">编辑</button>
        <button type="button" class="btn btn-link">上移</button>
        <button type="button" class="btn btn-link">下移</button>
        <button type="button" class="btn btn-link">删除</button>
      </th>
    </tr>
  </table>
</div>

本项目引用的自定义外部资源