web-view页面:/** * 用户点击右上角分享 */onShareAppMessage: function (res) {var webViewUrl = res.webViewUrl;//这个是关键点,获取web-view当前页面的地址return {title: 'test',path: '/pages/webview/webview?url='+encodeURIComponent(webViewUrl),imageUrl: '',success: function(response) {console.log(response)},fail: function(error){console.log(error)}}}通过分享进入小程序页面的时候就会走到onLoad方法里面onLoad: function (options) {var url = app.globalData.baseUrl + '/index.html';if (typeof...