//设置条目点击事件,跳转webview界面
String detailUrl = GoodsActivity.this.list.get(i-1).getDetailUrl();
Intent intent=new Intent(GoodsActivity.this,DeatilActivity.class);
intent.putExtra("url",detailUrl);
startActivity(intent);
//webview接收传过来的数据
webView = findViewById(R.id.webview);
Intent intent = getIntent();
String url = intent.getStringExtra("url");
webView.loadUrl(url);
webView.getSettings().setJavaScriptEnabled(true);
webView.setWebViewClient(new WebViewClient());
webView.setWebChromeClient(new WebChromeClient());
webview
最新推荐文章于 2024-06-18 22:45:11 发布