mpvue构建小程序的方法(步骤+地址)

2020-06-14 06:29:34易采站长站整理
在老基础库下输入框输入时可能存在光标重设的问题。

6.写页面跳转时候传入动态参数,需要写成:url,如:<navigator url=”‘../test/main?id=’+id hover-class=”none””。

7.通过

this.$root.$mp.query
进行获取小程序在 page onLoad 时候传递的 options。通过
this.$root.$mp.appOptions
进行获取小程序在 app onLaunch/onShow 时候传递的 options。

8.使用this.$root.$mp.query获取参数需要在monted中获取,在created中会报Cannot read property ‘query’ of undefined 。