3. After the internal data of the child component changes, pass the value to the parent component
3.1, the receiver (shopcart.vue parent component), use v-on to listen for events, and write the handler function
3.2. Value passer (inputnumber.vue subcomponent), use $emit to trigger events and pass payload
Child components pass values to parent components: an object is passed
{goodsId:87,goodsNumber:3}