Git Product home page Git Product logo

Comments (9)

pengwei1024 avatar pengwei1024 commented on May 18, 2024

我尽快检查下

from jsbridge.

pengwei1024 avatar pengwei1024 commented on May 18, 2024

可以再详细点吗?是方法参数里面包含了复杂JSON还是 JBCallback.apply()包含复杂数据呀?

from jsbridge.

pengwei1024 avatar pengwei1024 commented on May 18, 2024

@brandlee

from jsbridge.

brandlee avatar brandlee commented on May 18, 2024

在Debug模式下,比如这种形式的Json:
"data":[ "one", "two", "three", "four", "five", { "notice":[ "www.sojson.com", "json.la" ] }
这个时候Debug的话,我获取到的JBMap msg返回的结果是{empty:false}这种形式的,但是但我解析到下一步的时候,数据又能够解析出来,挺诡异的现象

from jsbridge.

pengwei1024 avatar pengwei1024 commented on May 18, 2024

数组里面包含对象吗?其实不建议这种数据结构。解析应该是没问题的。你说的解析到下一步指的什么啊?

from jsbridge.

brandlee avatar brandlee commented on May 18, 2024

另外提一个建议哈,如果不提前判断haskey,直接根据key值获取value,就会导致crash,这就像Json的getString和optString的区别一样,建议用optString的方式是不是会好一点?

from jsbridge.

brandlee avatar brandlee commented on May 18, 2024

就是断点到下一步的时候,数据又被解析出来了

from jsbridge.

pengwei1024 avatar pengwei1024 commented on May 18, 2024

数据解析这里我周末梳理优化下。数据解析也是在主线程做的,可能被阻塞了。直接运行数据是正常的吗?

from jsbridge.

brandlee avatar brandlee commented on May 18, 2024

嗯呢,谢了哈!

from jsbridge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.