以前做的俄罗斯方块,在Chrome下运行。
好像Chrome 17以上版本运行会有问题,提示:cross-origin image load denied by cross-origin resource sharing policy 。加--allow-file-access-from-files参数运行Chrome.exe就可以了,比如:"C:\Documents and Settings\Administrator\Local Settings\Application Data\Google\Chrome\Application\chrome.exe" --allow-file-access-from-files 。
动画是用setInterval实现的,现在好像是推荐使用requestAnimationFrame 。
[img]http://dl2.iteye.com/upload/attachment/0067/4230/831af115-558a-3909-b5aa-e245faca3c92.jpg[/img]
好像Chrome 17以上版本运行会有问题,提示:cross-origin image load denied by cross-origin resource sharing policy 。加--allow-file-access-from-files参数运行Chrome.exe就可以了,比如:"C:\Documents and Settings\Administrator\Local Settings\Application Data\Google\Chrome\Application\chrome.exe" --allow-file-access-from-files 。
动画是用setInterval实现的,现在好像是推荐使用requestAnimationFrame 。
[img]http://dl2.iteye.com/upload/attachment/0067/4230/831af115-558a-3909-b5aa-e245faca3c92.jpg[/img]