Mini Program is a new form of applications. This article mainly introduces the differences between developing Mini Program and developing traditional web projects.(In the following content, we use MP to represent Mini Program)
In web development, the JS thread and the rendering thread in each page are mutually exclusive; while in MP, the JS running process and the rendering process (view layer) are independent, and the rendering and updating of the view will not block JS at the same time, the logic execution of JS will not block the rendering update of the view. Here comes the first problem we need to pay attention to: JS-driven view updates are asynchronous, and js cannot directly access the view's DOM.
Web developers work with IE/Chrome/QQ browsers on PC, and Safari/Chrome browsers as well as various WebViews on iOS or Android systems on mobile devices, while MP developers work with Binance App on iOS, Android, and Binance DevTools.
After downloading Binance app, scan the QR code below to experience the mini program.