Skip to content

Commit

Permalink
Update 06 侦听器.md
Browse files Browse the repository at this point in the history
  • Loading branch information
hzz4j committed Nov 28, 2021
1 parent 6676ad7 commit 2816a78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/vue3/06 侦听器.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ watch: {
// 侦听price,当它发生变化时
price(newValue,preValue){
// ...
alert(`price原来是${preValue}现在变成${newValue}`);
}
}
```
Expand All @@ -36,7 +37,6 @@ watch: {

<script>
import {ref} from 'vue';

export default {
setup(){
return {
Expand Down

0 comments on commit 2816a78

Please sign in to comment.