未在WebView中加载productid

时间:2019-06-24 09:23:14

标签: java

public class Main2Activity extends AppCompatActivity {
    WebView v;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main2);

        setTitle("Beauty Splurge");
        v=findViewById(R.id.web);
        v.getSettings().setLoadsImagesAutomatically(true);
        v.getSettings().setJavaScriptEnabled(true);
        v.getSettings().setDomStorageEnabled(true);
        v.setWebViewClient(new WebViewClient());


//       
        v.loadUrl("https://infoters.com/demo/makali");

        Uri uri=Uri.parse(v.getUrl());
        String orderId = uri.getQueryParameter("productid");

    }
}

编舞:OPTS_INPUT:在优化之前先绘制第一帧,所以跳过!

0 个答案:

没有答案