微信小程序自定義組件綁定外部方法

最近作小程序要自定義組件,涉及到自定義組件拋出並綁定外部方法,下面代碼就是綁定關鍵 javascript index.wxmlhtml <customComponent bind:action="selectItemDetail"/> index.jsjava selectItemDetail:function(){ //doSomeThings }, 調用外部方法,主要是經過trig
相關文章
相關標籤/搜索