0

I've been having trouble for quite some time. I need to get the canvas working on a mobile web app of mine but it seems to be having trouble with paper.js.

I have set my viewport to the following:

<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />

And the canvas element:

<canvas id="canvas" resize="true"></canvas>

But the canvas never seems to render at ALL.

I hope I've given enough information. I'm almost certain that I have no problems from the JavaScript side.

Go easy on me please!

Thanks

4

1 回答 1

0

您是否知道可以通过在 Mac 上使用 safari 在 safari 中单步调试 iphone 上运行的代码来调试 javascript 问题?

通常当我遇到这样的问题时,它可以救我!

这是一个可以帮助您执行此操作的链接:http ://webdesign.tutsplus.com/tutorials/workflow-tutorials/quick-tip-using-web-inspector-to-debug-mobile-safari/

如果您想了解有关 paperjs 的更多信息,请查看我创建的截屏视频:http: //tagtree.tv/canvas-with-paper-js

于 2014-01-29T14:18:54.413 回答