Home > Development Tools > VSCode > vscode uses canvas to draw graphics without code prompts

vscode uses canvas to draw graphics without code prompts

王林
Release: 2020-02-07 15:12:38
Original
4585 people have browsed it

vscode uses canvas to draw graphics without code prompts

In the VS Code editor, there is no code prompt when using canvas to draw graphics without installing relevant plug-ins.

You can add a line of comments to solve the problem, as follows:

/** @type {HTMLCanvasElement} */ 
var canvas = document.getElementById('tutorial');
Copy after login

Recommended related article tutorials: vscode tutorial

The above is the detailed content of vscode uses canvas to draw graphics without code prompts. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template