const myPage = Page
Page = function (e) {
  let {
    onLoad
  } = e
  e.onLoad = (() => {
    return function (res) {
      wx.setPageStyle({
        style: {
          background: '#ccc'
        },
        success(e) {
          console.log(e)
        },
        fail(e) {
          console.log(e)
        }
      })
      // this为页面实例
      console.log('overWrite onLoad:', res, this)
      onLoad && onLoad.call(this, res)
    }
  })()
  return myPage.call(this, e)
}

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2021-07-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-31
  • 2022-01-24
  • 2022-12-23
  • 2022-01-22
  • 2021-12-14
  • 2021-12-05
相关资源
相似解决方案