Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我必须通过任何属性从 jquery 或 javascript 禁用 html 5 的画布元素。有没有什么办法。它应该就像只有白色屏幕应该可见并且用户无法绘制任何东西......
你真的不需要做任何事情来实现这一点。默认情况下,Canvas 仅在编写代码以在其上绘制时才显示任何内容,并且用户只有在有代码允许他们这样做时才能在其上绘制。换句话说,您只需不编写代码即可获得您想要的东西。