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

vscode uses canvas to draw graphics without code prompts

王林
王林Original
2020-02-07 15:12:384552browse

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');

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!

Statement:
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