CN111399832B - Page editing method and device - Google Patents

Page editing method and device Download PDF

Info

Publication number
CN111399832B
CN111399832B CN202010153420.9A CN202010153420A CN111399832B CN 111399832 B CN111399832 B CN 111399832B CN 202010153420 A CN202010153420 A CN 202010153420A CN 111399832 B CN111399832 B CN 111399832B
Authority
CN
China
Prior art keywords
card
master
basic
page
template
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.)
Active
Application number
CN202010153420.9A
Other languages
Chinese (zh)
Other versions
CN111399832A (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202010153420.9A priority Critical patent/CN111399832B/en
Publication of CN111399832A publication Critical patent/CN111399832A/en
Application granted granted Critical
Publication of CN111399832B publication Critical patent/CN111399832B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the application provides a page editing method and device, which relate to the technical field of computers, and the method comprises the following steps: acquiring a page request instruction, wherein the page request instruction comprises a basic identifier of a basic card; obtaining a basic card corresponding to the basic identifier from a preset database, wherein the basic card and a master card are stored in the preset database; if the basic card comprises a first master mark of a first master card to be referred, acquiring the first master card corresponding to the first master mark from a preset database; the parameter values of the attributes in the basic card are rewritten into the first mother card to obtain a first card template; a first target page is generated based on the first card template. Based on the technical scheme provided by the embodiment of the application, the editing efficiency of the page is improved, and the maintenance cost of the page is reduced.

Description

Page editing method and device
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for editing a page.
Background
Today, pages of applications are card-based structures, i.e. pages of applications are composed of one or more card. For multiple pages, each page requires separate maintenance of a card list that includes multiple cards. When editing a page, each attribute of each card in the card list of the page is edited one by one.
However, there are a large number of very repeatable card's from page to page, which may differ only in the parameter values of the individual attributes. Therefore, the page is edited by adopting the mode, so that the page editing efficiency is lower, and the page maintenance cost is higher.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method and an apparatus for editing a page, so as to improve the efficiency of editing the page and reduce the maintenance cost of the page. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present application discloses a page editing method, where the method includes:
acquiring a page request instruction, wherein the page request instruction comprises a basic identifier of a basic card;
obtaining a basic card corresponding to the basic identifier from a preset database, wherein the basic card and a mother board card are stored in the preset database;
if the basic card comprises a first master mark of a first master card to be referred, acquiring the first master card corresponding to the first master mark from the preset database;
overwriting parameter values of the attributes in the basic card into the first mother card to obtain a first card template;
and generating a first target page based on the first card template.
Optionally, if the base card includes a first master identifier of a first master card to be referred to, the step of acquiring, from the preset database, the first master card corresponding to the first master identifier includes:
detecting whether the basic card comprises preset reference attributes or not;
if the preset reference attribute is included, acquiring a parameter value of the preset reference attribute to obtain a first master mark of a first master card to be referenced;
and acquiring a first mother board card corresponding to the first mother board identification from the preset database.
Optionally, the method further comprises:
and if the preset reference attribute is not included, taking the basic card as a second card template, and generating a second target page based on the second card template.
Optionally, the step of overwriting the parameter values of the attribute in the basic card to the first master card to obtain a first card template includes:
if the first mother board card comprises a second mother board mark of a second mother board card to be referred, acquiring a second mother board card corresponding to the second mother board mark from the preset database;
overwriting parameter values of the attributes in the basic card into the first mother card to obtain an intermediate card;
and overwriting the parameter values of the attributes in the intermediate card into the second mother card to obtain a first card template.
Optionally, the step of generating a first target page based on the first card template includes:
and filling target page data into the first card template to obtain a first target page.
Optionally, the method further comprises:
counting the utilization rate of each basic card;
and taking the basic card with the usage rate larger than a preset threshold value as a master card, and storing the basic card into the preset database.
In a second aspect, an embodiment of the present application discloses a page editing apparatus, including:
the first acquisition unit is used for acquiring a page request instruction, wherein the page request instruction comprises a basic identifier of a basic card;
the second acquisition unit is used for acquiring a basic card corresponding to the basic identifier from a preset database, wherein the basic card and the mother board card are stored in the preset database;
a third obtaining unit, configured to obtain, if the base card includes a first master identifier of a first master card to be referred to, a first master card corresponding to the first master identifier from the preset database;
the overwriting unit is used for overwriting the parameter values of the attributes in the basic card into the first master card to obtain a first card template;
and the generating unit is used for generating a first target page based on the first card template.
Optionally, the third obtaining unit includes:
the detection subunit is used for detecting whether the basic card comprises preset reference attributes or not;
the first acquisition subunit is used for acquiring a parameter value of the preset reference attribute if the preset reference attribute is included, so as to obtain a first master mark of a first master card to be referenced;
the second acquisition subunit is used for acquiring the first mother board card corresponding to the first mother board identifier from the preset database.
Optionally, the generating unit is specifically configured to take the base card as a second card template if the preset reference attribute is not included, and generate a second target page based on the second card template.
Optionally, the overwriting unit includes:
a third obtaining subunit, configured to obtain, if the first master card includes a second master identifier of a second master card that needs to be referred to, a second master card corresponding to the second master identifier from the preset database;
a first overwriting subunit, configured to overwrite the parameter values of the attributes in the basic card into the first master card, to obtain an intermediate card;
and the second overwriting subunit is used for overwriting the parameter values of the attributes in the intermediate card into the second master card to obtain the first card template.
Optionally, the generating unit is specifically configured to fill target page data into the first card template to obtain a first target page.
Optionally, the apparatus further includes:
the statistics unit is used for counting the utilization rate of each basic card;
and the storage unit is used for taking the basic card with the usage rate larger than the preset threshold value as a master card and storing the basic card into the preset database.
In a third aspect, an embodiment of the application discloses an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing any step of the page editing method provided in the first aspect when executing the program stored in the memory.
In a fourth aspect, embodiments of the present application disclose a computer readable storage medium having stored therein a computer program which, when executed by a processor, implements any of the steps of the page editing method provided in the first aspect.
In a fifth aspect, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform any of the steps of the page editing method provided in the first aspect above.
The beneficial effects of the embodiment of the application are that:
according to the technical scheme, the basic card and the master card are stored in the preset database, when the page is edited, the basic card and the first master card corresponding to the first master mark included in the basic card are obtained from the preset database, the parameter values of the attribute in the basic card are rewritten into the first master card, a first card template is obtained, and then the first target page is generated based on the first card template. Therefore, in the embodiment of the application, all the attributes in the first card template do not need to be edited, only a part of the attributes, namely the attributes in the basic card, are required to be edited, and other attributes multiplex the attributes of the first mother card, so that the number of the edited attributes is reduced, the editing efficiency of the page is improved, and the maintenance cost of the page is reduced.
Of course, not all of the above-described advantages need be achieved simultaneously in practicing any one of the products or methods of the present application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a page of an application provided in an embodiment of the present application;
fig. 2 is a schematic flow chart of a first method for editing a page according to an embodiment of the present application;
FIG. 3a is a schematic diagram of a base card according to an embodiment of the present disclosure;
FIG. 3b is a schematic diagram of a master card according to an embodiment of the present application;
FIG. 3c is a schematic illustration of a card template based on FIGS. 3a and 3 b;
fig. 4 is a second flowchart of a page editing method according to an embodiment of the present application;
FIG. 5 is another schematic view of a base card provided in an embodiment of the present application;
fig. 6 is a third flowchart of a page editing method according to an embodiment of the present application;
fig. 7 is a schematic diagram of a first structure of a page editing apparatus according to an embodiment of the present application;
fig. 8 is a schematic diagram of a second structure of the page editing apparatus according to the embodiment of the present application;
fig. 9 is a schematic diagram of a third structure of a page editing apparatus according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The pages of the application are composed of one or more carts, which may have a multi-level structure inside. As shown in fig. 1, a page (page) includes 2 cards, and a block (block) may be included in the card, and elements such as an image (image) and a button (button) may be included in the block. Each element in the card has specific properties such as data source, click event, jump mode, user behavior mode, etc. Currently, in performing page editing, a developer needs to edit each attribute of each card in a page. However, there are a large number of very repeatable card's from page to page, which may differ only in the parameter values of the individual attributes. Therefore, the page is edited by adopting the mode, so that the page editing efficiency is lower, and the page maintenance cost is higher.
In order to solve the above problems, the embodiments of the present application provide a page editing method, which can be applied to any electronic device or server.
The following describes a page editing method provided in the embodiment of the present application in detail with reference to specific embodiments. A method of page editing as shown in fig. 2, the method comprising the following steps.
Step 201, acquiring a page request instruction, wherein the page request instruction comprises a basic identifier of a basic card.
Step 202, obtaining a basic card corresponding to the basic identifier from a preset database, wherein the basic card and the mother board card are stored in the preset database.
In step 203, if the base card includes the first master identifier of the first master card to be referenced, the first master card corresponding to the first master identifier is obtained from a preset database.
And 204, overwriting the parameter values of the attributes in the basic card to the first mother card to obtain a first card template.
Step 205, a first target page is generated based on the first card template.
In the page editing method provided by the embodiment of the application, all the attributes in the first card template are not required to be edited, only a part of the attributes, namely the attributes in the basic card, are required to be edited, and the other attributes multiplex the attributes of the first mother card, so that the number of the edited attributes is reduced, the editing efficiency of the page is improved, and the maintenance cost of the page is reduced.
For ease of understanding, the following description uses the electronic device as an execution body, and is not intended to be limiting.
In step 201, the electronic device obtains a page request instruction when editing a page. The page request instruction may be obtained in a number of ways.
For example, a user may input a base identification of a base card to an electronic device. The electronic device generates a page request instruction based on the basic identification input by the user.
For another example, the other electronic device sends a page request instruction to the electronic device, and the electronic device obtains the page request instruction.
In the embodiment of the application, the basic card may include different attributes from other pages in the pages to be edited.
In step 202, a database, i.e., a preset database, is preset in the electronic device. The preset database stores basic cards and mother cards. The master card is a card with higher service function universality, that is, the attribute reusability of the master card is high. Each of the base card and the master card has its own unique identification. After the electronic equipment acquires the page request instruction, acquiring a basic identifier of the basic card from the page request instruction, and further acquiring the basic card corresponding to the basic identifier from a preset database.
In step 203, after the base card is obtained, if the base card includes the first master identifier of the first master card to be referred to, the electronic device obtains the first master card corresponding to the first master identifier from the preset database.
In step 204, after the base card and the first master card are obtained, the electronic device overwrites the parameter value of the attribute in the base card with the first master card as the base, that is, modifies the parameter value of the attribute in the first master card, which is the same as the attribute in the base card, into the parameter value of the attribute in the base card, and adds the attribute included in the base card but not included in the first master card and the parameter value of the attribute to the first master card, and at this time, the modified first master card is the first card template.
For example, the electronic device acquires the base card J1 as shown in fig. 3a, and acquires the master card M1 as shown in fig. 3 b. The master identification M1 (i.e., the first master identification) of the master card to be referenced included in the base card J1. The identification of the master card M1 is the identification M1, and thus, the master card M1 is the first master card of the base card J1. The electronic device overwrites the parameter values of the attributes in the base card J1 into the master card M1 to obtain a card template, as shown in fig. 3 c.
In this embodiment of the present application, the page request instruction may include basic identifiers of a plurality of basic cards, so that a plurality of first card templates may be obtained.
In step 205, the electronic device generates a first target page based on the first card template after obtaining the first card template. The electronic device may return the first target page to the front-end device, which presents the first target page.
In an optional embodiment, after the electronic device obtains the first card template, target page data such as card data may be filled into the first card module, so as to generate a final page code of the first target page of the service scene, and obtain the first target page. The electronic device may return the complete data of the first target page to the front-end device, which presents the first target page.
In one embodiment of the present application, as shown in fig. 4, the above step 203 may be refined to steps 2031 and 2032, which are specifically as follows.
In step 2031, if the base card includes the preset reference attribute, a parameter value of the preset reference attribute is obtained, so as to obtain a first master identifier of the first master card to be referenced.
Step 2032, obtaining a first master card corresponding to the first master identifier from a preset database.
In the embodiment of the application, the parameter value of the preset reference attribute is the master mark. By setting the preset reference attribute in the basic card, the first master mark of the first master card required to be referenced by the basic card can be accurately acquired, and then the card is accurately edited, so that a first target page is generated.
In step 2031, the electronic device detects whether a preset reference attribute is included in the base card. The preset reference attribute may be a ref attribute. If the basic card is detected to comprise the preset reference attribute, the basic card is required to multiplex the attribute in a certain mother board card, namely, the basic card is required to inherit the attribute in a certain mother board card, the electronic equipment acquires the parameter value of the preset reference attribute in the basic card, and the acquired parameter value is the first mother board identifier of the first mother board card required to be referenced by the basic card.
For example, in the base card shown in fig. 5, the parameter value in the ref field is d11, and d11 is the first master identifier of the first master card that the base card needs to reference.
In one embodiment of the present application, if the electronic device detects that the base card does not include the preset reference attribute, it indicates that the base card does not need to multiplex the attribute in the master card, that is, the base card does not need to inherit the attribute in the master card, and the electronic device uses the base card as a second card template, and generates the second target page based on the second card template. Specifically, the electronic device may fill card data and the like into the second card module, so as to generate a final page code of the second target page of the service scene, and obtain the second target page. The electronic device can return the complete data of the second target page to the front-end device, and the front-end device displays the second target page.
In step 2032, after acquiring the first master identifier, the electronic device may acquire, from the preset database, a master card identified as the first master identifier as the first master card. The subsequent electronic device may generate a first target page based on the first master card and the base card.
In one embodiment of the present application, as shown in fig. 6, the above step 204 may be refined into steps 2041, 2042, and 2043, which are specifically as follows.
In step 2041, if the first master card includes a second master identifier of a second master card to be referenced, acquiring a second master card corresponding to the second master identifier from a preset database.
And 2042, overwriting the parameter values of the attributes in the basic card to the first mother card to obtain an intermediate card.
And 2043, overwriting the parameter values of the attributes in the intermediate card to the second mother card to obtain a first card template.
In this embodiment of the present application, the page may be edited in a multi-level inheritance manner, that is, the base card may inherit the attribute in one master card, and the master card may inherit the attribute in another master card. Therefore, the attributes in the plurality of mother cards can be multiplexed at the same time, the number of the attributes manually edited by the user is further reduced, the editing efficiency of the page is improved, and the maintenance cost of the page is reduced.
In step 2041, the electronic device may detect whether a second master identification of a second master card that needs to be referenced is included in the first master card. In one example, the electronic device can detect whether the above-described preset reference attribute is included in the first master card. If the preset reference attribute is included, the electronic device can determine a second master identifier of the second master card which needs to be referenced in the first master card. If the preset reference attribute is not included, the electronic device can determine that the first master card does not include the second master identifier of the second master card needing to be referenced.
If the first mother card does not include the second mother mark of the second mother card to be referenced, the electronic device can overwrite the parameter value of the attribute in the basic card into the first mother card to obtain a first card template.
If the first master card includes a second master identifier of a second master card to be referred to, the electronic device may obtain, from a preset database, the second master card identified as the second master identifier. And the electronic equipment overwrites the parameter values of the attributes in the basic card into the first mother card to obtain an intermediate card, and then overwrites the parameter values of the attributes in the intermediate card into the second mother card to obtain a first card template.
In an alternative embodiment, after the second master card is acquired, the electronic device may further continue to detect whether the second master card includes a third master identifier of a third master card that needs to be referenced.
If the fact that the second mother board card does not comprise the third mother board mark of the third mother board card to be cited is detected, the electronic equipment overwrites the parameter value of the attribute in the basic card into the first mother board card to obtain an intermediate card, and then overwrites the parameter value of the attribute in the intermediate card into the second mother board card to obtain the first card template.
If the third master mark of the third master card needing to be cited is detected to be included in the second master card, the electronic equipment detects whether the fourth master mark of the fourth master card needing to be cited is included in the third master card. For specific operation of the third master card, reference is then made to the description of the first master card and the second master card above. And will not be described in detail herein.
In the embodiment of the application, the page is edited in a multistage inheritance mode, so that the number of attributes manually edited by a user is further reduced, the editing efficiency of the page is improved, and the maintenance cost of the page is reduced.
In one embodiment of the present application, the electronic device may count the usage rate of each base card in real time, take the base card with the usage rate greater than the preset threshold as the master card, and store the master card in the preset database. The preset threshold value can be set according to actual requirements.
In the embodiment of the application, the electronic device updates the master card in the preset database in real time, so that the master card with the use ratio larger than the preset threshold value, namely, the master card with high universality is stored in the preset database, and the editing efficiency of pages is further guaranteed.
Corresponding to the page editing method, the embodiment of the application also provides a page editing device. Referring to fig. 7, fig. 7 is a schematic structural diagram of a page editing apparatus according to an embodiment of the present application. The device comprises: a first acquisition unit 701, a second acquisition unit 702, a third acquisition unit 703, an overwriting unit 704, and a generation unit 705.
The first obtaining unit 701 is configured to obtain a page request instruction, where the page request instruction includes a basic identifier of a basic card;
a second obtaining unit 702, configured to obtain a basic card corresponding to the basic identifier from a preset database, where the basic card and the master card are stored in the preset database;
a third obtaining unit 703, configured to obtain, if the base card includes a first master identifier of a first master card to be referred to, a first master card corresponding to the first master identifier from a preset database;
an overwriting unit 704, configured to overwrite the parameter values of the attributes in the base card into the first master card, to obtain a first card template;
and a generating unit 705, configured to generate a first target page based on the first card template.
In an alternative embodiment, as shown in fig. 8, the third obtaining unit 703 may include:
a detection subunit 7031, configured to detect whether a preset reference attribute is included in the basic card;
a first obtaining subunit 7032, configured to obtain, if the preset reference attribute is included, a parameter value of the preset reference attribute, so as to obtain a first master identifier of a first master card that needs to be referred to;
the second obtaining subunit 7033 is configured to obtain, from a preset database, a first master card corresponding to the first master identifier.
In an alternative embodiment, the generating unit 705 may be further configured to use the base card as the second card template if the preset reference attribute is not included, and generate the second target page based on the second card template.
In an alternative embodiment, as shown in fig. 9, the overwriting unit 704 may include:
a third obtaining subunit 7041, configured to obtain, if the first master card includes a second master identifier of a second master card that needs to be referred to, a second master card corresponding to the second master identifier from a preset database;
a first overwriting subunit 7042, configured to overwrite the parameter values of the attributes in the basic card into the first master card, so as to obtain an intermediate card;
the second overwriting subunit 7043 is configured to overwrite the parameter values of the attribute in the intermediate card into the second master card, so as to obtain the first card template.
In an alternative embodiment, the generating unit 705 may be specifically configured to fill the target page data into the first card template to obtain the first target page.
In an optional embodiment, the above page editing apparatus may further include:
the statistics unit is used for counting the utilization rate of each basic card;
and the storage unit is used for taking the basic card with the usage rate larger than the preset threshold value as a master card and storing the basic card into a preset database.
In the page editing device provided by the embodiment of the application, the basic card and the master card are stored in the preset database, when the page is edited, the basic card and the first master card corresponding to the first master mark included in the basic card are obtained from the preset database, the parameter values of the attribute in the basic card are rewritten into the first master card, a first card template is obtained, and then the first target page is generated based on the first card template. Therefore, in the embodiment of the application, all the attributes in the first card template do not need to be edited, only a part of the attributes, namely the attributes in the basic card, are required to be edited, and other attributes multiplex the attributes of the first mother card, so that the number of the edited attributes is reduced, the editing efficiency of the page is improved, and the maintenance cost of the page is reduced.
Corresponding to the above page editing method, the embodiment of the present application further provides an electronic device, as shown in fig. 10, including a processor 1001, a communication interface 1002, a memory 1003, and a communication bus 1004, where the processor 1001, the communication interface 1002, and the memory 1003 complete communication with each other through the communication bus 1004;
a memory 1003 for storing a computer program;
the processor 1001 is configured to execute a program stored in the memory 1003, and implement the following steps:
acquiring a page request instruction, wherein the page request instruction comprises a basic identifier of a basic card;
obtaining a basic card corresponding to the basic identifier from a preset database, wherein the basic card and a master card are stored in the preset database;
if the basic card comprises a first master mark of a first master card to be referred, acquiring the first master card corresponding to the first master mark from a preset database;
the parameter values of the attributes in the basic card are rewritten into the first mother card to obtain a first card template;
a first target page is generated based on the first card template.
In the electronic device provided by the embodiment of the application, the basic card and the master card are stored in the preset database, when the page is edited, the basic card and the first master card corresponding to the first master mark included in the basic card are obtained from the preset database, the parameter values of the attribute in the basic card are rewritten into the first master card, a first card template is obtained, and then the first target page is generated based on the first card template. Therefore, in the embodiment of the application, all the attributes in the first card template do not need to be edited, only a part of the attributes, namely the attributes in the basic card, are required to be edited, and other attributes multiplex the attributes of the first mother card, so that the number of the edited attributes is reduced, the editing efficiency of the page is improved, and the maintenance cost of the page is reduced.
The communication bus mentioned above for the electronic devices may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processing, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In yet another embodiment provided herein, there is also provided a computer readable storage medium having stored therein a computer program which, when executed by a processor, implements any of the steps of the page editing method described above.
In yet another embodiment provided herein, there is also provided a computer program product containing instructions that, when run on a computer, cause the computer to perform any of the steps of the above page editing method.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), etc.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for apparatus, electronic devices, and readable storage medium embodiments, the description is relatively simple as it is substantially similar to method embodiments, with reference to the section descriptions of method embodiments being merely pertinent.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the scope of the present application. Any modifications, equivalent substitutions, improvements, etc. that are within the spirit and principles of the present application are intended to be included within the scope of the present application.

Claims (14)

1. A method of page editing, the method comprising:
when editing a page, acquiring a page request instruction, wherein the page request instruction comprises a basic identifier of a basic card;
obtaining a basic card corresponding to the basic identifier from a preset database, wherein the basic card and a mother board card are stored in the preset database;
if the basic card comprises a first master mark of a first master card to be referred, acquiring the first master card corresponding to the first master mark from the preset database;
overwriting parameter values of the attributes in the basic card into the first mother card to obtain a first card template;
generating a first target page based on the first card template;
the step of overwriting the parameter values of the attributes in the basic card to the first mother card to obtain a first card template comprises the following steps:
and modifying the parameter value of the attribute which is the same as the basic card in the first mother card into the parameter value of the attribute in the basic card, and adding the attribute which is included in the basic card but not included in the first mother card and the parameter value of the attribute into the first mother card to obtain a first card template.
2. The method according to claim 1, wherein the step of acquiring, if the base card includes a first master identifier of a first master card to be referenced, a first master card corresponding to the first master identifier from the preset database includes:
detecting whether the basic card comprises preset reference attributes or not;
if the preset reference attribute is included, acquiring a parameter value of the preset reference attribute to obtain a first master mark of a first master card to be referenced;
and acquiring a first mother board card corresponding to the first mother board identification from the preset database.
3. The method according to claim 2, wherein the method further comprises:
and if the preset reference attribute is not included, taking the basic card as a second card template, and generating a second target page based on the second card template.
4. The method of claim 1, wherein the step of overwriting parameter values of the attributes in the base card to the first master card to obtain a first card template comprises:
if the first mother board card comprises a second mother board mark of a second mother board card to be referred, acquiring a second mother board card corresponding to the second mother board mark from the preset database;
overwriting parameter values of the attributes in the basic card into the first mother card to obtain an intermediate card;
and overwriting the parameter values of the attributes in the intermediate card into the second mother card to obtain a first card template.
5. The method of claim 1, wherein the step of generating a first target page based on the first card template comprises:
and filling target page data into the first card template to obtain a first target page.
6. The method according to any one of claims 1-5, further comprising:
counting the utilization rate of each basic card;
and taking the basic card with the usage rate larger than a preset threshold value as a master card, and storing the basic card into the preset database.
7. A page editing apparatus, the apparatus comprising:
the first acquisition unit is used for acquiring a page request instruction when editing a page, wherein the page request instruction comprises a basic identifier of a basic card;
the second acquisition unit is used for acquiring a basic card corresponding to the basic identifier from a preset database, wherein the basic card and the mother board card are stored in the preset database;
a third obtaining unit, configured to obtain, if the base card includes a first master identifier of a first master card to be referred to, a first master card corresponding to the first master identifier from the preset database;
the overwriting unit is used for overwriting the parameter values of the attributes in the basic card into the first master card to obtain a first card template;
the generation unit is used for generating a first target page based on the first card template;
the overwriting unit is specifically configured to modify a parameter value of the first mother card, which has the same attribute as the basic card, into a parameter value of the attribute in the basic card, and add the attribute and the parameter value of the attribute, which are included in the basic card but not included in the first mother card, to the first mother card, so as to obtain a first card template.
8. The apparatus of claim 7, wherein the third acquisition unit comprises:
the detection subunit is used for detecting whether the basic card comprises preset reference attributes or not;
the first acquisition subunit is used for acquiring a parameter value of the preset reference attribute if the preset reference attribute is included, so as to obtain a first master mark of a first master card to be referenced;
the second acquisition subunit is used for acquiring the first mother board card corresponding to the first mother board identifier from the preset database.
9. The apparatus of claim 8, wherein the generating unit is further configured to use the base card as a second card template if the preset reference attribute is not included, and generate a second target page based on the second card template.
10. The apparatus of claim 7, wherein the overwriting unit comprises:
a third obtaining subunit, configured to obtain, if the first master card includes a second master identifier of a second master card that needs to be referred to, a second master card corresponding to the second master identifier from the preset database;
a first overwriting subunit, configured to overwrite the parameter values of the attributes in the basic card into the first master card, to obtain an intermediate card;
and the second overwriting subunit is used for overwriting the parameter values of the attributes in the intermediate card into the second master card to obtain the first card template.
11. The apparatus according to claim 7, wherein the generating unit is specifically configured to fill target page data into the first card template to obtain a first target page.
12. The apparatus according to any one of claims 7-11, wherein the apparatus further comprises:
the statistics unit is used for counting the utilization rate of each basic card;
and the storage unit is used for taking the basic card with the usage rate larger than the preset threshold value as a master card and storing the basic card into the preset database.
13. An electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are in communication with each other through the communication bus; the memory is used for storing a computer program; the processor is configured to execute a program stored in the memory, and implement the method steps of any one of claims 1 to 6.
14. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored therein a computer program which, when executed by a processor, implements the method steps of any of claims 1-6.
CN202010153420.9A 2020-03-06 2020-03-06 Page editing method and device Active CN111399832B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010153420.9A CN111399832B (en) 2020-03-06 2020-03-06 Page editing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010153420.9A CN111399832B (en) 2020-03-06 2020-03-06 Page editing method and device

Publications (2)

Publication Number Publication Date
CN111399832A CN111399832A (en) 2020-07-10
CN111399832B true CN111399832B (en) 2024-03-08

Family

ID=71434150

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010153420.9A Active CN111399832B (en) 2020-03-06 2020-03-06 Page editing method and device

Country Status (1)

Country Link
CN (1) CN111399832B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113050939A (en) * 2021-03-24 2021-06-29 上海哔哩哔哩科技有限公司 Page generation method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106293671A (en) * 2015-06-04 2017-01-04 阿里巴巴集团控股有限公司 A kind of method and device of formation component template
CN109697093A (en) * 2018-08-20 2019-04-30 深圳壹账通智能科技有限公司 Card generation method, card generating means, mobile terminal and readable storage medium storing program for executing
CN110321123A (en) * 2019-06-05 2019-10-11 上海易点时空网络有限公司 Visual layout's management system and management method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7389471B2 (en) * 2003-06-11 2008-06-17 Microsoft Corporation Utilizing common layout and functionality of multiple web pages
DE102013203831A1 (en) * 2012-03-06 2013-09-12 Wixpress Ltd Method and system for master page based integrated editing and dynamic layout activation

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106293671A (en) * 2015-06-04 2017-01-04 阿里巴巴集团控股有限公司 A kind of method and device of formation component template
CN109697093A (en) * 2018-08-20 2019-04-30 深圳壹账通智能科技有限公司 Card generation method, card generating means, mobile terminal and readable storage medium storing program for executing
CN110321123A (en) * 2019-06-05 2019-10-11 上海易点时空网络有限公司 Visual layout's management system and management method

Also Published As

Publication number Publication date
CN111399832A (en) 2020-07-10

Similar Documents

Publication Publication Date Title
WO2018205730A1 (en) Method and device for obtaining smart contract interface in blockchain
CN108984388B (en) Method and terminal equipment for generating automatic test case
CN111428462B (en) Communication protocol template construction method and terminal equipment
CN108536745B (en) Shell-based data table extraction method, terminal, equipment and storage medium
CN107247665B (en) Method and system for testing C interface function
CN111026392A (en) Method and device for generating guide page and electronic equipment
CN106250110B (en) Method and device for establishing model
CN111428978A (en) Subsidy calculation method and device, electronic equipment and storage medium
CN110543450A (en) Electronic document generation method and device, computer equipment and storage medium
CN111124382A (en) Attribute assignment method and device in Java and server
CN109558145B (en) Installation package volume optimization method and device for android application
CN111399832B (en) Page editing method and device
CN111399849B (en) Method and system for determining application program installation package
CN113407254A (en) Form generation method and device, electronic equipment and storage medium
CN111061468B (en) Mapping method and device
CN109408035B (en) Flow configuration method, storage medium and server of business system
CN113238852B (en) Task allocation method and device, electronic equipment and storage medium
CN111124627A (en) Method, device, terminal and storage medium for determining application program caller
CN115268846A (en) Method and device for adding attribute information and computer readable storage medium
US20210326130A1 (en) Scale calculation apparatus and computer readable medium
CN111124579B (en) Special effect rendering method and device, electronic equipment and storage medium
CN110704742B (en) Feature extraction method and device
CN113722321A (en) Data export method and device and electronic equipment
CN110119351B (en) Test case execution method and device
US20070156775A1 (en) Metadata transformation in copy and paste scenarios between heterogeneous applications

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