这是我的代码,可以直接粘贴到 Framer Studio 中:
layerA = new Layer()
# Listen to the loading event
layerA.on Events.ImageLoaded, ->
print "the image is loaded"
layerA.on Events.ImageLoadError,
-> print "the image could not be loaded"
layerA.image = "http://framerjs.com/static/images/home/app-icon.png"
但是,我发现该the image is loaded
字符串从未打印出来。是缓存引起的吗?有没有人知道如何解决这个问题?