当前位置:网站首页>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 |
边栏推荐
- Illustration of JS implementation from insertion sort to binary insertion sort [with source code]
- The nearest common ancestor of 235 binary search tree
- What are the differences and usages of break and continue?
- 【Matlab WSN通信】A_Star改进LEACH多跳传输协议【含源码 487期】
- SQL query. Only the column name is displayed but not the data
- socket. IO cross domain stepping pit
- Henan college entrance examination vs Tianjin college entrance examination (2008-2021)
- 538.把二叉搜索树转换成累加树
- 3.1 naming rules of test functions
- A highly controversial issue
猜你喜欢

Biweekly investment and financial report: capital rush yuan universe game

Flutter Container组件

开源漫画服务器Mango

About the principle and code implementation of Siou (review IOU, giou, Diou, CIO)

1266_FreeRTOS调度器启动代码实现分析

The nearest common ancestor of 235 binary search tree

About the designer of qtcreator the solution to the problem that qtdesigner can't pull and hold controls normally

Mediaextractor source code analysis of multimedia framework analysis (1)

Zabbix 监控主机是否在线

During unity panoramic roaming, AWSD is used to control lens movement, EQ is used to control lens lifting, and the right mouse button is used to control lens rotation.
随机推荐
022 basic introduction to redis database 0
[turn] flying clouds_ Qt development experience
socket. IO cross domain stepping pit
动态import
Scripy web crawler series tutorials (I) | construction of scripy crawler framework development environment
JS implementation of graphic merging and sorting process [source code attached]
Flat design, blog website (VIII) code source code
Lazy load
品牌定位个性六种形态及结论的重大意义
Mediaextractor source code analysis of multimedia framework analysis (1)
Oracle提示无效数字
June training (day 11) - matrix
The realization of online Fox game server room configuration battle engagement customization function
Sohu employees encounter wage subsidy fraud. What is the difference between black property and gray property and how to trace the source?
【迅为干货】龙芯2k1000开发板opencv 测试
The meaning and research significance of mathematical methodology
Biweekly investment and financial report: capital rush yuan universe game
Mongodb installation
Dynamic import
Duality-Gated Mutual Condition Network for RGBT Tracking