Simple to understand: that is, before using the picture of resources, to be loaded to the local, to the real use, request data directly from a local on the line
Now put a img tag in the page
<img src="" alt="" id="pic"/>
Modify js code:
Summary:
1 scene using preloaded
Use 2 Image object