package com.she.jyass.UI;

import android.content.Context;
import android.webkit.WebView;

public class myWebView extends WebView {
	public native String StringstringByEvaluatingJavaScriptFromString(String script);
	public myWebView(Context context) {
		super(context);
	}
}

使用myWebView即可用StringstringByEvaluatingJavaScriptFromString来执行js并获得返回值

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-27
  • 2022-12-23
相关资源
相似解决方案