tencent cloud

All product documents
Tencent Cloud Super App as a Service
Annotations
Last updated: 2024-11-21 18:34:18
Annotations
Last updated: 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.

Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 available.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon