WebView简单介绍及代码分析

Intent intent = getIntent();
        String url = intent.getStringExtra("murl");

    web_view.setWebViewClient(new WebViewClient());

    WebSettings settings = web_view.getSettings();

    settings.setJavaScriptCanOpenWindowsAutomatically(true);
    settings.setJavaScriptEnabled(true);

    web_view.loadUrl(url);

猜你喜欢

转载自blog.csdn.net/wangyonghao132/article/details/84890237