- mWebView.setWebViewClient(new WebViewClient() {
- //点击网页中按钮时,在原页面打开
- public boolean shouldOverrideUrlLoading(WebView view, String url) {
- view.loadUrl(url);
- return true;
- }
- //页面加载完成后执行
- @Override
- public void onPageFinished(WebView view, String url) {
- super.onPageFinished(view, url);
- if (xiaoQu.equals("LX")) {
- mWebView.loadUrl("javascript:LN('5772','9404','良乡校区');");
- }
- }
- });