当前位置:网站首页>Comparison of DOM tags of wechat applet development (native and uniapp)
Comparison of DOM tags of wechat applet development (native and uniapp)
2022-06-11 06:55:00 【A limbed ape】
Timeline
vue 2014 Released in
uniapp 2015 Released in
Wechat applet ,2017 Public survey , External release
The topic the main 2013 Years of graduation , Engaged in Internet development , These people happened to run into . The front and rear ends do not separate to separate ,Html4 To html5 Time .
Technology stack
As a front-end technology , The core is html+css+js,html+css No difficulty. , A hundred words each , Before the art of the Department of literature can do , Be commonly called “ Pager ”, Easy to use . Now called “ Front end engineer ”, It is mainly the era of front and back end separation .
html+css+js solid , For many open source UI frame , Such as WeUi( Tencent official UI)、UViev、TouchUI WX、IView(TalkingData)、lin-ui、vant( I like it ),colorUI、TaroUI( JD.COM )、WuxUI、MinUI( Mushroom street )
There are two kinds of development :
Native applet and uniapp Match with the above UI frame .
DOM Label comparison
| label | Wechat applet | uniapp | Html5 | remarks |
| Block labels | view | view、div | div、section、【dl,dt】、【ol,li】【ul、li】、【h1-h6】 | Wechat applet and uniapp Less and SEO It matters ( Except for mobile terminal h5) No, html So many fancy things |
| In line labels | text | text | span、em、strong、a、font | Universal span, WeChat and uniapp Of text That's enough ,html5 It's rather fancy ,<aaa></aaa><bbb></bbb> Fine , Based on semantic , Just use a few labels General , Block elements contain inline elements , Inline elements do not contain row block elements 、 Inline elements |
| Link navigation | <navigator url="/pages/index/index" hover-class=“none” open-type="navigate" ></navigator> | <navigator url="../component/Header" ” ></navigator> | <a href="url"></a> | Native and uniapp The same as hover-class=“none” Click by default (hover) The style of open-type="navigate" Jump mode , Corresponding js Of wx.switchTab、wx.navigateto、wx.redirectTo uniapp is uni.switchTab,uni.redirectTo,uni.redirectTo The three differences are a jump to the non custom bottom menu tabbar, One is Jump at most 10 Time of , Just a little more and you won't move , Corresponding return One is redirectTo, Direct one level , There is no return |
| picture | image | image | img | Native and uniapp equally , Provide mode13 Case , How the picture is displayed , The picture is distorted low The way of expression , There is always a suitable one , See how the owner accepts |
| Forms | form、button、lable、input、checkbox、radio、picker、picker-view、slider、switch、textarea | form、button、lable、input、checkbox、radio、picker、picker-view、slider、switch、textarea | input、button、textarea、label Almost the same | Many differences |
| It's embedded | web-view | web-view | iframe | |
| Slide the label | scroll-view | scroll-view | - | Support horizontal and vertical sliding |
| Wheel planting | swiper | swiper | - | |
| Drag the | movable-area | movable-area | - | One button full screen drag , Side drag effect |
| Media labels | audio、map、video、canvas、camera、live-player、live-pusher、void-room | audio、map、video、canvas、camera、live-player、live-pusher、void-room | video、audio、enbed、source、track | img It is also a media label , The frequency is high |
| Overwrite the native view | cover-view cover-image | cover-view cover-image | - | Want to make a button overlay video, Applets and uniapp The label of the is on the stage map、video、canvas、camera、live-player、live-pusher |
| Open data - Official account | official-account | official-account | - | Pay attention to official account component Based on scanning scene , This component is not displayed without scanning the code |
| Open data - advertisement | ad-custom | ad-custom | - | Advertising templates |
| Wechat customer service | <button open-type="contact"></button> | <button open-type="contact"></button> | - | Wechat applet background settings are required to receive messages sent by users |
边栏推荐
- [matlab printed character recognition] OCR printed letter + number recognition [including source code 1861]
- Won't virtual DOM be available in 2022? Introduction to virtual Dom and complete implementation of diff and patch
- Exchange two values without introducing the third variable
- Handwritten a message queue in two ways
- Redux learning (I) -- the process of using Redux
- The nearest common ancestor of 235 binary search tree
- Summary of string processing skills III
- 开源漫画服务器Mango
- How to make time planning
- Moment time plug-in tips -js (super detailed)
猜你喜欢

Mongodb installation

538. convert binary search tree to cumulative tree

Starting from scratch (V) realize bullet positioning and animation

What are the differences and usages of break and continue?

Do you know what the quotation for it talent assignment service is? It is recommended that programmers also understand

Handwritten a message queue in two ways

VTK-vtkPlane和vtkCutter使用

Luogu p1091 chorus formation (longest ascending subsequence)

网狐游戏服务器房间配置向导服务定制功能页实现
![[]==![]](/img/65/ab724c74b080da319ed5c01c93fdb7.png)
[]==![]
随机推荐
Luogu p1091 chorus formation (longest ascending subsequence)
021 mongodb database from getting started to giving up
About the designer of qtcreator the solution to the problem that qtdesigner can't pull and hold controls normally
动态import
Shell脚本之启动Nacos服务端
Cross-Modal Pattern-Propagation for RGB-T Tracking
[]==! []
How exactly does instanceof judge the reference data type!
节流和防抖
【Matlab图像加密解密】混沌序列图像加密解密(含相关性检验)【含GUI源码 1862期】
Sohu employees encounter wage subsidy fraud. What is the difference between black property and gray property and how to trace the source?
Henan college entrance examination vs Tianjin college entrance examination (2008-2021)
Flutter 内外边距
Latex various arrows / arrows with text labels / variable length arrows
[turn] flying clouds_ Qt development experience
Use of qscriptengine class
22年五月毕设
socket. IO cross domain stepping pit
Starting from scratch (I)
Lazy load