Comment
WXS has 3 main comment methods.
Sample code:
js
<!-- 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 codes are commented out.
TIP
The only difference between method 3 and method 2 is that there is no */ end character.