Uncaught ReferenceError: Cannot access 'counter' before initialization 局部组件需要在上面先定义,不同于 全局子组件。全局子组件放组件下面