CN114218235A - Page text updating method and device, electronic equipment and storage medium - Google Patents

Page text updating method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114218235A
CN114218235A CN202111328935.9A CN202111328935A CN114218235A CN 114218235 A CN114218235 A CN 114218235A CN 202111328935 A CN202111328935 A CN 202111328935A CN 114218235 A CN114218235 A CN 114218235A
Authority
CN
China
Prior art keywords
page
page text
text
target
updating
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
CN202111328935.9A
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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202111328935.9A priority Critical patent/CN114218235A/en
Publication of CN114218235A publication Critical patent/CN114218235A/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/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • 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
    • 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

Landscapes

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

Abstract

The disclosure provides a method and a device for updating a page text, an electronic device and a storage medium, and relates to the technical field of intelligent analysis, in particular to the technical field of text processing. The updating method of the page text comprises the following steps: receiving a page text updating request, wherein the updating request comprises an identifier of a page where a target page text to be updated is located and page parameters; acquiring a hypertext markup language format file corresponding to a page parameter from a code file corresponding to the page identifier; analyzing a file in a hypertext markup language format to obtain a historical page text corresponding to a page parameter; labeling the target page text based on the historical page text to obtain the labeled target page text; and updating the file in the hypertext markup language format according to the target page text with the label so as to replace the historical page text with the target page text. Therefore, the efficiency and the accuracy of updating the page text are improved.

Description

Page text updating method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of intelligent analysis technologies, and in particular, to a method and an apparatus for updating a page text, an electronic device, and a storage medium.
Background
With the rapid development of internet technology, the financial industry is increasingly combined with the internet. At present, loan contracts, agreements and the like in the financial industry are usually stored in an electronic system in the form of page texts, and corresponding files can be obtained by performing format conversion, storage, export and other operations on the page texts. In a real-world scenario, changes such as revisions, etc. are usually made to files, so that page texts in an electronic system are also modified accordingly. In the prior art, contents are changed by manually comparing and marking files, and developers correspondingly change page texts according to the marked contents. The mode is mainly realized through manual operation, the time spent is long, and the efficiency is low. Therefore, the method has great significance in researching how to realize quick updating of the page text.
Disclosure of Invention
The disclosure provides a method and a device for updating a page text, an electronic device and a storage medium, which are used for at least solving the problems of long time and low efficiency of updating the page text in the related art. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a method for updating a page text, including:
receiving a page text updating request, wherein the updating request comprises an identification of a page where a target page text to be updated is located and a page parameter corresponding to the target page text in the page;
acquiring a hypertext markup language format file corresponding to the page parameter from a code file corresponding to the page identifier;
analyzing the file in the hypertext markup language format to obtain a historical page text corresponding to the page parameter;
labeling the target page text based on the historical page text to obtain a labeled target page text;
and updating the file in the hypertext markup language format according to the target page text with the label so as to replace the historical page text with the target page text.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for updating a page text, including:
the device comprises a receiving module, a processing module and a display module, wherein the receiving module is used for receiving a page text updating request, and the updating request comprises an identification of a page where a target page text to be updated is located and a page parameter corresponding to the target page text in the page;
the acquisition module is used for acquiring a hypertext markup language format file corresponding to the page parameter from a code file corresponding to the page identifier;
the analysis module is used for analyzing the file in the hypertext markup language format so as to obtain a historical page text corresponding to the page parameter;
the marking module is used for marking the target page text based on the historical page text so as to obtain the target page text with marks;
and the updating module is used for updating the file in the hypertext markup language format according to the target page text with the label so as to replace the historical page text with the target page text.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method according to the embodiment of the first aspect of the disclosure.
According to a fourth aspect of the present disclosure, there is provided a computer-readable storage medium, wherein instructions, when executed by a processor of an electronic device, enable the electronic device to perform the method as defined in the first aspect of the present disclosure.
According to a fifth aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the method as described in the embodiments of the first aspect of the present disclosure.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
firstly, receiving a page text updating request, wherein the updating request comprises an identification of a page where a target page text to be updated is located and a page parameter corresponding to the target page text in the page; then, acquiring a hypertext markup language format file corresponding to the page parameter from a code file corresponding to the page identifier; then analyzing the file in the hypertext markup language format to obtain historical page texts corresponding to the page parameters; then, labeling the target page text based on the historical page text to obtain the labeled target page text; and finally, updating the file in the hypertext markup language format according to the target page text with the label so as to replace the historical page text with the target page text. Therefore, the file in the hypertext markup language format is obtained from the code file corresponding to the target page text, and the corresponding historical page text is obtained according to the file in the hypertext markup language format, so that the target page text is automatically compared, labeled and updated based on the historical page text, the labor cost and the time cost for updating the page text are saved, and the efficiency for updating the page text is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
Fig. 1 is a flowchart illustrating a method for updating page text according to a first embodiment of the present disclosure;
fig. 2 is a flowchart illustrating a method for updating page text according to a second embodiment of the disclosure;
fig. 3 is a block diagram illustrating an apparatus for updating a page text according to a third embodiment of the present disclosure;
fig. 4 is a block diagram of an electronic device for implementing the page text updating method according to the embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar users and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
It should be noted that internet finance refers to a novel financial business mode in which a traditional financial institution and an internet enterprise realize fund integration, payment, investment and information intermediary service by using an internet technology and an information communication technology. With the rapid development of the internet industry in China and the remarkable improvement of the national economic level, the traditional financial industry in China is also increasingly combined with the internet following the era. Through the internet technology, the economic activity forms of payment, investment, loan and the like are also changed greatly, and various modes of online and offline combination, online and the like are derived from the original traditional offline.
In order to avoid adverse events such as legal disputes and the like of financial services, it is imperative to strengthen internet financial supervision, wherein the improvement of related contracts, agreements and the like is an indispensable important part in the supervision. Therefore, changes in contracts, agreements, and the like become a norm of reinforcement for internet financial regulation. Because the contracts, agreements and the like in the financial industry are usually stored in the system in the form of codes, the contract change is accompanied by the code change, the code change has strong dependence on manual comparison and marking, the manual comparison takes long time, the efficiency is low, and the error rate is high. Therefore, the efficiency and the accuracy rate of updating the page text are improved by realizing the automatic comparison and marking of the page text.
The following describes a method, an apparatus, an electronic device, and a storage medium for updating a page text according to the present disclosure with reference to the drawings.
Fig. 1 is a flowchart illustrating a method for updating page text according to a first embodiment of the present disclosure.
The embodiment of the disclosure is exemplified by the method for updating the page text being configured in the device for updating the page text, and the device for updating the page text can be applied to any electronic equipment, so that the electronic equipment can execute the function of updating the page text. The electronic devices may include, but are not limited to, terminals, server terminals, and the like.
As shown in fig. 1, the method for updating the page text may include the following steps.
Step S11, receiving a page text updating request, where the updating request includes an identifier of a page where the target page text to be updated is located and a page parameter corresponding to the target page text in the page.
The page text may be any type of text that is presented in the form of a page in the electronic system. For example, the interface may be a browsing interface in a front-end system, or may be a web page, etc., which is not limited in this disclosure.
It will be appreciated that in order to determine the text content, the page text may be an electronic document, a paper document, etc. in a real-world scenario. When the actual file content is changed according to the actual need, the page text in the electronic system is also changed correspondingly.
Therefore, the page text updating request can be generated by the electronic system, so that the page text updating device updates the current page text in the electronic system according to the page text updating request.
It should be noted that there are usually a plurality of page texts stored in the electronic system. In order to determine the target page text to be updated, the page text updating request may include an identifier of a page where the target page text is located and a page parameter corresponding to the target page text in the page.
It should be noted that, for each page in the electronic system, the page may be identified for distinction. For each page text contained in a page, a distinction can be made by means of a page parameter.
The page parameter may be a unique identifier corresponding to the page text, or a storage location of the page text, which is not limited in this disclosure.
For example, when the page text is a web page, the page parameter may be a URL address (Uniform Resource Locator). Or, when the page text is an electronic contract, the page parameter may be a contract name, a contract code, and the like.
Step S12, obtaining the hypertext markup language format file corresponding to the page parameter from the code file corresponding to the page identifier.
The code file is a result file obtained when a developer develops the page text by using a front-end development framework. The format or type of code file may be determined according to a development framework used by a developer, which is not limited by this disclosure.
For example, when a developer develops page text using the Vue framework, the resulting code file may be the vue file. Wherein Vue is one of the current mainstream development frameworks, vue file, is a custom file type, describing a Vue component with HTML-like syntax.
It should be noted that, since the code file is generated based on the front-end development framework, the code file is usually presented in the form of code. In order to determine the difference between the target page text to be updated and the historical page text, the historical page text needs to be generated according to the code file, so that the historical page text is compared with the target page text to be updated.
It will be appreciated that the code file may comprise a plurality of portions. For example, a module for controlling display of text content (e.g., text content, etc.), a module for controlling display of content style (e.g., color, size, transparency), etc. may be included. While when updating the page text, only the content of the page text may be compared.
Therefore, the code module of the preset type can be obtained from the code file, and the code module of the preset type is analyzed to obtain the historical page text corresponding to the page parameter. The preset type code module may be a module for controlling display of text content in a code file.
For example, when the user interface file is an vue file, three types of top-level language blocks < template >, < script >, and < style > are included. These three parts represent html, js, css, respectively. Wherein the < template > html module controls the front end page to display content. Thus, the preset type of code module may be a < template > module.
Among them, hypertext Markup Language (HTML) is a Markup Language. It includes a series of tags by which the format of the document on the page can be unified, i.e. the tags determine how to display the contents of text, pictures, composition, etc. on the page.
Therefore, in the embodiment of the disclosure, the code file can be converted into a file in a hypertext markup language format so as to obtain page text in a specific format. For example, a function method for exporting an html file can be called, and text content in the code file is exported and stored locally in an html format.
The page parameters of the page text may also include markup parameters for deriving the html format file. That is, according to the page parameters of the page text, the corresponding hypertext markup language formatted file can be obtained.
For example, when the page parameter includes an export markup parameter, a function method of exporting a hypertext markup language format file may be called to export a code file in the current system and store the code file in the hypertext markup language format to the local.
Step S13, parsing the html document to obtain a historical page text corresponding to the page parameter.
It will be appreciated that the hypertext markup language formatted file is converted from a code file corresponding to the page text. Therefore, by analyzing the file in the hypertext markup language format, the corresponding page text can be obtained.
The historical page text can be page text stored in the current system to be distinguished from the target page text.
It should be noted that when parsing the html format file, the obtained page text may include other elements besides text, such as a confirmation button.
Therefore, redundant parts in the hypertext markup language format file can be deleted firstly, and then the modified file is saved as a file with the format consistent with the target page text format to be updated, so that the historical page text corresponding to the page parameters is obtained.
And step S14, labeling the target page text based on the historical page text to obtain the labeled target page text.
The target page text can be a page text modified according to actual needs. The target page text can be used as a reference for updating the historical page text.
For example, the historical page text may be a loan contract of version V1.0, and the target page text may be a loan contract modified by revising the loan contract of version V1.0.
Further, by comparing the history page text and the target page text, a difference portion between the history page text and the target page text can be determined. And labeling the target page text according to the difference part of the target page text and the target page text to obtain the labeled target page text.
And step S15, updating the file in the hypertext markup language format according to the target page text with the label so as to replace the historical page text with the target page text.
It can be understood that the hypertext markup language formatted file can be updated according to the markup information of the target page text. Namely, the file in the hypertext markup language format is changed into the file with the same content as the target page text, thereby realizing the update of the page text in the system.
In the embodiment of the disclosure, a page text updating request is received, wherein the updating request comprises an identifier of a page where a target page text to be updated is located and a page parameter corresponding to the target page text in the page; then, acquiring a hypertext markup language format file corresponding to the page parameter from a code file corresponding to the page identifier; then analyzing the file in the hypertext markup language format to obtain historical page texts corresponding to the page parameters; then, labeling the target page text based on the historical page text to obtain the labeled target page text; and finally, updating the file in the hypertext markup language format according to the target page text with the label so as to replace the historical page text with the target page text. Therefore, the file in the hypertext markup language format is obtained from the code file corresponding to the target page text, and the corresponding historical page text is obtained according to the file in the hypertext markup language format, so that the target page text is automatically compared, labeled and updated based on the historical page text, the labor cost and the time cost for updating the page text are saved, and the efficiency for updating the page text is improved.
Fig. 2 is a flowchart illustrating a method for updating page text according to a second embodiment of the disclosure. As shown in fig. 2, the method for updating the page text may include the following steps.
In step S21, in response to receiving the page open request, the page parameters included in the open request are determined.
It should be noted that one service system may have multiple functions. For example, the banking system may include a loan function, a financial product transaction function, and the like.
Therefore, when different function modules need to be used, a page opening request can be sent to the business system, so that the business system opens the corresponding function page.
The page open request may include specific function parameters. For example, loan process code, financial product transaction process code, etc. may be included.
In the embodiment of the disclosure, when the change of the page text needs to be executed, the page parameter may be added to the page opening request. Therefore, when the page text updating device receives a page opening request, the page parameters can be obtained from the page opening request.
The page parameter may include a page text update code, so that the page text update apparatus enters the page text update process after receiving the page open request.
In addition, the page parameter may further include a text identifier corresponding to the page text to be updated, so that the updating device of the page text may obtain the corresponding page text according to the text identifier.
For example, the page parameter may be in the JSON data format and included in the page open request.
Step S22, determining that a page text update request is received in response to the page parameter being a preset parameter, where the update request includes an identifier of a page where a target page text to be updated is located.
It should be noted that, when the user sends a page opening request through the service system, the user may view the page text or update the page text.
Therefore, different parameters can be set for the page text viewing flow and the page text updating flow respectively, so that after the page text updating device receives a page opening request, whether the request is a page text updating request or a page text viewing request can be distinguished.
Specifically, the parameters may be preset, and then the page parameter in the page opening request is compared with the preset parameter, and when the page parameter is the preset parameter, it may be determined that the page text updating request is received. When the page parameter is a non-preset parameter, it may be determined that a page text viewing request is received.
When a page text viewing request is received, a corresponding page file can be determined according to a text identifier in a page parameter, and then the page text is displayed on a display interface. When a page text update request is received, the following steps may be entered.
The specific implementation manner of the identifier of the page where the target page text to be updated is located may refer to the detailed description of other embodiments of the present disclosure, and is not described herein again.
Step S23, opening a page text upload page to be updated to obtain a target page text to be updated.
It can be understood that, before updating the page text, the text position and the text content to be updated need to be determined. Therefore, after receiving the page text updating request, the page text uploading interface to be updated can be opened to obtain the target page text to be updated. The target page text to be updated can be a page text modified according to actual needs.
Step S24, obtaining the hypertext markup language format file corresponding to the page parameter from the code file corresponding to the page identifier.
Step S25, parsing the html document to obtain a historical page text corresponding to the page parameter.
The specific implementation manners of steps S24-S25 may refer to the detailed descriptions of other embodiments of the present disclosure, and are not described herein again.
Step S26, comparing and traversing the historical page text and the target page text to determine the difference between the target page text and the historical page text.
The historical page text and the target page text can be imported into a document comparison system, automatic comparison is realized and different points are marked by utilizing a document comparison function, and therefore the difference between the historical page text and the target page text is determined.
In the embodiment of the disclosure, the difference between the historical page text and the target page text is determined by automatically comparing the historical page text and the target page text, so that the labor cost and the time cost are effectively saved, and the efficiency and the accuracy of text comparison are improved.
And step S27, labeling the target page text according to the difference between the target page text and the historical page text to obtain the labeled target page text.
After the difference between the target page text and the historical page text is determined, the target page text can be labeled according to the difference part of the target page text and the historical page text, and the labeled target page text is obtained.
For example, the specific position and the specific content of the difference portion may be determined according to the comparison result, and the modified content may be labeled at the corresponding position of the target page text.
And step S28, updating the file in the hypertext markup language format according to the target page text with the label so as to replace the historical page text with the target page text.
The specific implementation manner of step S28 may refer to the detailed description of other embodiments of the present disclosure, and is not described herein again.
In the embodiment of the disclosure, the corresponding service process is determined by judging whether the page parameter in the page opening request is the preset parameter, so that the response to the page text viewing request and the page text updating request is realized. When a page text updating request is determined to be received, acquiring a file in a hypertext markup language format from a code file, and analyzing the file in the hypertext markup language format to acquire a corresponding historical page text; and then comparing the difference between the historical page text and the target page text, and labeling the target page text, thereby realizing automatic comparison and labeling of the page text. The method has the advantages that the files in the hypertext markup language format are updated through the marked target page texts, and the historical page texts are replaced by the target page texts, so that the efficiency and the accuracy of page text updating are improved, and meanwhile, the labor cost and the time cost are reduced.
Fig. 3 is a block diagram illustrating an apparatus for updating page text according to a third embodiment of the present disclosure. Referring to fig. 3, the apparatus may include a receiving module 310, an obtaining module 320, a parsing module 330, a generating module 340, and a storing module 350.
The receiving module 310 is configured to receive a page text updating request, where the updating request includes an identifier of a page where a target page text to be updated is located and a page parameter corresponding to the target page text in the page.
The obtaining module 320 is configured to obtain a hypertext markup language formatted file corresponding to the page parameter from the code file corresponding to the page identifier.
The parsing module 330 is configured to parse the file in the hypertext markup language format to obtain a historical page text corresponding to the page parameter.
And the labeling module 340 is configured to label the target page text based on the historical page text to obtain a labeled target page text.
And the updating module 350 is configured to update the hypertext markup language formatted file according to the target page text with the label, so as to replace the historical page text with the target page text.
In one possible implementation manner of the embodiment of the present disclosure, the receiving module 310 may include:
the first determining unit is used for responding to the received page opening request and determining page parameters contained in the opening request;
and the second determining unit is used for responding to the page parameter as a preset parameter and determining that the page text updating request is received.
In a possible implementation manner of the embodiment of the present disclosure, the receiving module 310 may further include:
and the third determining unit is used for responding to the page parameter being a non-preset parameter and determining that the page text viewing request is received.
In a possible implementation manner of the embodiment of the present disclosure, the receiving module 310 may further include:
and the acquisition unit is used for opening the page text uploading page to be updated so as to acquire the target page text to be updated.
In a possible implementation manner of the embodiment of the present disclosure, the labeling module 340 may include:
the comparison unit is used for comparing and traversing the historical page text and the target page text to determine the difference between the target page text and the historical page text;
and the marking unit is used for marking the target page text according to the difference between the target page text and the historical page text so as to obtain the target page text with marks.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
The updating device of the page text of the embodiment of the disclosure firstly receives a page text updating request, wherein the updating request comprises an identification of a page where a target page text to be updated is located and a page parameter corresponding to the target page text in the page; then, acquiring a hypertext markup language format file corresponding to the page parameter from a code file corresponding to the page identifier; then analyzing the file in the hypertext markup language format to obtain historical page texts corresponding to the page parameters; then, labeling the target page text based on the historical page text to obtain the labeled target page text; and finally, updating the file in the hypertext markup language format according to the target page text with the label so as to replace the historical page text with the target page text. Therefore, the file in the hypertext markup language format is obtained from the code file corresponding to the target page text, and the corresponding historical page text is obtained according to the file in the hypertext markup language format, so that the target page text is automatically compared, labeled and updated based on the historical page text, the labor cost and the time cost for updating the page text are saved, and the efficiency for updating the page text is improved.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
FIG. 4 shows a schematic block diagram of an example electronic device 400 that may be used to implement embodiments of the present disclosure. Electronic equipment is intended to represent various forms of digital computers, which may be mobile telephones, computers, digital broadcast terminals, messaging devices, game consoles, tablet devices, medical devices, fitness devices, personal digital assistants, and the like.
Referring to fig. 4, electronic device 400 may include one or more of the following components: processing components 402, memory 404, power components 406, multimedia components 408, audio components 410, input/output (I/O) interfaces 412, sensor components 414, and communication components 416.
The processing component 402 generally controls overall operation of the electronic device 400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 402 can include one or more modules that facilitate interaction between the processing component 402 and other components. For example, the processing component 402 can include a multimedia module to facilitate interaction between the multimedia component 408 and the processing component 402.
The memory 404 is configured to store various types of data to support operations at the electronic device 400. Examples of such data include instructions for any application or method operating on the electronic device 400, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 404 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 406 provides power to the various components of the electronic device 400. Power components 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for electronic device 400.
The multimedia component 408 includes a touch-sensitive display screen that provides an output interface between the electronic device 400 and a user. In some embodiments, the touch display screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 400 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 410 is configured to output and/or input audio signals. For example, the audio component 410 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 400 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 404 or transmitted via the communication component 416.
In some embodiments, audio component 410 also includes a speaker for outputting audio signals.
The I/O interface 412 provides an interface between the processing component 402 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 414 includes one or more sensors for providing various aspects of status assessment for the electronic device 400. For example, the sensor component 414 can detect an open/closed state of the electronic device 400, the relative positioning of components, such as a display and keypad of the electronic device 400, the sensor component 414 can also detect a change in the position of the electronic device 400 or a component of the electronic device 400, the presence or absence of user contact with the electronic device 400, orientation or acceleration/deceleration of the electronic device 400, and a change in the temperature of the electronic device 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 414 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 416 is configured to facilitate wired or wireless communication between the electronic device 400 and other devices. The electronic device 400 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 400 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic elements for performing the above-described user interface generation method.
In an exemplary embodiment, a computer-readable storage medium comprising instructions, such as the memory 404 comprising instructions, executable by the processor 420 of the electronic device 400 to perform the above-described method is also provided. Alternatively, the computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product is also provided, comprising a computer program which, when being executed by a processor, carries out the method of generating a user interface as set forth above.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (13)

1. A method for updating page text is characterized by comprising the following steps:
receiving a page text updating request, wherein the updating request comprises an identification of a page where a target page text to be updated is located and a page parameter corresponding to the target page text in the page;
acquiring a hypertext markup language format file corresponding to the page parameter from a code file corresponding to the page identifier;
analyzing the file in the hypertext markup language format to obtain a historical page text corresponding to the page parameter;
labeling the target page text based on the historical page text to obtain a labeled target page text;
and updating the file in the hypertext markup language format according to the target page text with the label so as to replace the historical page text with the target page text.
2. The method of claim 1, wherein receiving a page text update request comprises:
in response to receiving a page opening request, determining page parameters contained in the opening request;
and responding to the preset page parameters, and determining that a page text updating request is received.
3. The method of claim 2, wherein after said determining page parameters contained in said open request, further comprising:
and determining that a page text viewing request is received in response to the page parameter being a non-preset parameter.
4. The method of claim 2, wherein after the determining that a page text update request is received, further comprising:
and opening a page text uploading page to be updated to obtain the target page text to be updated.
5. The method according to any one of claims 1-4, wherein said labeling the target page text based on the historical page text to obtain a labeled target page text comprises:
comparing and traversing the historical page text and the target page text to determine the difference between the target page text and the historical page text;
and labeling the target page text according to the difference between the target page text and the historical page text to obtain the labeled target page text.
6. An apparatus for updating a page text, comprising:
the device comprises a receiving module, a processing module and a display module, wherein the receiving module is used for receiving a page text updating request, and the updating request comprises an identification of a page where a target page text to be updated is located and a page parameter corresponding to the target page text in the page;
the acquisition module is used for acquiring a hypertext markup language format file corresponding to the page parameter from a code file corresponding to the page identifier;
the analysis module is used for analyzing the file in the hypertext markup language format so as to obtain a historical page text corresponding to the page parameter;
the marking module is used for marking the target page text based on the historical page text so as to obtain the target page text with marks;
and the updating module is used for updating the file in the hypertext markup language format according to the target page text with the label so as to replace the historical page text with the target page text.
7. The apparatus of claim 6, wherein the receiving module comprises:
the device comprises a first determining unit, a second determining unit and a processing unit, wherein the first determining unit is used for responding to the received page opening request and determining page parameters contained in the opening request;
and the second determining unit is used for responding to the preset page parameter and determining that the page text updating request is received.
8. The apparatus of claim 7, wherein the receiving module further comprises:
and the third determining unit is used for responding to the condition that the page parameter is a non-preset parameter and determining that a page text viewing request is received.
9. The apparatus of claim 7, wherein the receiving module further comprises:
and the acquisition unit is used for opening a page text uploading page to be updated so as to acquire the target page text to be updated.
10. The apparatus of any of claims 6-9, wherein the labeling module comprises:
the comparison unit is used for comparing and traversing the historical page text and the target text to determine the difference between the target page text and the historical page text;
and the marking unit is used for marking the target page text according to the difference between the target page text and the historical page text so as to obtain the target page text with marks.
11. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of updating page text according to any one of claims 1-5.
12. A computer-readable storage medium, wherein instructions, when executed by a processor of an electronic device, enable the electronic device to perform the method of updating page text of any one of claims 1-5.
13. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements a method for updating a page text according to any one of claims 1-5.
CN202111328935.9A 2021-11-10 2021-11-10 Page text updating method and device, electronic equipment and storage medium Pending CN114218235A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111328935.9A CN114218235A (en) 2021-11-10 2021-11-10 Page text updating method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111328935.9A CN114218235A (en) 2021-11-10 2021-11-10 Page text updating method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114218235A true CN114218235A (en) 2022-03-22

Family

ID=80696877

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111328935.9A Pending CN114218235A (en) 2021-11-10 2021-11-10 Page text updating method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114218235A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115544969A (en) * 2022-11-29 2022-12-30 明度智云(浙江)科技有限公司 Page comparison method, equipment and medium based on hypertext markup language

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115544969A (en) * 2022-11-29 2022-12-30 明度智云(浙江)科技有限公司 Page comparison method, equipment and medium based on hypertext markup language
CN115544969B (en) * 2022-11-29 2023-03-21 明度智云(浙江)科技有限公司 Page comparison method, equipment and medium based on hypertext markup language

Similar Documents

Publication Publication Date Title
CN106569800B (en) Front-end interface generation method and device
CN106157027B (en) Payment method, device and system
CN110262904B (en) Data acquisition method and device
CN114218235A (en) Page text updating method and device, electronic equipment and storage medium
CN110704030A (en) Interface configuration information generation method and device, electronic equipment and storage medium
CN113157256A (en) Interface code generation method and device, electronic equipment, storage medium and product
CN112416751A (en) Processing method and device for interface automation test and storage medium
CN113010157A (en) Code generation method and device
CN111667827B (en) Voice control method and device for application program and storage medium
CN115729609A (en) Configuration library information normalization checking method, device, equipment and storage medium
CN114546436A (en) Micro front-end service updating method and device, electronic equipment and storage medium
CN111131000B (en) Information transmission method, device, server and terminal
CN113391804A (en) Page generation method and device, electronic equipment and storage medium
CN112819061A (en) Password information identification method, device, equipment and storage medium
CN112182449A (en) Page loading method and device, electronic equipment and storage medium
CN115202762B (en) Application program control method and device, electronic equipment and storage medium
CN116150413B (en) Multimedia resource display method and device
CN114531493B (en) Request processing method and device, electronic equipment and storage medium
CN112711420B (en) Code conversion method and device
CN114139506A (en) Document processing method, apparatus, storage medium, and program product
CN115268935A (en) Data processing method and device
CN116483343A (en) Front-end code generation method and device
CN114356307A (en) Service interaction method and device, electronic equipment and storage medium
CN116150413A (en) Multimedia resource display method and device
CN117112076A (en) Repositioning instruction replacement method, device, equipment and 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