my-behaviors.js 285 B

123456789101112131415161718192021222324
  1. module.exports = Behavior({
  2. data:{
  3. username:'hw',
  4. item:{a:1},
  5. },
  6. properties:{},
  7. methods:{},
  8. behaviors:[],//behaviors可以继续嵌套behavios
  9. // created(){
  10. // },
  11. // attached(){
  12. // },
  13. // moved(){
  14. // },
  15. // detached(){
  16. // },
  17. // ready(){
  18. // }
  19. })