vue 生命周期中顺序出现的钩子函数
beforeCreate
created
beforeMount
mounted
其实我一直在你身边
beforeCreate
created
beforeMount
mounted
props:{
users:{
‘type’:Array,
required:true
}
import Users from ‘./components/Users’
Vue.component(“users”,”Users”)
解决:Uncaught ReferenceError: regeneratorRuntime is not defined
$ npm i –save-dev babel-plugin-transform-runtime
vue element 时间选择 rule验证 坑
getTime() is not a function
修改rule ,把 type: ‘date’ 去掉
el-table html标签转义
scope.row.content
npm install vue-quill-editor –save
import VueQuillEditor from ‘vue-quill-editor’
Vue.use(VueQuillEditor)
安装axios cnpm install axios –save
import axios from ‘axios’
Vue.prototype.$http = axios
cnpm install moment
return this.$moment.unix(row.add_time).format(“YYYY-MM-DD HH:mm:ss”);
vue-devtools是一款基于chrome游览器的插件,用于调试vue应用,这可以极大地提高我们的调试效率。接下来我们就介绍一下vue-devtools的安装。
第一步:找到vue-devtools的github项目,并将其clone到本地. vue-devtools
git clone https://github.com/vuejs/vue-devtools.git