1. 程式人生 > 其它 >webpack5轉化es6程式碼後,立即執行函式依舊是箭頭函式

webpack5轉化es6程式碼後,立即執行函式依舊是箭頭函式

知識點1:

1.css選擇器的優先順序(!important(優先數值:∞)>行內式(優先數值:1000)>id(優先數值:100)>class(優先數值:10)>標籤選擇器(優先數值:1)>繼承

2.同一選擇器優先數值越高,優先順序就越高。

3.無論多少個弟弟也大不過一個哥哥。

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
#i1{
color: red;
}

.c1{
color: green;
}

div{
color: orange;
}

.c2 .c3 .c4 .c5{
color: yellow;
}

.c2 .c3 .c5{
color: gray;
}

#i2{
/color: blue;
}

.c5{
color: purple!important;
}

</style>

</head>
<body>

<div class="c1" id="i1">huchangxi</div>

<div class="c2">
<div class="c3">
<div class="c4">
<p class="c5" id="i2" style="color: lightcoral">hulanxi</p>
</div>

</div>

</div>

</body>
</html>