Uploaded image for project: 'Weex (Retired)'
  1. Weex (Retired)
  2. WEEX-275

Android 打包 apk vue数据绑定

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • win10 开发

    Description

      本人刚学 按照教程 weex creat 生成项目 修改helloword。vue文件
      <template>
      <div >
      <textclass="message">Now, let's use Vue.js to build your Weex app.</text>
      <divstyle="height: 150px"@click="click4">
      <span>ADD<spanv-text="indexA.age"></span>{{showDiv}}</span>
      </div>
      </div>
      </template>
      <script>
      export default {
      data () {
      return {
      list: [],
      indexA:

      { age:12 }

      ,
      showDiv:true
      }
      },
      methods: {
      click4 ()

      { this.indexA.age+=2 this.showDiv=!this.showDiv }

      }
      }
      </script>
      npm run serve  没问题 weex build android打包Android apk 安装到手机 点击没效果

      Attachments

        1. newap1p.apk
          10.18 MB
          purplebuterfly

        Activity

          People

            cxfeng Adam Feng
            purplebutterfly purplebuterfly
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment