tencent cloud

Tencent Cloud Super App as a Service

Contrato
Contrato de segurança e processamento de dados
DocumentaçãoTencent Cloud Super App as a Service

Annotations

Modo Foco
Tamanho da Fonte
Última atualização: 2024-11-21 18:34:18
WXS uses three main annotation methods.
Sample code:
<!-- wxml -->
<wxs module="sample">
// Method 1: Single-line annotations

/*
Method 2: Multi-line annotations
*/

/*
Method 3: End annotations. This annotates all the WXS code starting from /* .

var a = 1;
var b = 2;
var c = "fake";

</wxs>
In the above example, all WXS code is annotated.
Note:
The only difference between method 3 and method 2 is the lack of the */ terminator.


Ajuda e Suporte

Esta página foi útil?

comentários