Table of Contents
1.Button" >1.Button
2.Cell" >2.Cell
2.1.weui_cell" >2.1.weui_cell
2.2.Cell (list item)" >2.2.Cell (list item)
2.3.Radio (single-select list item)" >2.3.Radio (single-select list item)
2.4.Checkbox (check list item)" >2.4.Checkbox (check list item)
2.5.Switch (switch)" >2.5.Switch (switch)
2.6.Form" >2.6.Form
" >2.7.Upload
2.8.Form Error (What knowledge can be learned through WeChats WeUI?报错)" >2.8.Form Error (What knowledge can be learned through WeChats WeUI?报错)
2.9.Select (What knowledge can be learned through WeChats WeUI?)" >2.9.Select (What knowledge can be learned through WeChats WeUI?)
12. What knowledge can be learned through WeChats WeUI?" >12. What knowledge can be learned through WeChats WeUI?
5. Progress" >5. Progress
11. Tab" >11. Tab
Home Web Front-end JS Tutorial What knowledge can be learned through WeChat's WeUI?

What knowledge can be learned through WeChat's WeUI?

Mar 16, 2017 am 09:35 AM

WeUI is a UI suite developed by WeChat Web Service. It currently contains 12 modules (Button, Cell, What knowledge can be learned through WeChats WeUI?, What knowledge can be learned through WeChats WeUI?, Progress, What knowledge can be learned through WeChats WeUI?, What knowledge can be learned through WeChats WeUI?, What knowledge can be learned through WeChats WeUI?, What knowledge can be learned through WeChats WeUI?, What knowledge can be learned through WeChats WeUI?, Tab, What knowledge can be learned through WeChats WeUI?).

Demo page: https://weui.io

Github page: https://github.com/weui/weui

Let’s talk about the CSS skills I learned from WeUI.

1.Button

From here I started to notice that in the implementation of WeUI, many borders are drawn using :before,:after.

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

.weui_btn:after {

    content: " ";

    width: 200%;

    height: 200%;

    position: absolute;

    top: 0;

    left: 0;

    border: 1px solid rgba(0, 0, 0, 0.2);

    -webkit-transform: scale(0.5);

    transform: scale(0.5);

    -webkit-transform-origin: 0 0;

    transform-origin: 0 0;

    box-sizing: border-box;

    border-radius: 10px;

}

Copy after login

This is done to ensure that 1px is really 1pixel on the Retina screen.

2.Cell

2.1.weui_cell

1

2

3

4

5

6

7

8

9

10

11

12

.weui_cell {

    padding: 10px 15px;

    position: relative;

    display: -webkit-box;

    display: -webkit-flex;

    display: -ms-flexbox;

    display: flex;

    -webkit-box-align: center;

    -webkit-align-items: center;

    -ms-flex-align: center;

    align-items: center;

}

Copy after login

Seeing this, I found that WeUI uses a lot of flex layout.

2.2.Cell (list item)

What knowledge can be learned through WeChats WeUI?

I have been confused before about how to implement a border with some gaps on the left between list items. The border property does not support displaying only part of one side. Do I need to insert


?

The implementation of WeUI is: using .weui_cells:before.

1

2

3

4

5

6

7

8

9

10

11

12

13

14

.weui_cell:before {

    content: " ";

    position: absolute;

    left: 15px;

    top: 0;

    width: 100%;

    height: 1px;

    border-top: 1px solid #D9D9D9;

    color: #D9D9D9;

    -webkit-transform-origin: 0 0;

    transform-origin: 0 0;

    -webkit-transform: scaleY(0.5);

    transform: scaleY(0.5);

}

Copy after login

left: 15px (vacancy on the left) and overflow: hidden (hide the excess part on the right) of .weui_cells_title can display the border with vacancies.

The implementation of the right arrow at the end of the list item turned out to be a border rotated 45 degrees by weui_cell_ft::after. I thought I would use iconfont.

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

.weui_cells_access .weui_cell_ft:after {

    content: " ";

    display: inline-block;

    -webkit-transform: rotate(45deg);

    transform: rotate(45deg);

    height: 6px;

    width: 6px;

    border-width: 2px 2px 0 0;

    border-color: #C8C8CD;

    border-style: solid;

    position: relative;

    top: -2px;

    top: -1px;

    margin-left: .3em;

}

Copy after login

2.3.Radio (single-select list item)

单选What knowledge can be learned through WeChats WeUI?

A hidden

1

<input type="radio" class="weui_check" name="radio1">

Copy after login

is embedded inside each line The hiding method is:

1

2

3

4

.weui_check {

    position: absolute;

    left: -9999em;

}

Copy after login

A span.input.weui_check and .weui_icon_checked are placed behind each input.weui_check to display a check. They are brothers.

1

<span class="weui_icon_checked"></span>

Copy after login

1

2

3

4

5

.weui_cells_radio .weui_check:checked + .weui_icon_checked:before {

    display: block;

    content: &#39;\EA08&#39;;

    color: #09BB07;

    font-size: 16px;}

Copy after login

2.4.Checkbox (check list item)

复选What knowledge can be learned through WeChats WeUI?

The check box is hidden like the radio button above.

1

<input type="checkbox" class="weui_check" name="checkbox1">

Copy after login

What is more surprising to me is that the selected and unselected effects are both achieved using iconfont. I thought that the unselected effect is achieved using border, and the selected effect uses a check iconfont with horizontal and vertical centering.

1

2

3

4

5

6

7

/* 选中效果 */.weui_cells_checkbox .weui_check:checked + .weui_icon_checked:before {

    content: &#39;\EA06&#39;;

    color: #09BB07;}/* 未选中效果 */.weui_cells_checkbox .weui_icon_checked:before {

    content: &#39;\EA01&#39;;

    color: #C9C9C9;

    font-size: 23px;

    display: block;}

Copy after login

2.5.Switch (switch)

What knowledge can be learned through WeChats WeUI?

1

<input class="weui_switch" type="checkbox">

Copy after login

I thought this effect was difficult to achieve before, but after seeing weui’s implementation, it only uses css!

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

.weui_switch {

  -webkit-appearance: none;

  -moz-appearance: none;

  appearance: none;

  position: relative;

  width: 52px;

  height: 32px;

  border: 1px solid #DFDFDF;

  outline: 0;

  border-radius: 16px;

  box-sizing: border-box;

  background: #DFDFDF;}.weui_switch:checked {

  border-color: #04BE02;

  background-color: #04BE02;}.weui_switch:before {

  content: " ";

  position: absolute;

  top: 0;

  left: 0;

  width: 50px;

  height: 30px;

  border-radius: 15px;

  border-top-left-radius: 15px;

  border-top-right-radius: 15px;

  border-bottom-right-radius: 15px;

  border-bottom-left-radius: 15px;

  background-color: #FDFDFD;

  -webkit-transition: -webkit-transform .3s;

  transition: -webkit-transform .3s;

  transition: transform .3s;

  transition: transform .3s, -webkit-transform .3s;}.weui_switch:checked:before {

  -webkit-transform: scale(0);

  transform: scale(0);}.weui_switch:after {

  content: " ";

  position: absolute;

  top: 0;

  left: 0;

  width: 30px;

  height: 30px;

  border-radius: 15px;

  background-color: #FFFFFF;

  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);

  -webkit-transition: -webkit-transform .3s;

  transition: -webkit-transform .3s;

  transition: transform .3s;

  transition: transform .3s, -webkit-transform .3s;}.weui_switch:checked:after {

  -webkit-transform: translateX(20px);

  transform: translateX(20px);}

Copy after login

Among them, .weui_switch provides a border, the background color is #DFDFDF (dark gray) when not selected, and #04BE02 (green) when selected.

.weui_switch:before provides the light gray #FDFDFD inside the border. When selected, scale(0) shrinks and disappears.

.weui_switch:after provides a circular button. When selected, move 20px to the right.

The effect is as follows:

2.6.Form

What knowledge can be learned through WeChats WeUI?##

1

<input class="weui_input" type="number" pattern="[0-9]*" placeholder="请输入qq号">

Copy after login

The input pattern="[0-9]* limits the input to only numbers 0-9 (the value of pattern is a regular expression).

Input[type="number"] will display up and down arrows on the far right by default on Chrome. WeUI disables the arrows through the following code. This code cannot be seen in Chrome's Dev Tool and can only be seen from CSS. , I spent a long time looking for it.

1

2

3

.weui_input::-webkit-outer-spin-button,.weui_input::-webkit-inner-spin-button {

  -webkit-appearance: none;

  margin: 0;}

Copy after login

Clicking input[type="number"] will automatically open the numeric keyboard on iOS.

2.7.Upload

What knowledge can be learned through WeChats WeUI?

WeUI uses the following simple method to implement the gray layer in front of the image. Absolute positioning plus top:0; right:0; bottom:0; left:0; will cause the element to be stretched to the boundary of the parent element.

1

2

3

4

5

6

7

8

.weui_uploader_status:before {

    content: " ";

    position: absolute;

    top: 0;

    right: 0;

    bottom: 0;

    left: 0;

    background-color: rgba(0, 0, 0, 0.5);}

Copy after login

The image upload state uses a classic (horizontal + vertical) centering method, using top: 50% (positioning the upper border of the element to 50% of the parent element) and transform: translateY(-50%) (making the element go up Move 50% of the height of the element itself).

1

2

3

4

5

6

7

.weui_uploader_status .weui_uploader_status_content {

    position: absolute;

    top: 50%;

    left: 50%;

    -webkit-transform: translate(-50%, -50%);

    transform: translate(-50%, -50%);

    color: #FFFFFF;}

Copy after login

The vertical centering method I usually use is as follows. Horizontal centering is similar.

1

2

3

4

.vertical-center {

  position: relative;

  top: 50%;

  transform: translateY(-50%);}

Copy after login

The final upload button:

1

2

3

<p class="weui_uploader_input_wrp">

    <input class="weui_uploader_input" type="file" accept="image/jpg,image/jpeg,image/png,image/gif" multiple="">

</p>

Copy after login

input[type="file"] will automatically trigger the menu to select "Photo" or "Photo" on iOS.

The box is drawn using .weui_uploader_input_wrp, and the plus sign is drawn using .weui_uploader_input_wrp:before and:after.

真正的input利用opacity:0隐藏起来了.

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

.weui_uploader_input_wrp:before {

    width: 2px;

    height: 39.5px;

}

.weui_uploader_input_wrp:after {

    width: 39.5px;

    height: 2px;

}

.weui_uploader_input_wrp:before,

.weui_uploader_input_wrp:after {

    content: " ";

    position: absolute;

    top: 50%;

    left: 50%;

    -webkit-transform: translate(-50%, -50%);

    transform: translate(-50%, -50%);

    background-color: #D9D9D9;

}

.weui_uploader_input {

    position: absolute;

    z-index: 1;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    opacity: 0;

    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);

Copy after login

2.8.Form Error (What knowledge can be learned through WeChats WeUI?报错)

What knowledge can be learned through WeChats WeUI?报错

1

2

<input class="weui_input" type="date" value="">

<input class="weui_input" type="datetime-local" value="" placeholder="">

Copy after login

在iOS上, 点选input[type="date"]会出现"年-月-日"的What knowledge can be learned through WeChats WeUI?框, 点选input[type="datetime-local"]会出现"月-日-上午/下午-时-分"的What knowledge can be learned through WeChats WeUI?框.

2.9.Select (What knowledge can be learned through WeChats WeUI?)

What knowledge can be learned through WeChats WeUI?

电话号码+86位置的右箭头和分割线是用:before和:after绘制的.

3.What knowledge can be learned through WeChats WeUI?

What knowledge can be learned through WeChats WeUI?

1

2

3

4

5

6

7

<p id="toast"   style="max-width:90%">

    <p class="weui_mask_transparent"></p>

    <p class="weui_toast">

        <i class="weui_icon_toast"></i>

        <p class="weui_toast_content">已完成</p>

    </p>

</p>

Copy after login

.weui_mask_transparent就是一个position:fixed占满全屏的透明幕布, 让用户无法操作界面.

.weui_toast才是页面中间的黑块.

What knowledge can be learned through WeChats WeUI? Loading

竟然是纯用HTML+CSS(animation+transition)实现的.

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

<p id="loadingWhat knowledge can be learned through WeChats WeUI?" class="weui_loading_toast" style="/* display: none; */">

    <p class="weui_mask_transparent"></p>

    <p class="weui_toast">

        <p class="weui_loading">

            <p class="weui_loading_leaf weui_loading_leaf_0"></p>

            <p class="weui_loading_leaf weui_loading_leaf_1"></p>

            <p class="weui_loading_leaf weui_loading_leaf_2"></p>

            <p class="weui_loading_leaf weui_loading_leaf_3"></p>

            <p class="weui_loading_leaf weui_loading_leaf_4"></p>

            <p class="weui_loading_leaf weui_loading_leaf_5"></p>

            <p class="weui_loading_leaf weui_loading_leaf_6"></p>

            <p class="weui_loading_leaf weui_loading_leaf_7"></p>

            <p class="weui_loading_leaf weui_loading_leaf_8"></p>

            <p class="weui_loading_leaf weui_loading_leaf_9"></p>

            <p class="weui_loading_leaf weui_loading_leaf_10"></p>

            <p class="weui_loading_leaf weui_loading_leaf_11"></p>

        </p>

        <p class="weui_toast_content">数据加载中</p>

    </p></p>

Copy after login

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

.weui_loading_leaf {

  position: absolute;

  top: -1px;

  opacity: 0.25;}.weui_loading_leaf:before {

  content: " ";

  position: absolute;

  width: 8.14px;

  height: 3.08px;

  background: #d1d1d5;

  box-shadow: rgba(0, 0, 0, 0.0980392) 0px 0px 1px;

  border-radius: 1px;

  -webkit-transform-origin: left 50% 0px;

          transform-origin: left 50% 0px;}.weui_loading_leaf_0 {

  -webkit-animation: opacity-60-25-0-12 1.25s linear infinite;

          animation: opacity-60-25-0-12 1.25s linear infinite;}.weui_loading_leaf_0:before {

  -webkit-transform: rotate(0deg) translate(7.92px, 0px);

          transform: rotate(0deg) translate(7.92px, 0px);}/* ... */.weui_loading_leaf_11 {

  -webkit-animation: opacity-60-25-11-12 1.25s linear infinite;

          animation: opacity-60-25-11-12 1.25s linear infinite;}.weui_loading_leaf_11:before {

  -webkit-transform: rotate(330deg) translate(7.92px, 0px);

          transform: rotate(330deg) translate(7.92px, 0px);}@-webkit-keyframes opacity-60-25-0-12 {

  0% {

    opacity: 0.25;

  }

  0.01% {

    opacity: 0.25;

  }

  0.02% {

    opacity: 1;

  }

  60.01% {

    opacity: 0.25;

  }

  100% {

    opacity: 0.25;

  }}/* ... */@-webkit-keyframes opacity-60-25-11-12 {

  0% {

    opacity: 0.895958333333333;

  }

  91.6767% {

    opacity: 0.25;

  }

  91.6867% {

    opacity: 1;

  }

  51.6767% {

    opacity: 0.25;

  }

  100% {

    opacity: 0.895958333333333;

  }}

Copy after login

4. What knowledge can be learned through WeChats WeUI?

What knowledge can be learned through WeChats WeUI?

1

2

3

4

5

6

7

8

9

10

<p class="weui_dialog_confirm" id="dialog1">

    <p class="weui_mask"></p>

    <p class="weui_dialog">

        <p class="weui_dialog_hd"><strong class="weui_dialog_title">弹窗标题</strong></p>

        <p class="weui_dialog_bd">自定义弹窗内容,居左对齐显示,告知需要确认的信息等</p>

        <p class="weui_dialog_ft">

            <a href="javascript:;" class="weui_btn_dialog default">取消</a>

            <a href="javascript:;" class="weui_btn_dialog primary">确定</a>

        </p>

    </p></p>

Copy after login

你能看到的边框都是用:after实现的.

5. Progress

What knowledge can be learned through WeChats WeUI?

略. ( *・ω・)✄╰ひ╯

6. What knowledge can be learned through WeChats WeUI?

What knowledge can be learned through WeChats WeUI?

略. ( *・ω・)✄╰ひ╯

7. What knowledge can be learned through WeChats WeUI?

What knowledge can be learned through WeChats WeUI?

略. ( *・ω・)✄╰ひ╯

8. What knowledge can be learned through WeChats WeUI?

What knowledge can be learned through WeChats WeUI?

1

2

3

4

5

6

7

8

9

10

11

12

13

14

<p id="actionSheet_wrap">

    <p class="weui_mask_transition" id="mask" style="display: none;"></p>

    <p class="weui_actionsheet" id="weui_actionsheet">

        <p class="weui_actionsheet_menu">

            <p class="weui_actionsheet_cell">示例菜单</p>

            <p class="weui_actionsheet_cell">示例菜单</p>

            <p class="weui_actionsheet_cell">示例菜单</p>

            <p class="weui_actionsheet_cell">示例菜单</p>

        </p>

        <p class="weui_actionsheet_action">

            <p class="weui_actionsheet_cell" id="actionsheet_cancel">取消</p>

        </p>

    </p>

</p>

Copy after login

值得一提的是, 页面下方的What knowledge can be learned through WeChats WeUI?始终是显示的, 只不过平时通过transform: translateY(100%)隐藏了起来, 显示时用translateY(0). 这方法无需JS就可以自适应任意高度的What knowledge can be learned through WeChats WeUI?.

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

.weui_actionsheet {

    position: fixed;

    left: 0;

    bottom: 0;

    -webkit-transform: translate(0, 100%);

    transform: translate(0, 100%);

    -webkit-backface-visibility: hidden;

    backface-visibility: hidden;

    z-index: 2;

    width: 100%;

    background-color: #EFEFF4;

    -webkit-transition: -webkit-transform .3s;

    transition: -webkit-transform .3s;

    transition: transform .3s;

    transition: transform .3s, -webkit-transform .3s;

}

.weui_actionsheet_toggle {

    -webkit-transform: translate(0, 0);

    transform: translate(0, 0);

}

Copy after login

9. What knowledge can be learned through WeChats WeUI?

What knowledge can be learned through WeChats WeUI?

一堆iconfont. ( *・ω・)✄╰ひ╯

10. What knowledge can be learned through WeChats WeUI?

What knowledge can be learned through WeChats WeUI?

略. ( *・ω・)✄╰ひ╯

11. Tab

Navbar:

What knowledge can be learned through WeChats WeUI?

What knowledge can be learned through WeChats WeUI?:

What knowledge can be learned through WeChats WeUI?

略. ( *・ω・)✄╰ひ╯

12. What knowledge can be learned through WeChats WeUI?

无焦点状态:

What knowledge can be learned through WeChats WeUI?

有焦点状态:

What knowledge can be learned through WeChats WeUI? with Candidates

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

<p class="weui_search_bar weui_search_focusing" id="search_bar">

    <form class="weui_search_outer">

        <!-- 搜索框有焦点时的搜索图标, 搜索框和清空按钮 -->

        <p class="weui_search_inner">

            <i class="weui_icon_search"></i>

            <input type="search" class="weui_search_input" id="search_input" placeholder="搜索" required="">

            <a href="javascript:" class="weui_icon_clear" id="search_clear"></a>

        </p>

        <!-- 搜索框没有焦点时的显示 -->

        <label for="search_input" class="weui_search_text" id="search_text">

            <i class="weui_icon_search"></i>

            <span>搜索</span>

        </label>

    </form>

    <!-- 搜索框有焦点时的取消键 -->

    <a href="javascript:" class="weui_search_cancel" id="search_cancel">取消</a>

</p>

Copy after login

这里我最好奇的是, 当用户点击搜索框时, 弹出的键盘上右下角的按键是"搜索"而不是"换行".

我测试的效果是, 在微信中点击搜索框时键盘显示"搜索"按键, 在Safari中打开时则显示"换行".

这就很诡异了, 说明微信做了什么手脚. 难道与JS有关?

但是我在网上搜索了下, 发现只要确保input[type="search"]被form包围, 且form有action属性即可. 示例:

1

2

3

<form action="">

  <input type="search" name="search" placeholder="search">

</form>

Copy after login

    但是WeUI的实现中,form并没有action属性, 所以暂时不知道WeUI是如何做的.

相关文章:

通过微信WEUI实现图片What knowledge can be learned through WeChats WeUI?,后台PHP该如何处理?

Angularjs整合微信UI(weui)

WEUI application JS common information prompt pop-up layer encapsulation

The above is the detailed content of What knowledge can be learned through WeChat's WeUI?. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1664
14
PHP Tutorial
1269
29
C# Tutorial
1249
24
JavaScript Engines: Comparing Implementations JavaScript Engines: Comparing Implementations Apr 13, 2025 am 12:05 AM

Different JavaScript engines have different effects when parsing and executing JavaScript code, because the implementation principles and optimization strategies of each engine differ. 1. Lexical analysis: convert source code into lexical unit. 2. Grammar analysis: Generate an abstract syntax tree. 3. Optimization and compilation: Generate machine code through the JIT compiler. 4. Execute: Run the machine code. V8 engine optimizes through instant compilation and hidden class, SpiderMonkey uses a type inference system, resulting in different performance performance on the same code.

Python vs. JavaScript: The Learning Curve and Ease of Use Python vs. JavaScript: The Learning Curve and Ease of Use Apr 16, 2025 am 12:12 AM

Python is more suitable for beginners, with a smooth learning curve and concise syntax; JavaScript is suitable for front-end development, with a steep learning curve and flexible syntax. 1. Python syntax is intuitive and suitable for data science and back-end development. 2. JavaScript is flexible and widely used in front-end and server-side programming.

JavaScript: Exploring the Versatility of a Web Language JavaScript: Exploring the Versatility of a Web Language Apr 11, 2025 am 12:01 AM

JavaScript is the core language of modern web development and is widely used for its diversity and flexibility. 1) Front-end development: build dynamic web pages and single-page applications through DOM operations and modern frameworks (such as React, Vue.js, Angular). 2) Server-side development: Node.js uses a non-blocking I/O model to handle high concurrency and real-time applications. 3) Mobile and desktop application development: cross-platform development is realized through ReactNative and Electron to improve development efficiency.

How to Build a Multi-Tenant SaaS Application with Next.js (Frontend Integration) How to Build a Multi-Tenant SaaS Application with Next.js (Frontend Integration) Apr 11, 2025 am 08:22 AM

This article demonstrates frontend integration with a backend secured by Permit, building a functional EdTech SaaS application using Next.js. The frontend fetches user permissions to control UI visibility and ensures API requests adhere to role-base

Building a Multi-Tenant SaaS Application with Next.js (Backend Integration) Building a Multi-Tenant SaaS Application with Next.js (Backend Integration) Apr 11, 2025 am 08:23 AM

I built a functional multi-tenant SaaS application (an EdTech app) with your everyday tech tool and you can do the same. First, what’s a multi-tenant SaaS application? Multi-tenant SaaS applications let you serve multiple customers from a sing

From C/C   to JavaScript: How It All Works From C/C to JavaScript: How It All Works Apr 14, 2025 am 12:05 AM

The shift from C/C to JavaScript requires adapting to dynamic typing, garbage collection and asynchronous programming. 1) C/C is a statically typed language that requires manual memory management, while JavaScript is dynamically typed and garbage collection is automatically processed. 2) C/C needs to be compiled into machine code, while JavaScript is an interpreted language. 3) JavaScript introduces concepts such as closures, prototype chains and Promise, which enhances flexibility and asynchronous programming capabilities.

JavaScript and the Web: Core Functionality and Use Cases JavaScript and the Web: Core Functionality and Use Cases Apr 18, 2025 am 12:19 AM

The main uses of JavaScript in web development include client interaction, form verification and asynchronous communication. 1) Dynamic content update and user interaction through DOM operations; 2) Client verification is carried out before the user submits data to improve the user experience; 3) Refreshless communication with the server is achieved through AJAX technology.

JavaScript in Action: Real-World Examples and Projects JavaScript in Action: Real-World Examples and Projects Apr 19, 2025 am 12:13 AM

JavaScript's application in the real world includes front-end and back-end development. 1) Display front-end applications by building a TODO list application, involving DOM operations and event processing. 2) Build RESTfulAPI through Node.js and Express to demonstrate back-end applications.

See all articles