使用vuejs做一个todolist


在输入框内输入一个list,回车,添加到list列表中,点击列表中的项样式改变

1、index.html

DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>my-first-vue-projecttitle>
  head>
  <body>
    <div id="app">div>
    
  body>
html>

2、main.js

// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  template: '',
  components: { App }
})

3、App.vue