An error is reported when the method on the web side is called by Android

clipboard.png
clipboard.png
clipboard.png

Mar.18,2022

read the newspaper wrong, it seems that your method does not define success. So showState is undefined.

if Webview interacts with android natively, you can try this way to define the method you need to expose in javascript

window ["showState"] = function (state,contId,conments) {.}

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b361cc-2bfff.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b361cc-2bfff.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?