CN112307398A - Method for automatically converting interface data into webpage and storage medium - Google Patents

Method for automatically converting interface data into webpage and storage medium Download PDF

Info

Publication number
CN112307398A
CN112307398A CN202011197405.0A CN202011197405A CN112307398A CN 112307398 A CN112307398 A CN 112307398A CN 202011197405 A CN202011197405 A CN 202011197405A CN 112307398 A CN112307398 A CN 112307398A
Authority
CN
China
Prior art keywords
interface
data
webpage
interface data
configuring
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
Application number
CN202011197405.0A
Other languages
Chinese (zh)
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.)
Guangzhou Lango Electronic Science and Technology Co Ltd
Original Assignee
Guangzhou Lango Electronic Science and Technology 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 Guangzhou Lango Electronic Science and Technology Co Ltd filed Critical Guangzhou Lango Electronic Science and Technology Co Ltd
Priority to CN202011197405.0A priority Critical patent/CN112307398A/en
Publication of CN112307398A publication Critical patent/CN112307398A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/986Document structures and storage, e.g. HTML extensions
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method for automatically converting interface data into a webpage and a storage medium, wherein the method comprises the following steps: configuring an interface access address, an interface request mode and an interface return data type through a visual editor; requesting an interface through a visual editor, and returning data types according to the interface to read interface data; selecting a plurality of webpage elements in a visual editor, configuring the attribute of each webpage element according to the interface data, and forming a configuration rule for configuring the interface data to the attribute of each webpage element; acquiring data of an interface to be transferred, and acquiring attributes of webpage elements corresponding to the data of the interface to be transferred based on a configuration rule; and generating a webpage display for the webpage element corresponding to the data of the interface to be transferred by using a dynamic webpage plug-in tool. The method can be directly sleeved in the corresponding relation between the interface data and the webpage attributes to generate the webpage, and the problem of low efficiency caused by the fact that a programmer needs to rewrite codes every time the interface data is converted into the webpage in the prior art is solved.

Description

Method for automatically converting interface data into webpage and storage medium
Technical Field
The invention relates to the technical field of internet, in particular to a method for automatically converting interface data into a webpage and a storage medium.
Background
With the rapid development of the internet, web browsing becomes more and more popular, and web generation becomes indispensable, in the prior art, most of the web generation processes are realized by writing codes by programmers, but when more and more data need to be converted into web pages, the codes are rewritten by the programmers each time, which is often difficult to realize, and the workload of the programmers is increased, and the efficiency is not high.
Disclosure of Invention
In view of the above technical problems, an object of the present invention is to provide a method and a storage medium for automatically converting interface data into a web page, which solve the problem of low efficiency caused by the need of rewriting codes by a programmer each time the interface data is converted into a web page in the prior art.
The invention adopts the following technical scheme:
compared with the prior art, the invention has the beneficial effects that:
according to the method for automatically converting the interface data into the webpage, the configuration rule for configuring the interface data to the attribute of each webpage element is formed, when the interface data to be converted is obtained, the corresponding relation between the interface data and the attribute of the webpage can be directly sleeved in according to the formed configuration rule, and a dynamic webpage plug-in tool is called to generate the webpage, so that the problem of low efficiency caused by the fact that a programmer needs to rewrite codes when the interface data is converted into the webpage in the prior art is solved.
Drawings
FIG. 1 is a schematic flow chart illustrating a first embodiment of a method for automatically converting interface data into a web page according to the present invention;
fig. 2 is a schematic flow chart illustrating a third embodiment of the method for automatically converting interface data into a web page according to the present invention.
Detailed Description
The present invention will be further described with reference to the accompanying drawings and specific embodiments, and it should be noted that, in the premise of no conflict, the following described embodiments or technical features may be arbitrarily combined to form a new embodiment:
the first embodiment is as follows:
a method for automatically converting interface data into a web page, as shown in fig. 1, includes:
step S1, configuring interface access address, interface request mode and interface return data type through visual editor;
step S2, interface is requested through the visual editor, and interface data is read according to the interface return data type;
s3, selecting a plurality of web page elements in the visual editor, configuring the attribute of each web page element according to the interface data, and forming a configuration rule for configuring the interface data to the attribute of each web page element;
specifically, the web page element may include a picture element, and/or a text element.
It should be understood that the web page elements of the present invention can be, but are not limited to, picture elements and text elements, and the web page elements are selected according to the customer's needs.
Specifically, the key value of the picture element includes a picture width and a picture height, a picture coordinate and a picture hierarchy attribute.
It should be understood that the key value of the picture element is only illustrated here, and is not limited.
Further, the step of configuring the attribute of each web page element according to the interface data specifically includes:
and respectively corresponding the key value and the value of the interface data to the key value and the value of the webpage element through a set function conversion relation.
And configuring the key value of the interface data into the key value of the webpage element so that the key value of the picture element and the key value of the text element respectively correspond to a certain key value of the interface data, and replacing the picture access path of the picture element with a value corresponding to the key value corresponding to the picture element in the interface data.
It can be understood that the key value of the interface data is configured into the key value of the web page element, so that the key value corresponding to each attribute of the web page element can be defined according to the interface data, and the value corresponding to each attribute of the web page element can also be defined according to the interface data, thereby forming a configuration rule for configuring the key value and the value of the web page element into the key value and the value of the web page element.
Step S4, acquiring data of the interface to be transferred, and acquiring the attribute of the webpage element corresponding to the data of the interface to be transferred based on the configuration rule; and generating a webpage display for the webpage element corresponding to the data of the interface to be transferred by using a dynamic webpage plug-in tool.
It should be noted that, in the present application, the data of the interface to be transferred refers to interface data that a user needs to convert into a web page display, the interface to be transferred is an interface for providing the data of the interface to be transferred, and the data of the interface to be transferred can be directly obtained through the interface to be transferred or can be indirectly requested to transfer through a background interface docking service; the interface data refers to interface data used by a user to form the configuration rule, and the interface refers to an interface used for providing the interface data used for forming the configuration rule, and can be directly obtained through the interface to be switched, or can indirectly request the switching interface through a background interface docking service.
In the implementation process, the dynamic webpage plug-in tools can be realized by adopting dynamic webpage plug-in tools such as Dreamwaveaver MX, Flash MX, Firwork MX and the like.
Example two:
the invention discloses a method for automatically converting interface data into a webpage, which comprises the following steps:
step S10, configuring interface access address, interface request mode and interface return data type through visual editor;
step S20, interface is requested through the visual editor, and interface data is read according to the interface return data type;
s30, selecting a plurality of web page elements in the visual editor, and configuring the attribute of each web page element according to the interface data;
step S31, adjusting the attributes of the webpage elements through the visual editing area to form configuration rules for configuring the interface data to the attributes of the webpage elements;
different from the first embodiment, the step of configuring the attribute of each web page element according to the interface data further includes: and adjusting the attributes of the webpage elements through the visual editing area.
And after the attributes of the webpage elements are adjusted in the visual editing area, a final configuration rule is formed.
Step S40, acquiring data of the interface to be transferred, and acquiring the attribute of the webpage element corresponding to the data of the interface to be transferred based on the configuration rule; and generating a webpage display for the webpage element corresponding to the data of the interface to be transferred by using a dynamic webpage plug-in tool.
Optionally, the interface and the interface to be switched are both single working data interfaces. When the interface and the interface to be switched are both single working data interfaces, the method of the invention can execute the steps.
Example three:
optionally, the interface and the interface to be transferred are both joint work data interfaces.
The method for automatically converting interface data into a webpage of the invention, as shown in fig. 2, comprises the following steps:
and S000, when the interface and the interface to be switched are both combined working data interfaces, updating the data of the interface and the interface to be switched at set time intervals.
It should be noted that the set time for updating the data of the interface and the interface to be transferred is the same, and is not processed differently.
S100, configuring an interface access address, an interface request mode and an interface return data type through a visual editor;
step S200, requesting an interface through a visual editor and reading interface data according to the type of returned data of the interface;
step S300, selecting a plurality of webpage elements in a visual editor, configuring the attribute of each webpage element according to interface data, and forming a configuration rule for configuring the interface data to the attribute of each webpage element;
step S400, the visual editing area reads interface data again every other set time, reconfigures the attribute of the webpage element according to the interface data which are read again, and updates the configuration rule for configuring the interface data to the attribute of each webpage element;
s500, acquiring data of an interface to be transferred, and acquiring attributes of webpage elements corresponding to the data of the interface to be transferred based on a configuration rule; and generating webpage elements corresponding to the data of the interface to be converted into webpage display by using a dynamic webpage plug-in tool, and updating the generated webpage display according to the updated configuration rule at set intervals.
The method of the step S1, the step S2 and the step S3 can be formed into software application running on the equipment in advance, namely, a configuration rule for configuring interface data to each webpage element attribute is formed, the interface data to be converted of single or combined working data is obtained when a third party interface is directly requested or a background interface is requested to carry out butt joint service, the corresponding relation between N element attributes and conversion functions which are visually edited by a user can be directly sleeved according to the formed configuration rule, then a dynamic webpage plug-in tool is called, html elements are dynamically spliced by using a JavaScript scripting language, and the webpage is drawn in real time.
The invention also provides a computer storage medium on which a computer program is stored, in which the method of the invention, if implemented in the form of software functional units and sold or used as a stand-alone product, can be stored. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer storage medium and used by a processor to implement the steps of the embodiments of the method. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer storage medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer storage media may include content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer storage media that does not include electrical carrier signals and telecommunications signals as subject to legislation and patent practice.
Various other modifications and changes may be made by those skilled in the art based on the above-described technical solutions and concepts, and all such modifications and changes should fall within the scope of the claims of the present invention.

Claims (10)

1. A method for automatically converting interface data into a webpage is characterized by comprising the following steps:
configuring an interface access address, an interface request mode and an interface return data type through a visual editor;
requesting an interface through a visual editor, and returning data types according to the interface to read interface data;
selecting a plurality of webpage elements in a visual editor, configuring the attribute of each webpage element according to the interface data, and forming a configuration rule for configuring the interface data to the attribute of each webpage element;
acquiring data of an interface to be transferred, and acquiring attributes of webpage elements corresponding to the data of the interface to be transferred based on a configuration rule; and generating a webpage display for the webpage element corresponding to the data of the interface to be transferred by using a dynamic webpage plug-in tool.
2. The method for automatically converting interface data into a web page according to claim 1, wherein the step of configuring the attributes of each web page element according to the interface data specifically comprises:
and respectively corresponding the key value and the value of the interface data to the key value and the value of the webpage element through a set function conversion relation.
3. The method for automatically converting interface data into web pages according to claim 1, wherein the web page elements comprise picture elements and/or text elements.
4. The method for automatically converting interface data into web pages according to claim 3, wherein the step of configuring the attributes of each web page element according to the interface data specifically comprises:
and configuring the key value of the interface data into the key value of the webpage element so that the key value of the picture element and the key value of the text element respectively correspond to a certain key value of the interface data, and replacing the picture access path of the picture element with a value corresponding to the key value corresponding to the picture element in the interface data.
5. The method of automatically converting interface data into web pages according to claim 1, wherein after the step of configuring the attributes of each web page element according to the interface data, the step of forming a configuration rule for configuring the interface data to the attributes of each web page element further comprises: and adjusting the attributes of the webpage elements through the visual editing area.
6. The method of automatically converting interface data into a web page of claim 1, wherein the interface and the interface to be converted are both a single working data interface.
7. The method for automatically converting interface data into a webpage according to claim 5, wherein when the interface and the interface to be converted are both joint working data interfaces, the interface data and the interface data to be converted are both updated at set time intervals.
8. The method for automatically converting interface data into a web page as claimed in claim 7, further comprising: and the visual editing area re-reads the interface data every other set time, re-configures the attributes of the webpage elements according to the re-read interface data, updates the configuration rule for configuring the interface data to the attributes of the webpage elements, and updates the generated webpage display by the dynamic webpage plug-in tool every other set time according to the updated configuration rule.
9. The method as claimed in claim 4, wherein the key values of the picture elements include picture width and height, picture coordinates and picture hierarchy attributes.
10. A computer storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements a method of automatically converting interface data into a web page as claimed in any one of claims 1 to 9.
CN202011197405.0A 2020-10-30 2020-10-30 Method for automatically converting interface data into webpage and storage medium Pending CN112307398A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011197405.0A CN112307398A (en) 2020-10-30 2020-10-30 Method for automatically converting interface data into webpage and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011197405.0A CN112307398A (en) 2020-10-30 2020-10-30 Method for automatically converting interface data into webpage and storage medium

Publications (1)

Publication Number Publication Date
CN112307398A true CN112307398A (en) 2021-02-02

Family

ID=74333438

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011197405.0A Pending CN112307398A (en) 2020-10-30 2020-10-30 Method for automatically converting interface data into webpage and storage medium

Country Status (1)

Country Link
CN (1) CN112307398A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113836450A (en) * 2021-11-30 2021-12-24 垒知科技集团四川有限公司 Data interface generation method for acquiring XPATH based on visual operation

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001040976A1 (en) * 1999-12-02 2001-06-07 Akira Technologies, Inc. Browser based web site generation tool and run time engine
CN104965691A (en) * 2014-04-18 2015-10-07 腾讯科技(深圳)有限公司 Method, apparatus and system for configuring page elements of a webpage
US20150347432A1 (en) * 2014-06-03 2015-12-03 Go Daddy Operating Company, LLC System and methods for auto-aligning website elements
CN110704325A (en) * 2019-10-09 2020-01-17 京东数字科技控股有限公司 Data processing method and device, computer storage medium and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001040976A1 (en) * 1999-12-02 2001-06-07 Akira Technologies, Inc. Browser based web site generation tool and run time engine
CN104965691A (en) * 2014-04-18 2015-10-07 腾讯科技(深圳)有限公司 Method, apparatus and system for configuring page elements of a webpage
US20150347432A1 (en) * 2014-06-03 2015-12-03 Go Daddy Operating Company, LLC System and methods for auto-aligning website elements
CN110704325A (en) * 2019-10-09 2020-01-17 京东数字科技控股有限公司 Data processing method and device, computer storage medium and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113836450A (en) * 2021-11-30 2021-12-24 垒知科技集团四川有限公司 Data interface generation method for acquiring XPATH based on visual operation

Similar Documents

Publication Publication Date Title
JP4643931B2 (en) Web page rendering mechanism using themes based on external programs
US9514115B2 (en) Method for creating form validation program and corresponding form interface according to result set metadata
EP1387290A2 (en) System and method for constraint-based document generation
US9619537B2 (en) Converting data objects from single- to multi-source database environment
CN106354483B (en) Data processing method and device and electronic equipment
US9971794B2 (en) Converting data objects from multi- to single-source database environment
US11222172B2 (en) System and method for reactive computing
CN112307398A (en) Method for automatically converting interface data into webpage and storage medium
CN113312033A (en) Template protocol generation and management method
CN116226112A (en) Data cleaning method and device, storage medium and electronic equipment
CN112926008B (en) Method, device, electronic equipment and storage medium for generating form page
CN110990011A (en) Data request method of automation interface
CN110286901B (en) CAD-based script generation method, system and storage medium
CN112800724A (en) Readable file export method of visual configuration template and related device
CN112560403A (en) Text processing method and device and electronic equipment
US7716653B2 (en) Configurable importers and resource writers for converting data into another format
Fujima et al. C3W: clipping, connecting and cloning for the Web
CN114356403A (en) Configuration data processing method, device and system based on low-code application development
CN112307721B (en) Method for quickly converting third-party interface data into customized form and storage medium
CN107844349B (en) Control method and device based on user interface
CN112949267A (en) Method and system for generating financial analysis chart
CN114553971B (en) Application framework design method, system, equipment and medium
CN109902275B (en) Method for customizing form and electronic equipment
KR102499832B1 (en) An online report creation system with query binding function
CN112346724A (en) Method for rapidly generating application display interface and storage medium

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Room 238, room 406, 1 Yichuang street, Huangpu District, Guangzhou, Guangdong 510700

Applicant after: Guangzhou langguo Electronic Technology Co.,Ltd.

Address before: 510700 15 / F, unit 1, building 2, Yunsheng Science Park, No. 11, Zhongmian Road, Huangpu District, Guangzhou City, Guangdong Province

Applicant before: GUANGZHOU LANGO ELECTRONIC SCIENCE & TECHNOLOGY Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210202