search

Home  >  Q&A  >  body text

android - weex目前发现的几个问题

版本:weex:v1.0.3

 weex-builder : v0.2.4
 weex-previewer : v1.3.4
 
 1.ios下面,绑定数据不会自动更新,如下:
 <text @click="onTest">{{test}}</text>
 data () {
        return {
             test:"测试一下"
}}
onTest:function(){
            this.test="真的动了呢";
 }
 ios下面点了没反应,WEB下面没问题,这个IOS数据绑定有问题
 
 2.IOS和WEB下面事件里获取DOM问题
 <text @click="onTest" id="1">{{test}}</text>
onTest:function(e){
         e.target本来是原生DOM,但是这里IOS和WEB下得到的数据是不一样的,IOS下面是attr:{"id::"1"}这样的格式,而WEB下面要用getAttribute("id")来获取值
 }

3.获取参数不统一
weex.config.platform; WEB和IOS上是这样获取参数,安卓上weex.config.env.platform;是这样,不统一

 
4.Vue.set( object, key, value ) value里面只要带%符号,在安卓下面就挂了,感觉只要有%符号安卓下面就有问题
ringa_leeringa_lee2771 days ago362

reply all(2)I'll reply

  • PHP中文网

    PHP中文网2017-04-18 09:56:44

    Under 1.ios, the binding data will not be automatically updated
    This problem has been solved, and a developer has the same problem as me. Under his prompts, he said that restarting the phone is enough, but it turns out that restarting is all it takes. I don’t know. What is the reason? There should still be a problem. I hope the official can check it out

    reply
    0
  • 黄舟

    黄舟2017-04-18 09:56:44

    3. Obtaining parameters is not uniform
    weex.config.platform; This is how to obtain parameters on WEB and IOS, and weex.config.env.platform; on Android, it is not uniform

    Just update weexVersion to version 0.10.0 on all three terminals

    reply
    0
  • Cancelreply