Unity - A计划(一年有效期) 扫二维码继续学习 二维码时效为半小时

(61评价)
价格: 2175.00元
laya用console.log在网页里看不到信息
歆岽发起了问答2021-02-03
3
回复
729
浏览

The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu
(anonymous) @ laya.core.js:18127
laya.core.js:18002 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu
_playEmptySound @ laya.core.js:18002
laya.core.js:18228 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu
_recoverWebAudio @ laya.core.js:18228

只有这些   没有我需要的数

所有回复
  • 歆岽 2021-02-04

    开始编译: Thu Feb 04 2021 09:56:05 GMT+0800 (中国标准时间)

    --------------------------------------

    [09:56:06] Working directory changed to D:\课件\LayaAirIDE\resources\app

    [09:56:07] Using gulpfile D:\laya\2048\.laya\compile.js

    [09:56:07] Starting 'compile'...

    { Error: Unexpected token

    at error (D:\课件\LayaAirIDE\resources\app\node_modules\rollup\dist\rollup.js:9402:30)

    at Module.error (D:\课件\LayaAirIDE\resources\app\node_modules\rollup\dist\rollup.js:13340:9)

    at tryParse (D:\课件\LayaAirIDE\resources\app\node_modules\rollup\dist\rollup.js:13255:16)

    at Module.setSource (D:\课件\LayaAirIDE\resources\app\node_modules\rollup\dist\rollup.js:13566:33)

    at Promise.resolve.catch.then.then.then (D:\课件\LayaAirIDE\resources\app\node_modules\rollup\dist\rollup.js:16352:20)

    at

    code: 'PARSE_ERROR',

    pos: 2055,

    loc:

    { column: 23,

    file: 'D:\\laya\\2048\\src\\script\\GameManager.js',

    line: 53 },

    frame: '51: console.log(result);\r\n52: }));\r\n53: CreateNumberCard() {\r\n ^\n54: var index = this.GetRandomNullIndex();\r\n55: if (index==-1) {\r' }

    [09:56:07] Finished 'compile' after 64 ms

    --------------------------------------

    编译结束,gulp编译耗时: 2.079s

    编译结束,总耗时: 2.148s

    还有-5条回复,点击查看
    你还没有登录,请先登录注册
  • 歆岽 2021-02-04

    现在的问题是sprite.texture = "images/2048Atlas_" + cardValue + ".png";有图片

    sprite.texture = Laya.loader.getRes("images/2048Atlas_" + cardValue + ".png");没有图片

    但是console出来的是true

    还有-5条回复,点击查看
    你还没有登录,请先登录注册
  • 老师_Trigger 2021-02-04

    同学你好,laya问题可以到Carson老师任意课程下提问,老师看到会回复

    还有-5条回复,点击查看
    你还没有登录,请先登录注册
发表回复
你还没有登录,请先 登录或 注册!