微信小程序自定义组件绑定外部方法

最近作小程序要自定义组件,涉及到自定义组件抛出并绑定外部方法,下面代码就是绑定关键 javascript index.wxmlhtml <customComponent bind:action="selectItemDetail"/> index.jsjava selectItemDetail:function(){ //doSomeThings }, 调用外部方法,主要是经过trig
相关文章
相关标签/搜索