新纪辕 2022-05-21 14:40 采纳率: 40%
浏览 321
已结题

canvas画布绘画图片导致异常TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on 等等

在canvas画布上想加入一个图片,js代码如下

img

运行后有"加载完毕 "的警告框,但是正确的结果应该是在仅供参考的前面出现一个图片,然后打开f12断点就看到drawImage这里报了异常:
[异常:TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them at Function. (:1:29) at Image.img.onload (http://127.1.0.1:8080/static/js/ecgMapSetion.js:283:3)]
“caller”、“callee”和“参数”属性在严格的模式函数或参数对象上无法访问

img

img

  • 写回答

0条回答 默认 最新

    报告相同问题?

    问题事件

    • 系统已结题 5月29日
    • 创建了问题 5月21日