摘要 |
Provided are a method and system for displaying a customized webpage on double WebView, the method comprising: determining the template type of a customized webpage according to the loaded original webpage information; constructing a new WebView according to the determined template type of the customized webpage, and loading onto the constructed new WebView the customized webpage template determined according to the original webpage information; creating an embedded JS object in the new WebView, such that the customized webpage template running on the new WebView can access the WebView of the original webpage so as to acquire the webpage data of the original webpage; generating a new webpage as a customized webpage in the new WebView according to the obtained webpage data of the original webpage; and displaying the customized webpage. The present invention can customize a webpage, seamlessly switch between an original webpage and the customized webpage, and block a webpage advertisement, without customizing the support of a server, changing the original webpage, or incurring any cost of time. |