1.tag/index.wxml

    

    2.tag/index.js

    properties:{
        text:String
    },
    methods:{
        onTap:function(event){
            this.triggerEvent("tapping",{
                text:this.propertie.text
            },{})
        }
    }

    3.在父组件页面上要引入子组件

        1.detail.wxml

      

        2.detail.js

      onPost:function(event){
          event.detail.text
      }