学习笔记 # Vue.js ### (组件)自定义事件 > 事件名中不能包含大写,否则绑定的事件将触发不了 > 具体参照官方文档:https://cn.vuejs.org/v2/guide/components-custom-events.html ```js //这个是错误的用法 this.$emit('myEvent') //这个是正确的用法 this.$emit('my-event') ``` # PHP ## 函数相关 1. `strtotime` 获取某天凌晨 `00:00:00` 的时间: > Google 搜索关键字:**php strtotime Early morning** ,得到某个结果页面:https://stackoverflow.com/questions/13129817/getting-a-timestamp-for-today-at-midnight/13129856 ```php