wxml页面引用 注意: 1.需要引用组件的index.json中需要 "usingComponents": { "city-change":"/components/city-change/index" } 2.在index.js中可以添加以下方法以便于获取回调 cityTap(e){ console.log('fasdfsdfsdfds'); console.log(e); const cityName=e.detail.cityname; wx.navigateBack(); },