直接上代码啊
<script type="text/javascript" src="https://rawgit.com/processing-js/processing-js/v1.4.8/processing.min.js"></script> <script type="application/processing" data-processing-target="pjs"> /* @pjs preload="http://wasss.oss-cn-beijing.aliyuncs.com/a.jpg"; */ PImage online; void setup(){ String url="http://wasss.oss-cn-beijing.aliyuncs.com/a.jpg"; online = loadImage(url); size(online.width,online.height); noLoop(); } void draw(){ image(online,0,0); } </script><canvas id='pjs'> </canvas>
图片现在在网页的最底部呢。