This commit is contained in:
yinjun.chen1
2024-06-18 11:05:54 +08:00
parent 3e583e3aeb
commit ae361f158c
3 changed files with 4 additions and 4 deletions
@@ -41,8 +41,8 @@ function Count(props){
<option value="2">2</option>
<option value="3">3</option>
</select>
<button onClick={increement}>+</button>
<button onClick={decreement}>-</button>
<button onClick={increement}>加+</button>
<button onClick={decreement}>减-</button>
<button onClick={increementOdd}>计数再加</button>
<button onClick={increementSync}>异步再加</button>
</div>
@@ -2,7 +2,7 @@
margin-top: 20px;
margin-left: 20px;
padding: 12px;
border: 1px solid green;
border: 4px solid green;
}
@@ -2,7 +2,7 @@
margin-top: 20px;
margin-left: 20px;
padding: 12px;
border: 1px solid red;
border: 4px solid red;
.item{
display: flex;
justify-content: flex-start;