HTML-2-WXML Converter

Source HTML
Target WXML
Copy
Convert Rules
1. The tags including ul, ol, li, p, strong, h1~h6 and br, are converted into view with the corresponding tag as class Name. Such as <ul> is converted into <view class="ul">. 2. The span is converted into text. 3. The img is converted into image. 4. The @click is converted into bindtap. 5. The @change is converted into bindinput. 6. The v-if, v-show is converted into wx:if. 7. The v-else-if is converted into wx:elif. 8. The v-else is converted into wx:else. 9. The v-model is converted into data-name. 10. The other v-* directive is converted into data-*.