Coder Social home page Coder Social logo

call()函数返回值 about dsbridge-android HOT 4 CLOSED

wendux avatar wendux commented on June 3, 2024
call()函数返回值

from dsbridge-android.

Comments (4)

wendux avatar wendux commented on June 3, 2024

建议是在需要map时,返回一个map的json字符串,在json中通过JSON.parse()转化成json对象

from dsbridge-android.

XingshengLiu avatar XingshengLiu commented on June 3, 2024

就是把之前返回的object进行一下转换是吗?

from dsbridge-android.

XingshengLiu avatar XingshengLiu commented on June 3, 2024

@wendux 还要请教一下,在WEbView中有private static final String BRIDGE_NAME = "_dsbridge"; 这个变量,在注入的那段js代码中也有_dsbridge,想问下_dsbridge的作用是什么呢?

from dsbridge-android.

wendux avatar wendux commented on June 3, 2024

JavaScript object 真正的对象名,详情请参考webview addJavascriptInterface

from dsbridge-android.

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.