html52.com
我爱小程序-开发者交流社区

canvas webgl 无法执行selectQuery.exec

框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug selectQuery.exec,canvas webgl 微信安卓客户端 7.0.14 2.11.0
  开发工具里一切正常,真机调试和预览都不能执行exec回调。但是当手机里开启vConsole调试之后,预览又正常了。

<canvas id="c1" type="webgl"></canvas>

onLoad: function(){
    const query = wx.createSelectorQuery();
    const _this = this;
    query.select('#c1').node().exec(function (res{
      const canvas = res[0].node;
      console.log(canvas);
      _this._render(canvas);
    });
  }

网友回复

社区技术运营专员-灵芝:

你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

真正的个人免签约支付接口

云免签H5支付