CN114385290A - Page conversion method, device and storage medium - Google Patents

Page conversion method, device and storage medium Download PDF

Info

Publication number
CN114385290A
CN114385290A CN202111598855.5A CN202111598855A CN114385290A CN 114385290 A CN114385290 A CN 114385290A CN 202111598855 A CN202111598855 A CN 202111598855A CN 114385290 A CN114385290 A CN 114385290A
Authority
CN
China
Prior art keywords
page
conversion
mobile terminal
preset
instruction
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.)
Granted
Application number
CN202111598855.5A
Other languages
Chinese (zh)
Other versions
CN114385290B (en
Inventor
孟佳佳
张剑峰
樊志君
甄恩涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guotai Epoint Software Co Ltd
Original Assignee
Guotai Epoint Software Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guotai Epoint Software Co Ltd filed Critical Guotai Epoint Software Co Ltd
Priority to CN202111598855.5A priority Critical patent/CN114385290B/en
Publication of CN114385290A publication Critical patent/CN114385290A/en
Application granted granted Critical
Publication of CN114385290B publication Critical patent/CN114385290B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/76Adapting program code to run in a different environment; Porting

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The application discloses a page conversion method, a page conversion device and a storage medium, which relate to the technical field of computers, and the method comprises the following steps: receiving a page conversion request sent by a PC end, wherein the page conversion request is used for requesting to convert a preset PC page into a mobile end page; loading a mobile end template according to the page conversion request; loading and analyzing page content in the preset PC page; filling the analyzed page content into the mobile terminal template to generate a mobile terminal page; and returning the generated mobile terminal page. The problem of among the prior art page conversion efficiency and rate of accuracy lower is solved, the effect of improving page conversion efficiency and rate of accuracy through automatic realization page conversion has been reached.

Description

Page conversion method, device and storage medium
Technical Field
The invention relates to a page conversion method, a page conversion device and a storage medium, and belongs to the technical field of computers.
Background
The development of the mobile internet is changing day by day, and the original PC end page cannot meet the user experience mode under the current mobile internet wave.
Since the screen of the mobile device is smaller than that of the PC screen, the PC page needs to be processed to adapt to the mobile terminal with a smaller screen. In the existing scheme, a large number of PC pages need to be converted into mobile pages by a front-end developer to perform a conversion test manually, however, errors occur inevitably in the manual conversion process, which easily results in a large amount of time and energy being consumed above the test, that is, the efficiency and accuracy of page conversion in the existing scheme are low.
Disclosure of Invention
The invention aims to provide a page conversion method, a page conversion device and a storage medium, which are used for solving the problems in the prior art.
In order to achieve the purpose, the invention provides the following technical scheme:
according to a first aspect, an embodiment of the present invention provides a page conversion method, used in a PC, where the method includes:
receiving a page conversion triggering instruction, wherein the page conversion triggering instruction is used for triggering the conversion of a preset PC page into a mobile terminal page;
sending a page conversion request to a server according to the page conversion triggering instruction, wherein the page conversion request is used for indicating the server to convert the preset PC page into a mobile terminal page;
and receiving the mobile terminal page returned by the server.
Optionally, the receiving a page transition triggering instruction includes:
and receiving a batch conversion trigger instruction for converting at least two preset PC pages into a mobile terminal.
Optionally, the receiving a page transition triggering instruction includes:
receiving a selection instruction for selecting the page source code of the preset PC page;
and receiving a page conversion triggering instruction for triggering the conversion of the page source code into the mobile terminal page.
Optionally, the method further includes:
receiving a selection instruction for selecting a mobile terminal template;
sending a page conversion request to a server according to the page conversion triggering instruction, wherein the page conversion request comprises:
and sending a page conversion request carrying the template identifier of the mobile end template to the server according to the page conversion triggering instruction.
In a second aspect, a page transformation method is provided, which is used in a server, and the method includes:
receiving a page conversion request sent by a PC end, wherein the page conversion request is used for requesting to convert a preset PC page into a mobile end page;
loading a mobile end template according to the page conversion request;
loading and analyzing page content in the preset PC page;
filling the analyzed page content into the mobile terminal template to generate a mobile terminal page;
and returning the generated mobile terminal page.
Optionally, the page conversion request carries a page identifier of the preset PC page, or carries a page source code of the preset PC page.
Optionally, the loading the mobile terminal template according to the page conversion request includes:
and recording the mobile terminal template according to the template identification carried in the page conversion request.
Optionally, the loading and analyzing the page content in the preset PC page includes:
and loading and analyzing the page content in the preset PC page through the jsup.
In a third aspect, there is provided a page turning apparatus, the apparatus comprising a memory and a processor, the memory having at least one program instruction stored therein, and the processor implementing the method according to the first or second aspect by loading and executing the at least one program instruction.
In a fourth aspect, a computer storage medium is provided, in which at least one program instruction is stored, which is loaded and executed by a processor to implement the method according to the first or second aspect.
After the server receives the page conversion request, the page content is directly loaded and analyzed, the corresponding mobile terminal page is generated, and the mobile terminal page is returned, so that the problems of low page conversion efficiency and accuracy in the prior art are solved, and the effects of automatically realizing page conversion and improving page conversion efficiency and accuracy are achieved.
Meanwhile, the method and the device can be used for converting a single page, can also be used for converting a plurality of pages in batches, and can also be used for directly converting the source codes of the pages, so that the page conversion efficiency is further improved.
In addition, the PC page is analyzed by using a jsup tool, so that the analysis accuracy of different scenes and different page elements is solved.
The foregoing description is only an overview of the technical solutions of the present invention, and in order to make the technical solutions of the present invention more clearly understood and to implement them in accordance with the contents of the description, the following detailed description is given with reference to the preferred embodiments of the present invention and the accompanying drawings.
Drawings
Fig. 1 is a schematic structural diagram of an autonomous mobile chassis according to an embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
In addition, the technical features involved in the different embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
Referring to fig. 1, a flowchart of a method of page conversion according to an embodiment of the present application is shown, where as shown in fig. 1, the method includes:
101, a PC end receives a page conversion trigger instruction, wherein the page conversion trigger instruction is used for triggering conversion of a preset PC page into a mobile end page;
in actual implementation, the number of the preset PC pages may be one, and certainly, the user may also trigger batch conversion, at this time, the preset PC pages may include at least two pages, that is, this step includes:
and receiving a batch conversion trigger instruction for converting at least two preset PC pages into a mobile terminal.
For example, the user directly triggers the preset PC page to perform conversion, in a possible embodiment, the user may also copy the page source code of the preset PC page into the input box, and trigger page conversion by clicking the conversion control, that is, this step may include:
firstly, receiving a selection instruction for selecting a page source code of the preset PC page;
secondly, receiving a page conversion triggering instruction for triggering the conversion of the page source code into the mobile terminal page.
And 102, the PC terminal sends a page conversion request to a server according to the page conversion triggering instruction.
And the page conversion request is used for indicating the server to convert the preset PC page into a mobile terminal page. In actual implementation, the page translation request may carry a page identifier of a preset PC page, and when the preset PC pages include at least two pages, the page translation request may carry a page identifier of each PC page.
When the user triggers the conversion through the page source code, a page conversion request carrying the page source code may be generated, which is not limited herein.
In addition, in a possible embodiment, different web page templates may be set for different product lines, and when the user triggers page conversion, a mobile terminal template to be used may be selected, which means that this step may be preceded by: receiving a selection instruction for selecting a mobile terminal template; correspondingly, the method comprises the following steps: and sending a page conversion request carrying the template identifier of the mobile end template to the server according to the page conversion triggering instruction.
103, the server receives a page conversion request sent by the pc end;
step 104, the server loads a mobile terminal template according to the page conversion request;
after the server receives the page conversion request, the mobile terminal template can be loaded according to the page conversion request.
Specifically, in a possible embodiment, the server reads the template identifier carried in the page conversion request, and loads the mobile terminal template corresponding to the read template identifier.
The above is only exemplified by that the user selects the mobile terminal template, during actual implementation, the user may not need to select the template, and after receiving the page conversion request, the server directly loads the corresponding template according to the page identifier of the preset PC page carried in the page conversion request, which is not limited in this embodiment.
105, the server loads and analyzes the page content in the preset PC page;
optionally, the server may load and analyze the page content in the preset PC page through a jsup.
Optionally, the server may load the page content from the stored database, and parse and load the obtained page content through the jsup. The page content in the database is the content previously stored by the user. Optionally, after the user stores the page content in the server, when the user needs to perform page conversion, the user may input corresponding file directory information in the PC, and accordingly, the page conversion request carries the file directory information, and after the server receives the page conversion request, the server may load the corresponding page content according to the file directory information.
In addition, during actual implementation, the elements and the components of the page needing to be converted can be circularly analyzed through the jsup, and the content is stored in the memory in the analyzing process.
106, the server fills the analyzed page content into the mobile terminal template to generate a mobile terminal page;
and step 107, the server returns the generated mobile terminal page.
And 108, receiving the mobile terminal page returned by the server by the PC terminal.
In summary, after the server receives the page conversion request, the server directly loads and analyzes the page content, generates the corresponding mobile-side page, and returns the mobile-side page, so that the problems of low page conversion efficiency and accuracy in the prior art are solved, and the effects of automatically realizing page conversion and improving page conversion efficiency and accuracy are achieved.
Meanwhile, the method and the device can be used for converting a single page, can also be used for converting a plurality of pages in batches, and can also be used for directly converting the source codes of the pages, so that the page conversion efficiency is further improved.
In addition, the PC page is analyzed by using a jsup tool, so that the analysis accuracy of different scenes and different page elements is solved.
The application also provides a page conversion device, which comprises a memory and a processor, wherein at least one program instruction is stored in the memory, and the processor loads and executes the at least one program instruction to realize the method.
The present application further provides a computer storage medium having at least one program instruction stored therein, which is loaded and executed by a processor to implement the method as described above.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A page conversion method is used in a PC terminal, and the method comprises the following steps:
receiving a page conversion triggering instruction, wherein the page conversion triggering instruction is used for triggering the conversion of a preset PC page into a mobile terminal page;
sending a page conversion request to a server according to the page conversion triggering instruction, wherein the page conversion request is used for indicating the server to convert the preset PC page into a mobile terminal page;
and receiving the mobile terminal page returned by the server.
2. The method of claim 1, wherein receiving a page transition trigger instruction comprises:
and receiving a batch conversion trigger instruction for converting at least two preset PC pages into a mobile terminal.
3. The method of claim 1, wherein receiving a page transition trigger instruction comprises:
receiving a selection instruction for selecting the page source code of the preset PC page;
and receiving a page conversion triggering instruction for triggering the conversion of the page source code into the mobile terminal page.
4. The method of claim 1, further comprising:
receiving a selection instruction for selecting a mobile terminal template;
sending a page conversion request to a server according to the page conversion triggering instruction, wherein the page conversion request comprises:
and sending a page conversion request carrying the template identifier of the mobile end template to the server according to the page conversion triggering instruction.
5. A page conversion method is used in a server, and the method comprises the following steps:
receiving a page conversion request sent by a PC end, wherein the page conversion request is used for requesting to convert a preset PC page into a mobile end page;
loading a mobile end template according to the page conversion request;
loading and analyzing page content in the preset PC page;
filling the analyzed page content into the mobile terminal template to generate a mobile terminal page;
and returning the generated mobile terminal page.
6. The method according to claim 5, wherein the page translation request carries a page identifier of the predetermined PC page, or carries a page source code of the predetermined PC page.
7. The method according to claim 5, wherein the loading the mobile template according to the page conversion request comprises:
and recording the mobile terminal template according to the template identification carried in the page conversion request.
8. The method of claim 5, wherein the loading and parsing the page content in the default PC page comprises:
and loading and analyzing the page content in the preset PC page through the jsup.
9. A page turning apparatus comprising a memory having at least one program instruction stored therein and a processor, the processor being configured to implement the method of any one of claims 1 to 8 by loading and executing the at least one program instruction.
10. A computer storage medium having stored therein at least one program instruction which is loaded and executed by a processor to implement the method of any one of claims 1 to 8.
CN202111598855.5A 2021-12-24 2021-12-24 Page conversion method, device and storage medium Active CN114385290B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111598855.5A CN114385290B (en) 2021-12-24 2021-12-24 Page conversion method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111598855.5A CN114385290B (en) 2021-12-24 2021-12-24 Page conversion method, device and storage medium

Publications (2)

Publication Number Publication Date
CN114385290A true CN114385290A (en) 2022-04-22
CN114385290B CN114385290B (en) 2024-04-05

Family

ID=81197689

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111598855.5A Active CN114385290B (en) 2021-12-24 2021-12-24 Page conversion method, device and storage medium

Country Status (1)

Country Link
CN (1) CN114385290B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114995805A (en) * 2022-08-08 2022-09-02 安徽商信政通信息技术股份有限公司 Paperless official document handling method and paperless official document handling system of self-defined official document template

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101706821A (en) * 2009-12-10 2010-05-12 中兴通讯股份有限公司 Tag-based mobile internet page design system and method
CN102271159A (en) * 2011-07-28 2011-12-07 百度在线网络技术(北京)有限公司 Method and device for obtaining page data as well as external website plug-in unit
CN103051684A (en) * 2012-12-07 2013-04-17 百度在线网络技术(北京)有限公司 Method, system and device for converting website into Web App for displaying
CN103139258A (en) * 2011-11-30 2013-06-05 百度在线网络技术(北京)有限公司 Method and device and system for processing page access requests of mobile terminal
CN104158836A (en) * 2014-06-23 2014-11-19 浙江大学城市学院 Method for rendering mobile application interface through data
CN105095449A (en) * 2015-07-27 2015-11-25 福州盈展信息技术有限公司 Method for converting HTML webpage to mobile terminal page
CN106126517A (en) * 2016-05-31 2016-11-16 美通云动(北京)科技有限公司 The PC end application page is converted to the method and device of the mobile terminal application page
CN106815316A (en) * 2016-12-23 2017-06-09 北京奇虎科技有限公司 Method, device and mobile terminal that content of pages is shared
CN111291298A (en) * 2018-12-10 2020-06-16 航天信息股份有限公司 Page display method and device, electronic equipment and storage medium
CN112306620A (en) * 2020-12-24 2021-02-02 深圳市蓝凌软件股份有限公司 Multi-language loading method and device for user-defined form control
CN113050921A (en) * 2019-12-26 2021-06-29 中国移动通信集团江西有限公司 Webpage conversion method, device, storage medium and computer equipment
CN113568697A (en) * 2021-07-29 2021-10-29 山东浪潮通软信息科技有限公司 Method, system and medium for converting PC end page into mobile end page

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101706821A (en) * 2009-12-10 2010-05-12 中兴通讯股份有限公司 Tag-based mobile internet page design system and method
CN102271159A (en) * 2011-07-28 2011-12-07 百度在线网络技术(北京)有限公司 Method and device for obtaining page data as well as external website plug-in unit
CN103139258A (en) * 2011-11-30 2013-06-05 百度在线网络技术(北京)有限公司 Method and device and system for processing page access requests of mobile terminal
CN103051684A (en) * 2012-12-07 2013-04-17 百度在线网络技术(北京)有限公司 Method, system and device for converting website into Web App for displaying
CN104158836A (en) * 2014-06-23 2014-11-19 浙江大学城市学院 Method for rendering mobile application interface through data
CN105095449A (en) * 2015-07-27 2015-11-25 福州盈展信息技术有限公司 Method for converting HTML webpage to mobile terminal page
CN106126517A (en) * 2016-05-31 2016-11-16 美通云动(北京)科技有限公司 The PC end application page is converted to the method and device of the mobile terminal application page
CN106815316A (en) * 2016-12-23 2017-06-09 北京奇虎科技有限公司 Method, device and mobile terminal that content of pages is shared
CN111291298A (en) * 2018-12-10 2020-06-16 航天信息股份有限公司 Page display method and device, electronic equipment and storage medium
CN113050921A (en) * 2019-12-26 2021-06-29 中国移动通信集团江西有限公司 Webpage conversion method, device, storage medium and computer equipment
CN112306620A (en) * 2020-12-24 2021-02-02 深圳市蓝凌软件股份有限公司 Multi-language loading method and device for user-defined form control
CN113568697A (en) * 2021-07-29 2021-10-29 山东浪潮通软信息科技有限公司 Method, system and medium for converting PC end page into mobile end page

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
吴嘉惟: ""Web页面移动端适配系统的研究与实现"", 《中国优秀硕士学位论文全文数据库 信息科技辑》, 15 December 2020 (2020-12-15), pages 139 - 172 *
李婉茹等: ""视觉传达设计视角下手机端Web App的研究与实现"", 《电脑知识与技术》, 25 October 2021 (2021-10-25), pages 92 - 94 *
顾问等: ""基于jsoup的Web页面自适应转换系统的实现"", 《电子技术与软件工程》, 27 September 2017 (2017-09-27), pages 200 - 202 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114995805A (en) * 2022-08-08 2022-09-02 安徽商信政通信息技术股份有限公司 Paperless official document handling method and paperless official document handling system of self-defined official document template
CN114995805B (en) * 2022-08-08 2022-11-08 安徽商信政通信息技术股份有限公司 Paperless official document handling method and paperless official document handling system for custom official document template

Also Published As

Publication number Publication date
CN114385290B (en) 2024-04-05

Similar Documents

Publication Publication Date Title
CN108108162B (en) Application programming interface generation method and device
CN112650529B (en) System and method for configurable generation of mobile terminal APP codes
CN111930614B (en) Automatic testing method, device, equipment and medium
CN110727429B (en) Front-end page generation method, device and equipment
CN110990732A (en) Loading method, device and equipment based on webpage and storage medium
CN112818937B (en) Excel file identification method and device, electronic equipment and readable storage medium
CN110674083A (en) Workflow migration method, device, equipment and computer readable storage medium
CN111026669B (en) Test log management method, test log management device and storage medium
CN112632420A (en) Interface skipping method and device, storage medium and electronic device
CN114385290A (en) Page conversion method, device and storage medium
CN110019970A (en) Inventory downloads template creation method, device, terminal and readable storage medium storing program for executing
CN112269746A (en) Automatic testing method and related equipment
CN115757014A (en) Power consumption testing method and device
CN111832273A (en) Method and device for determining destination message, storage medium and electronic device
CN112988589A (en) Interface testing method, device and system
CN110221790B (en) Universal printing method and apparatus, analyzer, and storage medium
CN114189745B (en) Set top box software switching management method, system and computer device
CN113064627B (en) Service access data processing method, platform, terminal, equipment and system
US7869914B2 (en) Vehicle quality analyzing system and plural data management method
CN112905467A (en) Test case execution management method, device, equipment and storage medium
CN114168426A (en) Automated testing method and related equipment
CN110780983A (en) Task exception handling method and device, computer equipment and storage medium
US20080162063A1 (en) Vehicle Quality Analyzing System and Program File Management Method
CN118070075B (en) Data analysis method, device, electronic device and storage medium
CN114629788B (en) Configuration information updating method, system, storage medium and electronic device

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
GR01 Patent grant
GR01 Patent grant