TypeError: Cannot read property 'style' of undefined

小程序报

TypeError: Cannot read property 'style' of undefined
    at o.mounted (u-advance.js? [sm]:1)
    at Ke (vendor.js:5612)
    at o.Zr.e.__call_hook (vendor.js:7327)
    at o.r.default.__call_hook (vendor.js:4334)
    at ha.ready (vendor.js:4536)
    at o.safeCallback (WASubContext.js?t=wechat&s=1680098725281&v=2.30.3:1)
    at o.call (WASubContext.js?t=wechat&s=1680098725281&v=2.30.3:1)
    at l.y.triggerLifeTime (WASubContext.js?t=wechat&s=1680098725281&v=2.30.3:1)
    at WASubContext.js?t=wechat&s=1680098725281&v=2.30.3:1
    at Object.o.safeCallback (WASubContext.js?t=wechat&s=1680098725281&v=2.30.3:1)(env: Windows,mp,1.06.2301160; lib: 2.30.3)

应该是你的html元素没有取到,然后你调用了 style,先看看为何没有找到,是不是前面的选择符或者id搞错了。