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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3e1c3-40974.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3e1c3-40974.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?