Is WeChat Mini Programs rendered by html? Why can't you operate DOM?

  • isn"t wxml compiled into html?
  • then why is the dom tree not formed?
  • how does Mini Program render if the tree structure is not formed?

Welcome the Big Boss answer (don"t confuse BOM with DOM)

Aug.20,2021

of course there are DOM books, but you just can't access them, because Tencent wants you to use his style for development


1.wxml is not compiled into HTML
2. There is a DOM tree (consciousness is the same as that of HTML, but some elements, events and so on are not contrastive)

  1. has a tree structure

BOM is Browser object model

macaca you can see the node rendered by Mini Program. In the end, it is native AndroidUI, not webview

.

WXML, WXSS are compiled into JS files.
forms Virtual DOM , and so can you.
ultimately relies on Webview to render to html.


because Tencent wants you to develop with his junk API. Trying to disgust developers

Menu