收藏
回答

wx.setDeviceOrientation is not a function 是什么问题?

使用 wx.setDeviceOrientation 报错,基础库:

真机和模拟器都这样。是个什么情况?在线等,挺着急的!!!😭😭😭

TypeError: wx.setDeviceOrientation is not a function
    at U.onLoad (index.js? [sm]:10)
    at U.<anonymous> (WASubContext.js?t=wechat&s=1718289686072&v=3.4.7:1)
    at U.c.__callPageLifeTime__ (WASubContext.js?t=wechat&s=1718289686072&v=3.4.7:1)
    at WASubContext.js?t=wechat&s=1718289686072&v=3.4.7:1
    at WASubContext.js?t=wechat&s=1718289686072&v=3.4.7:1
    at WASubContext.js?t=wechat&s=1718289686072&v=3.4.7:1
    at WASubContext.js?t=wechat&s=1718289686072&v=3.4.7:1
    at WASubContext.js?t=wechat&s=1718289686072&v=3.4.7:1
    at WASubContext.js?t=wechat&s=1718289686072&v=3.4.7:1
    at Function.Er (WASubContext.js?t=wechat&s=1718289686072&v=3.4.7:1)
回答关注问题邀请回答
收藏

2 个回答

  • Hlxuan.
    Hlxuan.
    06-13

    wx.setDeviceOrientation 是小游戏的API,小程序文档目前没有这个API。

    06-13
    有用 1
    回复
  • 🧐 🧐
    🧐 🧐
    06-14

    你确定你是小游戏的而不是小程序的

    06-14
    有用
    回复
登录 后发表内容