Home  >  Article  >  Web Front-end  >  How to write comments in vue.js

How to write comments in vue.js

coldplay.xixi
coldplay.xixiOriginal
2020-11-10 14:27:129050browse

How to write comments in vue.js: 1. [d477f9ce7bf77f53fbcf36bec1b69b7a] comments in the tag; 2. [c9ccee2e6ea535a969eb3f532ad9fe89] comments in the tag; 3. [3f1c4e4b6b16bbbd69b2ee476dc4f83a] comments in the tag .

How to write comments in vue.js

The operating environment of this tutorial: windows10 system, vue2.9, this article is applicable to all brands of computers.

【Recommended related articles: vue.js

How to write comments in vue.js:
## In the

#.vue file, within each code block, when commenting, you need to use the comment syntax of the respective language to comment (HTML, CSS, JavaScript, Jade, etc.).

Use HTML comment syntax when commenting at the top of the file: a1e846e189c356a0aa736877d7068fa1.

1. Comments in the d477f9ce7bf77f53fbcf36bec1b69b7a tag

html Comments:

<!-- 注释,单行或多行 -->

2. Comments in the c9ccee2e6ea535a969eb3f532ad9fe89 tag

/*
    多行注释
*/

3. Comments in the 3f1c4e4b6b16bbbd69b2ee476dc4f83a tag

// 单行注释
/*
    多行注释
    多行注释
*/

Related free learning recommendations:

JavaScript (video)

The above is the detailed content of How to write comments in vue.js. 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