Sign in

framework / qx-apaas-power · Files

GitLab

  • Go to group
  • Project
  • Activity
  • Files
  • Commits
  • Builds 0
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • Network
  • qx-apaas-power
  • miniprogram
  • Behaviors
  • my-behavior.js
  • 添加徽辰小程序静态页面和框架搭建
    29452b66
    周铨 authored
    2024-11-12 17:04:26 +0800  
    Browse Files »
my-behavior.js 338 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
// my-behavior.js
module.exports = Behavior({
  behaviors: [],
  properties: {
    myBehaviorProperty: {
      type: String
    }
  },
  data: {
    myBehaviorData: {},
    myStr:"哈哈哈哈"
  },
  attached: function(){},
  methods: {
    myBehaviorMethod: function(){
      console.log('这是Behavior方法------------')
    }
  }
})