看报错,似乎是你的方法没有定义成功。所以showState是undefined。 如果是Webview与android原生交互的话,你可以试试这样在javascript中定义你需要暴露的方法 window["showState"] = function(state,contId,conments) {...}
看报错,似乎是你的方法没有定义成功。所以showState是undefined。
如果是Webview与android原生交互的话,你可以试试这样在javascript中定义你需要暴露的方法
window["showState"] = function(state,contId,conments) {...}