我想实现是点击Android控件来保存在h5中编辑的信息,并且展示给另一个html。
js代码、html文件还有别的,前端已经帮我写好了。
我使用的设备是4.1.2, 编译版本19,都高于4.0可是点击按键无法保存,已经用alert测试过,点击保存按钮是可以跳转到对应html中的保存function代码块里的。
用其他比较高版本设备、模拟器来测试均可以保存,能够与h5正常交互。
我几乎在每个调用h5的Java代码里都已经标注有@JavascriptInterface,但是都没有用。
其中调试出一部分显示错误的信息如下:
06-28 11:10:10.789: E/Web Console(24061): Warning: render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.:1
06-28 11:10:10.789: E/Web Console(24061): Warning: render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.:1
想请教一下大神们这个该如何解决,谢谢!