c.getContext("2d"); 为null 的问题

来源:互联网 发布:php网络验证源码post 编辑:程序博客网 时间:2024/05/16 06:30
c.getContext("2d"); 为null

 是因为 js代码写在了 body的上边 还没加载到

写在body下方 就可以了