2021
01-26
01-26
vue 计算属性和侦听器的使用小结
1.计算属性和侦听器1.1计算属性<!DOCTYPEhtml><html><head><metacharset="utf-8"><scriptsrc="https://cdn.staticfile.org/vue/2.4.2/vue.min.js"></script></head><body><divid="app"><p>{{message}}</p><p>{{reversedMessage}}</p></div><script>newVue({el:'#app',data:{message:'hello'},computed:{reversedMessage:fun...
继续阅读 >