vue 父组件传值到子组件
props:{
users:{
‘type’:Array,
required:true
}
其实我一直在你身边
props:{
users:{
‘type’:Array,
required:true
}
import Users from ‘./components/Users’
Vue.component(“users”,”Users”)
vue init webpack my-project
npm install
npm run dev
当在location区块中使用 if 指令的时候会有一些问题, 在某些情况下它并不按照你的预期运行而是做一些完全不同的事情. 而在另一些情况下他甚至会出现段错误. 一般来说避免使用 if 指令是个好主意.
如果报错No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://xxx.com’ is therefore not allowed access. 说明服务器端不支持跨域
解决:Uncaught ReferenceError: regeneratorRuntime is not defined
$ npm i –save-dev babel-plugin-transform-runtime
df -h 查看硬盘空间
du -sh 查看文件夹大小
du -h 查看文件夹下所有文件大小
php版本过高 导致composer install报错
composer install –ignore-platform-reqs
composer update –ignore-platform-reqs
composer update 会读取 composer.json中指定的依赖
composer install 会优先读取composer.lock,如果没有composer.lock 用法跟composer update一样
vue element 时间选择 rule验证 坑
getTime() is not a function
修改rule ,把 type: ‘date’ 去掉