CN107577825A - A kind of method and device in mobile terminal loading webpage - Google Patents
A kind of method and device in mobile terminal loading webpage Download PDFInfo
- Publication number
- CN107577825A CN107577825A CN201710995559.6A CN201710995559A CN107577825A CN 107577825 A CN107577825 A CN 107577825A CN 201710995559 A CN201710995559 A CN 201710995559A CN 107577825 A CN107577825 A CN 107577825A
- Authority
- CN
- China
- Prior art keywords
- webpage
- web data
- mobile terminal
- data
- version
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention provides a kind of method in mobile terminal loading webpage, methods described comprises the following steps:The first webpage opened according to the mobile terminal request, judges the type of webpage of first webpage, and the type of webpage includes computerized version and mobile terminal version;When it is determined that the type of webpage is computerized version, the address of first webpage is revised as to the address of the second webpage, the web data of second webpage is returned into the mobile terminal;The web data of second webpage is the data compatible with the web data of the mobile terminal version, and identical with the web data form of the mobile terminal version.The solution of the present invention, the webpage of immobile terminal is may browse through on mobile terminals, another web data of generation only caches the shorter time, when user needs not go through, could be arranged to delete, therefore, the cost that can be saved during mobile.The two can go to initiate to access using identical URL.
Description
Technical field
The present invention relates to communication technical field, more particularly to a kind of method and device that webpage is loaded in mobile terminal.
Background technology
It is well known that in the internet, typically using webpage as the tissue of various web page resources and show in the form of, in order to
Each webpage can be made a distinction, each webpage can have each unique mark, commonly referred to as network address.The network address of webpage is led to
It can often be represented with URL.The URL of webpage is added in the address field of browser, it is possible to navigate to corresponding webpage.
With the fast development of development of Mobile Internet technology, people can anywhere or anytime by various mobile terminal devices come
Internet is accessed, various information is obtained, webpage can also be browsed by browser special in mobile terminal.But relatively
For the terminal devices such as traditional desktop computer, notebook, the screen physical size of mobile terminal device typically can be smaller.Cause
This, a same webpage, when being shown on a kind of terminal device, may carry out some to the content in webpage and delete, for example,
The contents such as some advertisements will no longer be shown, etc..Also, a same webpage, is complained to the higher authorities about an injustice and request fair settlement in the larger PC of screen physical size
When asking, its URL and when accessing on the mobile terminal device is usually different.For example, be equally the homepage of certain website, if
To be accessed on PC, then the URL used is usually www.abc.com, and when accessing on mobile terminals, its network address is
M.abc.com, etc..Accordingly, browser can also divide into PC versions and mobile terminal version.
Due to same webpage on PC it is different with the URL scheme that is used on mobile terminal, therefore, realizing webpage
, it is necessary to expend the costs such as larger network address during the mobile of access, one may also can be brought to the access of webpage in addition
A little inconvenience.For example, it is assumed that certain user has shared certain webpage on PC using social tools such as its microbloggings, the network address of the webpage is
Represented with the URL scheme under PC, for example, www.abc.com;And other users can also using the microblogging of mobile phone version
The webpage that the user shares is viewed, still, now, because the network address of webpage is www.abc.com, accordingly, it is possible to cause
Directly it can not be checked, etc. with the browser of mobile phone version.
The content of the invention
In order to solve the above-mentioned technical problem, the invention provides a kind of method in mobile terminal loading webpage, the side
Method comprises the following steps:
The first webpage opened according to the mobile terminal request, judge the type of webpage of first webpage, the net
Page type includes computerized version and mobile terminal version;
When it is determined that the type of webpage is computerized version, the address of first webpage is revised as to the ground of the second webpage
Location, the web data of second webpage is returned into the mobile terminal;
The web data of second webpage is the data compatible with the web data of the mobile terminal version, and with it is described
The web data form of mobile terminal version is identical.
Further, when it is determined that the type of webpage is computerized version, the address of first webpage is revised as second
The address of webpage, comprises the following steps:
When it is determined that the type of webpage is computerized version, the web data in first webpage is extracted;
Web data in first webpage generates another web data, the data lattice of another web data
Formula is mutually compatible with the web data of the mobile terminal;
The address of second webpage is generated according to another web data, and the address of first webpage is changed
For the address of the second webpage.
Further, the web data in extraction first webpage, comprises the following steps:
According to the Type division of data it is polytype web data by the data in first webpage;
Same type of web data is compressed in identical file folder, to form multiple files, and by the file
Folder is cached;
File compatible with the web data of the mobile terminal version in the multiple file is extracted, and will be simultaneous therewith
The file solution of appearance is depressed into a new webpage.
Further, another web data of web data generation in first webpage is:
According to the webpage number in file compatible with the web data of the mobile terminal version in the multiple file
According to another web data of generation.
Especially, present invention also offers a kind of device in mobile terminal loading webpage, including:
Judge module, for the first webpage opened according to the mobile terminal request, judge the net of first webpage
Page type, the type of webpage include computerized version and mobile terminal version;
Processing module, for when it is determined that the type of webpage is computerized version, the address of first webpage to be revised as
The address of second webpage, the web data of second webpage is returned into the mobile terminal;
The web data of second webpage is the data compatible with the web data of the mobile terminal version, and with it is described
The web data form of mobile terminal version is identical.
Further, the processing module includes:
Extraction unit, for when it is determined that the type of webpage is computerized version, extracting the webpage number in first webpage
According to;
First generation unit, another web data is generated for the web data in first webpage, it is described another
The data format of one web data is mutually compatible with the web data of the mobile terminal;
Second generation unit, for generating the address of second webpage according to another web data, and by described in
It is revised as the address of the second webpage in the address of first webpage.
Further, the extraction unit includes:
Subelement is divided, for according to the Type division of data being polytype net by the data in first webpage
Page data;
Subelement is formed, for same type of web data to be compressed in identical file folder, to form multiple files
Folder, and the file is cached;
Subelement is extracted, for extracting text compatible with the web data of the mobile terminal version in the multiple file
Part is pressed from both sides, and file solution compatible is depressed into a new webpage.
Further, first generation unit is used for according to the net in the multiple file with the mobile terminal version
Web data in the compatible file of page data generates another web data.
The solution of the present invention, the webpage of immobile terminal, another web data of generation are may browse through on mobile terminals
The shorter time is only cached, when user needs not go through, could be arranged to delete, therefore, can be saved during mobile
Cost.The two can go to initiate to access using identical URL.And in the process redirected from a webpage to another webpage
In, load request can be initiated by the code write in current web page, avoid carrying out overall refreshing to the page, improve page jump
Speed.
According to the accompanying drawings will be brighter to the detailed description of the specific embodiment of the invention, those skilled in the art
Above-mentioned and other purposes, the advantages and features of the present invention.
Brief description of the drawings
Some specific embodiments of the present invention are described in detail by way of example, and not by way of limitation with reference to the accompanying drawings hereinafter.
Identical reference denotes same or similar part or part in accompanying drawing.It should be appreciated by those skilled in the art that these
What accompanying drawing was not necessarily drawn to scale.In accompanying drawing:
Fig. 1 is the flow chart of the method according to an embodiment of the invention in mobile terminal loading webpage;
Fig. 2 is the structure chart of the device in mobile terminal loading webpage according to a further aspect of the present invention.
Embodiment
As shown in figure 1, the invention provides a kind of method in mobile terminal loading webpage, methods described includes following step
Suddenly:
The first webpage opened according to the mobile terminal request, judge the type of webpage of first webpage, the net
Page type includes computerized version and mobile terminal version;
When it is determined that the type of webpage is computerized version, the address of first webpage is revised as to the ground of the second webpage
Location, the web data of second webpage is returned into the mobile terminal;
The web data of second webpage is the data compatible with the web data of the mobile terminal version, and with it is described
The web data form of mobile terminal version is identical.
Further, when it is determined that the type of webpage is computerized version, the address of first webpage is revised as second
The address of webpage, comprises the following steps:
When it is determined that the type of webpage is computerized version, the web data in first webpage is extracted;
Web data in first webpage generates another web data, the data lattice of another web data
Formula is mutually compatible with the web data of the mobile terminal;
The address of second webpage is generated according to another web data, and the address of first webpage is changed
For the address of the second webpage.
Further, the web data in extraction first webpage, comprises the following steps:
According to the Type division of data it is polytype web data by the data in first webpage;
Same type of web data is compressed in identical file folder, to form multiple files, and by the file
Folder is cached;
File compatible with the web data of the mobile terminal version in the multiple file is extracted, and will be simultaneous therewith
The file solution of appearance is depressed into a new webpage.
Further, another web data of web data generation in first webpage is:
According to the webpage number in file compatible with the web data of the mobile terminal version in the multiple file
According to another web data of generation.
Especially, present invention also offers a kind of device in mobile terminal loading webpage, including:
Judge module, for the first webpage opened according to the mobile terminal request, judge the net of first webpage
Page type, the type of webpage include computerized version and mobile terminal version;
Processing module, for when it is determined that the type of webpage is computerized version, the address of first webpage to be revised as
The address of second webpage, the web data of second webpage is returned into the mobile terminal;
The web data of second webpage is the data compatible with the web data of the mobile terminal version, and with it is described
The web data form of mobile terminal version is identical.
Further, the processing module includes:
Extraction unit, for when it is determined that the type of webpage is computerized version, extracting the webpage number in first webpage
According to;
First generation unit, another web data is generated for the web data in first webpage, it is described another
The data format of one web data is mutually compatible with the web data of the mobile terminal;
Second generation unit, for generating the address of second webpage according to another web data, and by described in
It is revised as the address of the second webpage in the address of first webpage.
Further, the extraction unit includes:
Subelement is divided, for according to the Type division of data being polytype net by the data in first webpage
Page data;
Subelement is formed, for same type of web data to be compressed in identical file folder, to form multiple files
Folder, and the file is cached;
Subelement is extracted, for extracting text compatible with the web data of the mobile terminal version in the multiple file
Part is pressed from both sides, and file solution compatible is depressed into a new webpage.
Further, first generation unit is used for according to the net in the multiple file with the mobile terminal version
Web data in the compatible file of page data generates another web data.
The solution of the present invention, the webpage of immobile terminal, another web data of generation are may browse through on mobile terminals
The shorter time is only cached, when user needs not go through, could be arranged to delete, therefore, can be saved during mobile
Cost.The two can go to initiate to access using identical URL.And in the process redirected from a webpage to another webpage
In, load request can be initiated by the code write in current web page, avoid carrying out overall refreshing to the page, improve page jump
Speed.
So far, although those skilled in the art will appreciate that detailed herein have shown and described multiple showing for the present invention
Example property embodiment, still, still can be direct according to present disclosure without departing from the spirit and scope of the present invention
It is determined that or derive many other variations or modifications for meeting the principle of the invention.Therefore, the scope of the present invention is understood that and recognized
It is set to and covers other all these variations or modifications.
Claims (8)
- A kind of 1. method in mobile terminal loading webpage, it is characterised in that methods described comprises the following steps:The first webpage opened according to the mobile terminal request, judge the type of webpage of first webpage, the web page class Type includes computerized version and mobile terminal version;When it is determined that the type of webpage is computerized version, the address of first webpage is revised as to the address of the second webpage, with The web data of second webpage is returned into the mobile terminal;The web data of second webpage is the data compatible with the web data of the mobile terminal version, and with the movement The web data form of terminal version is identical.
- 2. the method according to claim 1 in mobile terminal loading webpage, it is characterised in that it is determined that the web page class When type is computerized version, the address of first webpage is revised as to the address of the second webpage, comprised the following steps:When it is determined that the type of webpage is computerized version, the web data in first webpage is extracted;Web data in first webpage generates another web data, the data format of another web data with The web data of the mobile terminal is mutually compatible;Generate the address of second webpage according to another web data, and the address of first webpage is revised as the The address of two webpages.
- 3. the method according to claim 2 in mobile terminal loading webpage, it is characterised in that the extraction described first Web data in webpage, comprises the following steps:According to the Type division of data it is polytype web data by the data in first webpage;Same type of web data is compressed in identical file folder, to form multiple files, and the file entered Row caching;File compatible with the web data of the mobile terminal version in the multiple file is extracted, and will be compatible File solution is depressed into a new webpage.
- 4. the method according to claim 3 in mobile terminal loading webpage, it is characterised in that described according to described first Web data in webpage generates another web data:Web data life in file compatible with the web data of the mobile terminal version in the multiple file Into another web data.
- A kind of 5. device in mobile terminal loading webpage, it is characterised in that including:Judge module, for the first webpage opened according to the mobile terminal request, judge the web page class of first webpage Type, the type of webpage include computerized version and mobile terminal version;Processing module, for when it is determined that the type of webpage is computerized version, the address of first webpage to be revised as into second The address of webpage, the web data of second webpage is returned into the mobile terminal;The web data of second webpage is the data compatible with the web data of the mobile terminal version, and with the movement The web data form of terminal version is identical.
- 6. the device according to claim 5 in mobile terminal loading webpage, it is characterised in that the processing module bag Include:Extraction unit, for when it is determined that the type of webpage is computerized version, extracting the web data in first webpage;First generation unit, another web data, another net are generated for the web data in first webpage The data format of page data is mutually compatible with the web data of the mobile terminal;Second generation unit, for generating the address of second webpage according to another web data, and by described first It is revised as the address of the second webpage in the address of webpage.
- 7. the device according to claim 6 in mobile terminal loading webpage, it is characterised in that the extraction unit bag Include:Subelement is divided, for according to the Type division of data being polytype webpage number by the data in first webpage According to;Subelement is formed, for same type of web data to be compressed in identical file folder, to form multiple files, and The file is cached;Subelement is extracted, for extracting file compatible with the web data of the mobile terminal version in the multiple file Folder, and file solution compatible is depressed into a new webpage.
- 8. the device according to claim 7 in mobile terminal loading webpage, it is characterised in that first generation unit For the web data life in file compatible with the web data of the mobile terminal version in the multiple file Into another web data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710995559.6A CN107577825A (en) | 2017-10-23 | 2017-10-23 | A kind of method and device in mobile terminal loading webpage |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710995559.6A CN107577825A (en) | 2017-10-23 | 2017-10-23 | A kind of method and device in mobile terminal loading webpage |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107577825A true CN107577825A (en) | 2018-01-12 |
Family
ID=61037729
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710995559.6A Pending CN107577825A (en) | 2017-10-23 | 2017-10-23 | A kind of method and device in mobile terminal loading webpage |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107577825A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107229760A (en) * | 2017-07-27 | 2017-10-03 | 腾讯科技(深圳)有限公司 | Storage medium, electronic installation, the display methods of web page contents and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20060019709A (en) * | 2004-08-30 | 2006-03-06 | 주식회사 팬택 | Method for transforming markup language based xml in mobile telephone and mobile telephone incorporating the same |
CN103237088A (en) * | 2013-05-16 | 2013-08-07 | 百度在线网络技术(北京)有限公司 | Corresponding relation library-based browsing method and system and cloud server |
CN104714958A (en) * | 2013-12-12 | 2015-06-17 | 腾讯科技(深圳)有限公司 | Webpage transfer method and device |
-
2017
- 2017-10-23 CN CN201710995559.6A patent/CN107577825A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20060019709A (en) * | 2004-08-30 | 2006-03-06 | 주식회사 팬택 | Method for transforming markup language based xml in mobile telephone and mobile telephone incorporating the same |
CN103237088A (en) * | 2013-05-16 | 2013-08-07 | 百度在线网络技术(北京)有限公司 | Corresponding relation library-based browsing method and system and cloud server |
CN104714958A (en) * | 2013-12-12 | 2015-06-17 | 腾讯科技(深圳)有限公司 | Webpage transfer method and device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107229760A (en) * | 2017-07-27 | 2017-10-03 | 腾讯科技(深圳)有限公司 | Storage medium, electronic installation, the display methods of web page contents and device |
CN107229760B (en) * | 2017-07-27 | 2018-06-08 | 腾讯科技(深圳)有限公司 | Storage medium, electronic device, the display methods of web page contents and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI703463B (en) | Information display method, device and intelligent terminal | |
CN102129364B (en) | Method for embedding widget toolbar in application program and rapid widget accessing method | |
CN104281827B (en) | Identify the method and device of Quick Response Code | |
Bila et al. | Pagetailor: reusable end-user customization for the mobile web | |
CN103246678B (en) | A kind of web page content preview method and apparatus | |
US10572489B2 (en) | Synthesis of webpage snippets using sub-pages of the webpage | |
Xie et al. | Efficient browsing of web search results on mobile devices based on block importance model | |
CN103502983A (en) | Memoizing Web-browsing computation with DOM-based isomorphism | |
CN104142826A (en) | Method, device and system for constructing page | |
CN104461632A (en) | Web App loading method and device | |
US10394839B2 (en) | Crowdsourcing application history search | |
US20130339840A1 (en) | System and method for logical chunking and restructuring websites | |
CN105117474A (en) | Method and device for loading recommendation information in webpage reading mode | |
CN101310261A (en) | Mobile terminal device, URL management method used for the same, and program thereof | |
CN107229760B (en) | Storage medium, electronic device, the display methods of web page contents and device | |
CN103618774A (en) | Resource recommending method, device and system based on network behaviors | |
CN104423991A (en) | Webpage loading and webpage data providing method and device of mobile terminal | |
CN104571813A (en) | Information displaying method and device | |
CN105630454A (en) | Information display method and terminal equipment | |
CN104598571A (en) | Method and device for playing multimedia resource | |
CN102999576A (en) | Method and equipment for confirming page description information corresponding to target pages | |
CN104572981A (en) | Web page caching method and mobile terminal device | |
US10592572B2 (en) | Application view index and search | |
CN107577825A (en) | A kind of method and device in mobile terminal loading webpage | |
CN111680247A (en) | Local calling method, device, equipment and storage medium of webpage character string |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20180112 |