没有显示这样的错误,只是代码没有出现。An unexpected error occured :Error: Uncaught (in promise): TypeError: t is not a constructorTypeError: t is not a constructor
at http://localhost:4200/main.c07d94d02c96a651ccd3.js:1:16
function clearPlaceholderTextOnFocus(i) {}expect(placeholderval).toHaveValue('');当我通过双击SpecRunner.html来运行这段代码时,我会看到下面的错误-
TypeError: expect(...).toHaveValue不是函
我不断地犯这个错误,这让我发疯了。这是我第一次尝试将Flash MovieClip导出到可下载的*.PNG文件中。我遵循了在线指南,并实现了Adobe的PNGEncoder.as“映像”。现在,当我运行SWF并单击按钮时,它什么也不做,输出显示为TypeError: Error #1006: encode is not a function.
import flash.display.MovieClip