CN110795651A - Method, device and electronic device for saving front-end data - Google Patents
Method, device and electronic device for saving front-end data Download PDFInfo
- Publication number
- CN110795651A CN110795651A CN201910915397.XA CN201910915397A CN110795651A CN 110795651 A CN110795651 A CN 110795651A CN 201910915397 A CN201910915397 A CN 201910915397A CN 110795651 A CN110795651 A CN 110795651A
- Authority
- CN
- China
- Prior art keywords
- target page
- end data
- user
- page
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 61
- 238000012544 monitoring process Methods 0.000 claims abstract description 41
- 230000004044 response Effects 0.000 claims abstract description 14
- 238000003860 storage Methods 0.000 claims description 50
- 238000006243 chemical reaction Methods 0.000 claims description 12
- 230000001960 triggered effect Effects 0.000 claims description 7
- 238000004590 computer program Methods 0.000 claims description 4
- 238000012216 screening Methods 0.000 description 16
- 238000010586 diagram Methods 0.000 description 11
- 230000006870 function Effects 0.000 description 10
- 230000008569 process Effects 0.000 description 8
- 238000012545 processing Methods 0.000 description 7
- 238000013500 data storage Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 235000014510 cooky Nutrition 0.000 description 3
- 238000012217 deletion Methods 0.000 description 3
- 230000037430 deletion Effects 0.000 description 3
- 230000006399 behavior Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000009191 jumping Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9574—Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9577—Optimising the visualization of content, e.g. distillation of HTML documents
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本公开涉及一种用于保存前端数据的方法、装置、电子设备及计算机可读介质。该方法包括:响应用户端上的用户操作,展示并监测目标页面;在所述目标页面上监测到用户触发第一事件时,获取所述目标页面上的前端数据;以及将所述前端数据存储在所述用户端的局部存储器中。本公开涉及的用于保存前端数据的方法、装置、电子设备及计算机可读介质,能够在不给服务端增加任务量的前提下,辅助用户保存网页数据,避免用户由于操作失误而丢失网页数据。
The present disclosure relates to a method, apparatus, electronic device and computer-readable medium for saving front-end data. The method includes: displaying and monitoring a target page in response to a user operation on a user terminal; obtaining front-end data on the target page when a user triggering a first event is detected on the target page; and storing the front-end data in the local memory of the client. The method, device, electronic device, and computer-readable medium for saving front-end data related to the present disclosure can assist users to save web page data without increasing the workload of the server, and prevent users from losing web page data due to operational errors .
Description
技术领域technical field
本公开涉及计算机信息处理领域,具体而言,涉及一种用于保存前端数据的方法、装置、电子设备及计算机可读介质。The present disclosure relates to the field of computer information processing, and in particular, to a method, an apparatus, an electronic device, and a computer-readable medium for saving front-end data.
背景技术Background technique
随着网络技术的发展,越来越多的企业和公司将自身的服务业务放到了互联网上,用户可通过网络提交服务申请,获得服务帮助等等。大部分的公司在提供给用户服务前,都需要用户进行注册从而确认用户的身份,一般来说,需要用户进行注册,将用户本身的相关信息提交到服务网站上,进行验证等等,在验证通过后,方可使用公司提供的相关的互联网的服务业务。用户在具体的进行业务申请的时候,经常也需要提供自身的一些基本信息,或者完善一些数据,以便公司根据用户的特点和喜好进行服务。With the development of network technology, more and more enterprises and companies have put their service business on the Internet, and users can submit service applications and obtain service assistance through the Internet. Most companies require users to register to confirm the identity of users before providing services to users. Generally speaking, users are required to register, submit relevant information of users themselves to the service website for verification, etc. After passing, you can use the related Internet services provided by the company. When a user makes a specific business application, he often needs to provide some basic information of himself, or improve some data, so that the company can provide services according to the user's characteristics and preferences.
对于提供金融产品服务的公司而言,为了公司的资金安全考虑,在用户注册的时候,会需要用户输入大量的个人信息,以便检验用户的金融风险;在用户进行借贷业务的时候,也会需要用户提交内容详实完善的申请表格。为了用户的方便,用户注册和申请表格的提交均可以在网页上进行,但是,由于需要输入的信息繁多,用户在注册的时候,临时离开页面,或者误操作页面导致页面关闭的情况时有发生。For companies that provide financial products and services, for the safety of the company's funds, users are required to enter a large amount of personal information when registering to check the financial risks of users; when users conduct lending business, they will also need to The user submits a detailed and complete application form. For the convenience of users, user registration and application form submission can be done on the web page. However, due to the large amount of information to be entered, users may temporarily leave the page during registration, or the page may be closed due to misoperation. .
在这种情况下,用户不得不再次填写表单,进行信息提交,操作繁琐而且需要花费很多时间。如果服务器端实时监控网页页面进行数据保存的话,又会给服务器端带来很大的业务量的压力。In this case, the user has to fill out the form again and submit the information, which is cumbersome and time-consuming. If the server side monitors web pages in real time for data storage, it will bring a lot of pressure to the server side.
因此,需要一种新的用于保存前端数据的方法、装置、电子设备及计算机可读介质。Therefore, there is a need for a new method, apparatus, electronic device and computer-readable medium for saving front-end data.
在所述背景技术部分公开的上述信息仅用于加强对本公开的背景的理解,因此它可以包括不构成对本领域普通技术人员已知的现有技术的信息。The above information disclosed in this Background section is only for enhancement of understanding of the background of the disclosure and therefore it may contain information that does not form the prior art that is already known to a person of ordinary skill in the art.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本公开提供一种用于保存前端数据的方法、装置、电子设备及计算机可读介质,能够在不给服务端增加任务量的前提下,辅助用户保存网页数据,避免用户由于操作失误而丢失网页数据。In view of this, the present disclosure provides a method, device, electronic device, and computer-readable medium for saving front-end data, which can assist users to save web page data without increasing the workload of the server, and prevent users from operating Mistakes and loss of web page data.
本公开的其他特性和优点将通过下面的详细描述变得显然,或部分地通过本公开的实践而习得。Other features and advantages of the present disclosure will become apparent from the following detailed description, or be learned in part by practice of the present disclosure.
根据本公开的一方面,提出一种用于保存前端数据的方法,该方法包括:响应用户端上的用户操作,展示并监测目标页面;在所述目标页面上监测到用户触发第一事件时,获取所述目标页面上的前端数据;以及将所述前端数据存储在所述用户端的局部存储器中。According to an aspect of the present disclosure, a method for saving front-end data is proposed, the method includes: displaying and monitoring a target page in response to a user operation on a user terminal; and monitoring on the target page when a user triggers a first event , acquiring the front-end data on the target page; and storing the front-end data in the local storage of the client.
可选地,还包括:获取来自用户端的目标页面的展示请求;根据所述展示请求获取所述局部存储器中的前端数据;以及在所述前端数据满足时间策略时,将所述前端数据与所述目标页面共同展示在所述用户端中。Optionally, it also includes: obtaining a display request of a target page from a client; obtaining front-end data in the local memory according to the display request; and when the front-end data satisfies a time policy, comparing the front-end data with all The target page is jointly displayed in the client.
可选地,还包括:在所述目标页面上监测到用户触发第二事件时,删除所述用户端的局部存储器中所述目标页面对应的前端数据。Optionally, the method further includes: deleting the front-end data corresponding to the target page in the local storage of the user terminal when detecting that the user triggers the second event on the target page.
可选地,响应用户端上的用户操作,展示并监测目标页面包括:响应用户端上的应用程序中的用户操作;以及展示并监测基于HTML 5语言的所述目标页面。Optionally, displaying and monitoring the target page in response to the user operation on the client terminal includes: responding to the user operation in the application on the client terminal; and displaying and monitoring the target page based on the HTML 5 language.
可选地,所述目标页面上监测到用户触发第一事件包括:所述目标页面上监测到页面关闭事件;和/或所述目标页面上监测到页面跳转事件;和/或所述目标页面上监测到页面超时事件。Optionally, monitoring the user-triggered first event on the target page includes: monitoring a page closing event on the target page; and/or monitoring a page jump event on the target page; and/or the target A page timeout event is detected on the page.
可选地,获取所述目标页面上的前端数据包括:获取所述目标页面上的界面模块中的元素值。Optionally, acquiring the front-end data on the target page includes: acquiring an element value in an interface module on the target page.
可选地,获取所述目标页面上的界面模块中的元素值包括:在所述元素值为字符串类型时,直接获取所述元素值对应的字符串数据;以及在所述元素值为对象类型时,通过数据类型转换获取所述元素值对应的字符串数据。Optionally, acquiring the element value in the interface module on the target page includes: when the element value is a string type, directly acquiring string data corresponding to the element value; and when the element value is an object When the type is selected, the string data corresponding to the element value is obtained through data type conversion.
可选地,通过数据类型转换获取所述元素值对应的字符串数据包括:获取所述对象类型数据关联的其他界面模块的元素值;计算所述其他界面模块的元素值直至获取所述对象类型数据的元素值为止;以及将所述元素值转换为字符串数据。Optionally, acquiring the string data corresponding to the element value through data type conversion includes: acquiring element values of other interface modules associated with the object type data; calculating the element values of the other interface modules until the object type is acquired. up to the element value of the data; and converting the element value into string data.
可选地,将所述前端数据存储在所述用户端的局部存储器中包括:将所述前端数据进行筛选,将筛选后的前端数据存储在所述用户端的局部存储器中。Optionally, storing the front-end data in the local storage of the user terminal includes: screening the front-end data, and storing the filtered front-end data in the local storage of the user terminal.
可选地,将所述前端数据进行筛选包括:根据用户模板对所述前端数据进行筛选;和/或根据页面模板对所述前端数据进行筛选。Optionally, screening the front-end data includes: screening the front-end data according to a user template; and/or screening the front-end data according to a page template.
根据本公开的一方面,提出一种用于保存前端数据的装置,该装置包括:响应模块,用于响应用户端上的用户操作,展示并监测目标页面;监测模块,用于在所述目标页面上监测到用户触发第一事件时,获取所述目标页面上的前端数据;以及存储模块,用于将所述前端数据存储在所述用户端的局部存储器中。According to an aspect of the present disclosure, an apparatus for saving front-end data is provided, the apparatus includes: a response module, for displaying and monitoring a target page in response to a user operation on a client; a monitoring module for displaying and monitoring a target page in the target When it is detected on the page that the user triggers the first event, the front-end data on the target page is acquired; and a storage module is used for storing the front-end data in the local storage of the user terminal.
可选地,还包括:请求模块,用于获取来自用户端的目标页面的展示请求;数据模块,用于根据所述展示请求获取所述局部存储器中的前端数据;以及展示模块,用于在所述前端数据满足时间策略时,将所述前端数据与所述目标页面共同展示在所述用户端中。Optionally, it also includes: a request module for obtaining a display request of a target page from a client; a data module for obtaining front-end data in the local memory according to the display request; and a display module for When the front-end data meets the time policy, the front-end data and the target page are displayed on the client side together.
可选地,还包括:删除模块,用于在所述目标页面上监测到用户触发第二事件时,删除所述用户端的局部存储器中所述目标页面对应的前端数据。Optionally, the method further includes: a deletion module, configured to delete the front-end data corresponding to the target page in the local storage of the user terminal when detecting that the user triggers the second event on the target page.
可选地,所述响应模块包括:操作单元,用于响应用户端上的应用程序中的用户操作;以及目标单元,用于展示并监测基于HTML 5语言的所述目标页面。Optionally, the response module includes: an operation unit for responding to user operations in the application program on the client; and a target unit for displaying and monitoring the target page based on the HTML 5 language.
可选地,所述监测模块包括:关闭单元,用于监测所述目标页面上的页面关闭事件;和/或跳转单元,用于监测所述目标页面上的页面跳转事件;和/或超时单元,用于监测所述目标页面上的页面超时事件。Optionally, the monitoring module includes: a closing unit for monitoring a page closing event on the target page; and/or a jumping unit for monitoring a page jumping event on the target page; and/or The timeout unit is used to monitor the page timeout event on the target page.
可选地,所述监测模块,还用于获取所述目标页面上的界面模块中的元素值。Optionally, the monitoring module is further configured to acquire element values in the interface module on the target page.
可选地,所述监测模块包括:直接单元,用于在所述元素值为字符串类型时,直接获取所述元素值对应的字符串数据;以及转换单元,用于在所述元素值为对象类型时,通过数据类型转换获取所述元素值对应的字符串数据。Optionally, the monitoring module includes: a direct unit for directly acquiring string data corresponding to the element value when the element value is a string type; and a conversion unit for directly acquiring the string data corresponding to the element value when the element value is a string type; When the object type is used, the string data corresponding to the element value is obtained through data type conversion.
可选地,所述转换单元包括:关联子单元,用于获取所述对象类型数据关联的其他界面模块的元素值;计算子单元,用于计算所述其他界面模块的元素值直至获取所述对象类型数据的元素值为止;以及转换子单元,用于将所述元素值转换为字符串数据。Optionally, the conversion unit includes: an association subunit, used to obtain element values of other interface modules associated with the object type data; a calculation subunit, used to calculate the element values of the other interface modules until obtaining the up to the element value of the object type data; and a conversion subunit for converting the element value into string data.
可选地,所述存储模块,还用于将所述前端数据进行筛选,将筛选后的前端数据存储在所述用户端的局部存储器中。Optionally, the storage module is further configured to filter the front-end data, and store the filtered front-end data in a local memory of the user terminal.
可选地,所述存储模块包括:用户筛选单元,用于根据用户模板对所述前端数据进行筛选;和/或页面筛选单元,用于根据页面模板对所述前端数据进行筛选。Optionally, the storage module includes: a user screening unit for screening the front-end data according to a user template; and/or a page screening unit for screening the front-end data according to a page template.
根据本公开的一方面,提出一种电子设备,该电子设备包括:一个或多个处理器;存储装置,用于存储一个或多个程序;当一个或多个程序被一个或多个处理器执行,使得一个或多个处理器实现如上文的方法。According to an aspect of the present disclosure, an electronic device is provided, the electronic device includes: one or more processors; a storage device for storing one or more programs; when the one or more programs are processed by the one or more processors Execution causes one or more processors to implement a method as above.
根据本公开的一方面,提出一种计算机可读介质,其上存储有计算机程序,该程序被处理器执行时实现如上文中的方法。According to an aspect of the present disclosure, a computer-readable medium is provided on which a computer program is stored, the program, when executed by a processor, implements the method as above.
根据本公开的用于保存前端数据的方法、装置、电子设备及计算机可读介质,在所述目标页面上监测到用户触发第一事件时,获取所述目标页面上的前端数据;以及将所述前端数据存储在所述用户端的局部存储器中的方式,能够在不给服务端增加任务量的前提下,辅助用户保存网页数据,避免用户由于操作失误而丢失网页数据。According to the method, apparatus, electronic device, and computer-readable medium for saving front-end data of the present disclosure, when it is detected on the target page that a user triggers a first event, the front-end data on the target page is acquired; The method of storing the front-end data in the local memory of the client can assist the user to save the web page data without increasing the workload of the server, and avoid the user from losing the web page data due to operational errors.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary only and do not limit the present disclosure.
附图说明Description of drawings
通过参照附图详细描述其示例实施例,本公开的上述和其它目标、特征及优点将变得更加显而易见。下面描述的附图仅仅是本公开的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。The above and other objects, features and advantages of the present disclosure will become more apparent from the detailed description of example embodiments thereof with reference to the accompanying drawings. The drawings described below are only some embodiments of the present disclosure, and for those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative efforts.
图1是根据一示例性实施例示出的一种用于保存前端数据的方法及装置的系统框图。FIG. 1 is a system block diagram of a method and apparatus for saving front-end data according to an exemplary embodiment.
图2是根据一示例性实施例示出的一种用于保存前端数据的方法的流程图。Fig. 2 is a flowchart of a method for saving front-end data according to an exemplary embodiment.
图3是根据另一示例性实施例示出的一种用于保存前端数据的方法的流程图。Fig. 3 is a flowchart of a method for saving front-end data according to another exemplary embodiment.
图4是根据另一示例性实施例示出的一种用于保存前端数据的方法的流程图。Fig. 4 is a flowchart of a method for saving front-end data according to another exemplary embodiment.
图5是根据一示例性实施例示出的一种用于保存前端数据的装置的框图。Fig. 5 is a block diagram of an apparatus for saving front-end data according to an exemplary embodiment.
图6是根据另一示例性实施例示出的一种用于保存前端数据的装置的框图。Fig. 6 is a block diagram of an apparatus for saving front-end data according to another exemplary embodiment.
图7是根据一示例性实施例示出的一种电子设备的框图。Fig. 7 is a block diagram of an electronic device according to an exemplary embodiment.
图8是根据一示例性实施例示出的一种计算机可读介质的框图。Fig. 8 is a block diagram of a computer-readable medium according to an exemplary embodiment.
具体实施方式Detailed ways
现在将参考附图更全面地描述示例实施例。然而,示例实施例能够以多种形式实施,且不应被理解为限于在此阐述的实施例;相反,提供这些实施例使得本公开将全面和完整,并将示例实施例的构思全面地传达给本领域的技术人员。在图中相同的附图标记表示相同或类似的部分,因而将省略对它们的重复描述。Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments, however, can be embodied in various forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The same reference numerals in the drawings denote the same or similar parts, and thus their repeated descriptions will be omitted.
此外,所描述的特征、结构或特性可以以任何合适的方式结合在一个或更多实施例中。在下面的描述中,提供许多具体细节从而给出对本公开的实施例的充分理解。然而,本领域技术人员将意识到,可以实践本公开的技术方案而没有特定细节中的一个或更多,或者可以采用其它的方法、组元、装置、步骤等。在其它情况下,不详细示出或描述公知方法、装置、实现或者操作以避免模糊本公开的各方面。Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided in order to give a thorough understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be employed. In other instances, well-known methods, devices, implementations, or operations have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
附图中所示的方框图仅仅是功能实体,不一定必须与物理上独立的实体相对应。即,可以采用软件形式来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器装置和/或微控制器装置中实现这些功能实体。The block diagrams shown in the figures are merely functional entities and do not necessarily necessarily correspond to physically separate entities. That is, these functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices entity.
附图中所示的流程图仅是示例性说明,不是必须包括所有的内容和操作/步骤,也不是必须按所描述的顺序执行。例如,有的操作/步骤还可以分解,而有的操作/步骤可以合并或部分合并,因此实际执行的顺序有可能根据实际情况改变。The flowcharts shown in the figures are only exemplary illustrations and do not necessarily include all contents and operations/steps, nor do they have to be performed in the order described. For example, some operations/steps can be decomposed, and some operations/steps can be combined or partially combined, so the actual execution order may be changed according to the actual situation.
应理解,虽然本文中可能使用术语第一、第二、第三等来描述各种组件,但这些组件不应受这些术语限制。这些术语乃用以区分一组件与另一组件。因此,下文论述的第一组件可称为第二组件而不偏离本公开概念的教示。如本文中所使用,术语“及/或”包括相关联的列出项目中的任一个及一或多者的所有组合。It will be understood that, although the terms first, second, third, etc. may be used herein to describe various components, these components should not be limited by these terms. These terms are used to distinguish one component from another. Accordingly, a first component discussed below could be referred to as a second component without departing from the teachings of the concepts of the present disclosure. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
本领域技术人员可以理解,附图只是示例实施例的示意图,附图中的模块或流程并不一定是实施本公开所必须的,因此不能用于限制本公开的保护范围。Those skilled in the art can understand that the accompanying drawings are only schematic diagrams of exemplary embodiments, and the modules or processes in the accompanying drawings are not necessarily necessary to implement the present disclosure, and therefore cannot be used to limit the protection scope of the present disclosure.
图1是根据一示例性实施例示出的一种用于保存前端数据的方法及装置的系统框图。FIG. 1 is a system block diagram of a method and apparatus for saving front-end data according to an exemplary embodiment.
如图1所示,系统架构10可以包括终端设备101、102、103,网络104和服务器105。网络104用以在终端设备101、102、103和服务器105之间提供通信链路的介质。网络104可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in FIG. 1 , the
用户可以使用终端设备101、102、103通过网络104与服务器105交互,以接收或发送消息等。终端设备101、102、103上可以安装有各种通讯客户端应用,例如金融服务类应用、购物类应用、网页浏览器应用、即时通信工具、邮箱客户端、社交平台软件等。The user can use the
终端设备101、102、103可以是具有显示屏并且支持网页浏览的各种电子设备,包括但不限于智能手机、平板电脑、膝上型便携计算机和台式计算机等等。The
服务器105可以是提供各种服务的服务器,例如对用户利用终端设备101、102、103所浏览的金融服务类网站提供支持的后台管理服务器。后台管理服务器可以对接收到的用户数据进行保存等处理。The
终端设备101、102、103可例如响应用户端上的用户操作,展示并监测目标页面;终端设备101、102、103可例如在所述目标页面上监测到用户触发第一事件时,获取所述目标页面上的前端数据;终端设备101、102、103可例如将所述前端数据存储在所述用户端的局部存储器中。The
终端设备101、102、103还可例如获取来自用户端的目标页面的展示请求;终端设备101、102、103还可例如根据所述展示请求获取所述局部存储器中的前端数据;终端设备101、102、103还可例如在所述前端数据满足时间策略时,将所述前端数据与所述目标页面共同展示在所述用户端中。The
终端设备101、102、103还可例如在所述目标页面上监测到用户触发第二事件时,删除所述用户端的局部存储器中所述目标页面对应的前端数据。The
在删除用户端的局部存储器中所述目标页面对应的前端数据之后,还可将所述目标页面上的前端数据存储到服务器105中。After deleting the front-end data corresponding to the target page in the local storage of the client, the front-end data on the target page may also be stored in the
需要说明的是,本公开实施例所提供的用于保存前端数据的方法可以由终端设备101、102、103执行,相应地,用于保存前端数据的装置可以设置于终端设备101、102、103中。It should be noted that the method for saving front-end data provided by the embodiments of the present disclosure may be executed by
图2是根据一示例性实施例示出的一种用于保存前端数据的方法的流程图。用于保存前端数据的方法20至少包括步骤S202至S206。Fig. 2 is a flowchart of a method for saving front-end data according to an exemplary embodiment. The
如图2所示,在S202中,响应用户端上的用户操作,展示并监测目标页面。包括:响应用户端上的应用程序中的用户操作;以及展示并监测基于HTML 5语言的所述目标页面。As shown in FIG. 2, in S202, the target page is displayed and monitored in response to the user operation on the client. Including: responding to user operations in the application program on the client side; and displaying and monitoring the target page based on the HTML 5 language.
可例如,用户在用户端中通过在屏幕上的点击操作,展示某目标页面,值得一提的是,目标页面可根据管理员的操作进行设置,一般来说,并不是所有的页面都需要利用本公开中的方法进行操作,由于本公开的发明目的就是在页面填写较多数据内容的时候,防止用户误操作而丢失数据,所以基于这个发明目的,可通过管理员的设置将具有较多表单数据的页面进行监测。For example, the user can display a target page by clicking on the screen in the user terminal. It is worth mentioning that the target page can be set according to the operation of the administrator. Generally speaking, not all pages need to be used. The method in the present disclosure operates. Since the purpose of the present disclosure is to prevent the user from misoperation and data loss when the page fills in more data content, based on the purpose of the present invention, there can be more forms through the settings of the administrator. The data page is monitored.
其中,目标页面是通过HTML 5语言建立的,HTML5(WEB前端)由HTML(结构)、CSS(样式)、JavaScript(行为)组成。其中,结构实现的是网页中的标题、列表、图片等标签。样式处理的是标题文字的字体大小、颜色,图片尺寸,某个标签的背景等。行为可以实现网页中的时间,电商网站当中的倒计时效果,在注册表单时用户名是否重复的检测,网站当中顶部图片的切换特效等等。更具体的,本公开中的前端数据指的是结构中的数值。Among them, the target page is established by the HTML5 language, and HTML5 (WEB front end) is composed of HTML (structure), CSS (style), and JavaScript (behavior). Among them, the structure realizes the tags such as title, list, and picture in the webpage. The style deals with the font size, color, picture size, background of a label, etc. of the title text. The behavior can realize the time in the webpage, the countdown effect in the e-commerce website, the detection of whether the user name is repeated when registering the form, the switching effect of the top picture in the website, and so on. More specifically, front-end data in the present disclosure refers to numerical values in a structure.
在S204中,在所述目标页面上监测到用户触发第一事件时,获取所述目标页面上的前端数据。In S204, when it is detected on the target page that the user triggers the first event, front-end data on the target page is acquired.
其中,所述目标页面上监测到用户触发第一事件包括:所述目标页面上监测到页面关闭事件;和/或所述目标页面上监测到页面跳转事件;和/或所述目标页面上监测到页面超时事件。在用户离开当前页面的时候,或者是用户长时间无操作的时候,或者是由于网络原因导致的页面未响应的时候,均可以触发第一事件。Wherein, monitoring on the target page that the user triggers the first event includes: monitoring a page closing event on the target page; and/or monitoring a page jump event on the target page; and/or monitoring on the target page A page timeout event is detected. The first event can be triggered when the user leaves the current page, or when the user does not operate for a long time, or when the page does not respond due to network reasons.
不同的第一事件可通过不同的函数指令监测,可例如,通过onbeforeunload函数监测用户是否离开当前页面,onbeforeunload事件在即将离开当前页面(刷新或关闭)时触发。该事件可用于弹出对话框,提示用户是继续浏览页面还是离开当前页面。对话框默认的提示信息根据不同的浏览器有所不同。在监测到该函数事件的时候,即执行前端数据存储的相关操作。Different first events can be monitored through different function instructions. For example, whether the user leaves the current page can be monitored through the onbeforeunload function, and the onbeforeunload event is triggered when the current page is about to be left (refreshed or closed). This event can be used to pop up a dialog box, prompting the user whether to continue browsing the page or leave the current page. The default prompt information of the dialog box varies according to different browsers. When the function event is detected, the related operations of the front-end data storage are performed.
在一个实施例中,第一事件还可设置为任意事件,可将第一时间设置为时间事件,或者操作事件,可定义用户在某界面模块输入之后的1s后立即进行前端数据存储,还可例如,可定义用户在对某界面模块进行操作之后立即进行前端数据存储等等,本公开不以此为限。In one embodiment, the first event can also be set to any event, the first time can be set to a time event, or an operation event, it can be defined that the user performs front-end data storage 1s after the input of an interface module, or For example, it may be defined that the user performs front-end data storage immediately after operating a certain interface module, etc., and the present disclosure is not limited to this.
在一个实施例中,获取所述目标页面上的前端数据包括:获取所述目标页面上的界面模块中的元素值。更进一步包括:在所述元素值为字符串类型时,直接获取所述元素值对应的字符串数据;以及在所述元素值为对象类型时,通过数据类型转换获取所述元素值对应的字符串数据。关于“获取所述目标页面上的前端数据”的详细内容将在图4对应的实施例中进行详细描述。In one embodiment, acquiring the front-end data on the target page includes: acquiring an element value in an interface module on the target page. It further includes: when the element value is a string type, directly acquiring the string data corresponding to the element value; and when the element value is an object type, acquiring the character corresponding to the element value through data type conversion string data. The detailed content of "obtaining the front-end data on the target page" will be described in detail in the embodiment corresponding to FIG. 4 .
在S206中,将所述前端数据存储在所述用户端的局部存储器中。包括:将所述前端数据进行筛选,将筛选后的前端数据存储在所述用户端的局部存储器(local storage)中。In S206, the front-end data is stored in the local memory of the client. The method includes: screening the front-end data, and storing the screened front-end data in a local storage (local storage) of the user terminal.
localStorage是基于HTML5语言的在客户端存储数据的方法:localStorage是一种没有时间限制的数据存储。在HTML5之前,这些存储都是由cookie完成的。但是cookie不适合大量数据的存储,因为它们由每个对服务器的请求来传递,这使得cookie速度很慢而且效率也不高。在HTML5中,数据不是由每个服务器请求传递的,而是只有在请求时使用数据。它使在不影响网站性能的情况下存储大量数据成为可能。对于不同的网站,数据存储于用户终端上的不同的区域,并且一个网站只能访问其自身的数据。localStorage is a method of storing data on the client-side based on HTML5 language: localStorage is a data storage with no time limit. Before HTML5, these storages were all done by cookies. But cookies are not suitable for storing large amounts of data because they are passed by every request to the server, which makes cookies slow and inefficient. In HTML5, data is not passed by every server request, but data is only used when requested. It makes it possible to store large amounts of data without affecting website performance. For different websites, data is stored in different areas on the user terminal, and a website can only access its own data.
在一个实施例中,将所述前端数据进行筛选包括:根据用户模板对所述前端数据进行筛选;和/或根据页面模板对所述前端数据进行筛选。对于目标页面而言,可保持其上的全部前端数据或者部分前端数据,在保存全部前端数据时,逐一读取页面中所有界面模块的前端数据的数值即可。更进一步,还可根据设置仅保存部分前端数据的数值,可例如,根据用户的特点对页面中的界面模块中的元素值进行筛选,仅保存用户感兴趣的相关前端数据;还可例如,根据页面的特点对页面中的界面模块中的元素值进行筛选,可例如,该页面呗定义为“注册页”则根据注册页模板中的设置,对页面中的界面模块中的元素值进行筛选,仅保存和注册相关的前端数据即可。In one embodiment, screening the front-end data includes: screening the front-end data according to a user template; and/or screening the front-end data according to a page template. For the target page, all the front-end data or part of the front-end data on it can be kept. When all the front-end data is saved, the values of the front-end data of all interface modules in the page can be read one by one. Further, only the values of some front-end data can be saved according to the settings. For example, the element values in the interface module in the page can be filtered according to the characteristics of the user, and only the relevant front-end data that the user is interested in can be saved; The characteristics of the page filter the element values in the interface module in the page. For example, if the page is defined as "registration page", the element values in the interface module in the page are filtered according to the settings in the registration page template. Only save and register related front-end data.
还可根据管员的设置,对前端数据进行筛选,然后在进行保存,本公开不以此为限。The front-end data can also be filtered according to the administrator's settings, and then saved, which the present disclosure is not limited to.
在一个实施例中,还包括:在所述目标页面上监测到用户触发第二事件时,删除所述用户端的局部存储器中所述目标页面对应的前端数据。其中,第二事件可为用户提交页面事件或者用户保存当前页面的事件,在用户提交或者保存当前页面之后,用户端会发送数据请求至远端服务器中,同时将该页面上的所有数据均传输到远端服务器中进行保存,在这种情况下啊,用户端不必在保存相关数据,为了节约用户端的存储空间,可将已保存的前端数据删除。In one embodiment, the method further includes: deleting the front-end data corresponding to the target page in the local storage of the user terminal when the user triggers the second event is detected on the target page. Among them, the second event may be the event that the user submits the page or the user saves the current page. After the user submits or saves the current page, the client sends a data request to the remote server, and at the same time transmits all data on the page. Store it in the remote server. In this case, the client does not need to save the relevant data. In order to save the storage space of the client, the saved front-end data can be deleted.
目前应用程序开发的前端数据存储都是针对单个数据数值而言的,没有针对大量数据的。而在用户填写页面资料时,针对大量填写操作,用户可能误操作刷新,或者不小心点击其他页面。或者用户不想填了,等下次进来再补充。这时候用户已填写的资料就会被忽略。而本发明的目的就是在用户确认提交给后台数据前,把数据保存下来。At present, the front-end data storage of application development is for a single data value, not for a large amount of data. When the user fills in the page information, for a large number of filling operations, the user may refresh the page by mistake, or accidentally click on other pages. Or the user does not want to fill it out, and will add it later when he comes in next time. At this time, the information that the user has filled in will be ignored. The purpose of the present invention is to save the data before the user confirms to submit the data to the background.
本发明可通过插件的形式,在用户端进行安装设置,该插件可监控所有的用户或管理员设置的目标页面。The present invention can be installed and set at the user end in the form of a plug-in, and the plug-in can monitor all target pages set by users or administrators.
根据本公开的用于保存前端数据的方法,在所述目标页面上监测到用户触发第一事件时,获取所述目标页面上的前端数据;以及将所述前端数据存储在所述用户端的局部存储器中的方式,能够在不给服务端增加任务量的前提下,辅助用户保存网页数据,避免用户由于操作失误而丢失网页数据。According to the method for saving front-end data of the present disclosure, when it is detected on the target page that a user triggers a first event, the front-end data on the target page is acquired; and the front-end data is stored in a part of the user terminal The method in the memory can assist the user to save the webpage data on the premise of not increasing the workload of the server, so as to avoid the user from losing the webpage data due to operation errors.
应清楚地理解,本公开描述了如何形成和使用特定示例,但本公开的原理不限于这些示例的任何细节。相反,基于本公开公开的内容的教导,这些原理能够应用于许多其它实施例。It should be clearly understood that this disclosure describes how to make and use specific examples and that the principles of this disclosure are not limited to any details of these examples. Rather, these principles can be applied to many other embodiments based on the teachings of the present disclosure.
图3是根据另一示例性实施例示出的一种用于保存前端数据的方法的流程图。图3所示的流程是对图2所示的流程的补充描述。Fig. 3 is a flowchart of a method for saving front-end data according to another exemplary embodiment. The flow shown in FIG. 3 is a supplementary description of the flow shown in FIG. 2 .
如图3所示,在S302中,获取来自用户端的目标页面的展示请求。可例如,用户在用户端上进行点击操作,发送展示请求以打开目标页面。还可例如,用户通过在其他应用或者网页上的操作,发送展示请求以跳转到目标页面中。As shown in FIG. 3, in S302, a display request of the target page from the client is obtained. For example, the user performs a click operation on the client to send a display request to open the target page. Also, for example, the user sends a display request to jump to the target page through operations on other applications or web pages.
在S304中,根据所述展示请求获取所述局部存储器中的前端数据。通过本公开中的方法,可通过插件的方法实时监控所有的额页向展示请求,根据展示请求中的页面编号确定待展示的页面是否为目标页面。在待展示的页面为目标页面时,根据目标页面的编号或者页面地址在用户端的局部存储器中获取目标页面相关的前端数据。In S304, the front-end data in the local storage is acquired according to the presentation request. With the method in the present disclosure, all page display requests can be monitored in real time through the plug-in method, and whether the page to be displayed is the target page is determined according to the page number in the display request. When the page to be displayed is the target page, the front-end data related to the target page is acquired from the local memory of the client according to the number or page address of the target page.
在S306中,在所述前端数据满足时间策略时,将所述前端数据与所述目标页面共同展示在所述用户端中。确定目标页面对应的前端数据的存储时间,然后将存储时间和当前时间进行比较,在满足时间策略的时候,将所述前端数据与所述目标页面共同展示在所述用户端中。In S306, when the front-end data meets the time policy, the front-end data and the target page are displayed on the client side together. The storage time of the front-end data corresponding to the target page is determined, then the storage time is compared with the current time, and when the time policy is satisfied, the front-end data and the target page are displayed on the client side together.
在一个实施例中,将所述前端数据与所述目标页面共同展示在所述用户端中包括,根据前端数据存储时候对应的页面元素的编码,将前端数据填入对应的页面元素内,然后将该页面进行展示。In one embodiment, displaying the front-end data and the target page on the client side together includes, according to the coding of the corresponding page element when the front-end data is stored, filling the front-end data into the corresponding page element, and then Display this page.
在一个实施例中,时间策略可由管理员进行设置,还可由用户进行设置,更具体的,时间策略可为存储时间和当前时间之间的时间间隔不超过一周,或者一个月,或者其他时间间隔。In one embodiment, the time policy may be set by the administrator, and may also be set by the user. More specifically, the time policy may be that the time interval between the storage time and the current time does not exceed one week, or one month, or other time intervals. .
在一个实施例中,在存储前端数据的时候,还可为前端数据加入时间戳,该时间戳标记了该前端数据的失效时间,在前端数据失效之后,可直接将前端数据删除。或者是在前端数据失效之后,则不进行回显。更具体的可通过removeItem函数实现删除功能,removeItem(key):删除指定key本地存储的值。In one embodiment, when the front-end data is stored, a time stamp may be added to the front-end data, and the time stamp marks the expiration time of the front-end data. After the front-end data becomes invalid, the front-end data may be deleted directly. Or after the front-end data is invalid, no echo is performed. More specifically, the delete function can be implemented through the removeItem function, removeItem(key): delete the value stored locally for the specified key.
图4是根据另一示例性实施例示出的一种用于保存前端数据的方法的流程图。图4所示的流程是对图2所示的流程中S204“在所述目标页面上监测到用户触发第一事件时,获取所述目标页面上的前端数据”的详细描述。Fig. 4 is a flowchart of a method for saving front-end data according to another exemplary embodiment. The process shown in FIG. 4 is a detailed description of S204 “obtain front-end data on the target page when monitoring the user triggering the first event on the target page” in the process shown in FIG. 2 .
如图4所示,在S402中,获取所述目标页面上的界面模块中的元素值。As shown in FIG. 4, in S402, the element value in the interface module on the target page is acquired.
在S404中,在所述元素值为字符串类型时,直接获取所述元素值对应的字符串数据。通过包裹元素,来确认里面需要存储的元素。可例如,在所述元素值为字符串类型时,通过getitem函数直接获取所述元素值对应的字符串数据。getItem(key):获取指定key本地存储的值。In S404, when the element value is a string type, directly obtain the string data corresponding to the element value. By wrapping elements, you can confirm the elements that need to be stored inside. For example, when the element value is a string type, the string data corresponding to the element value can be directly obtained through the getitem function. getItem(key): Get the value stored locally for the specified key.
在S406中,在所述元素值为对象类型时,获取所述对象类型数据关联的其他界面模块的元素值。通过包裹元素,来确认里面需要存储的元素。In S406, when the element value is an object type, acquire element values of other interface modules associated with the object type data. By wrapping elements, you can confirm the elements that need to be stored inside.
在S408中,计算所述其他界面模块的元素值直至获取所述对象类型数据的元素值为止。对于关联的界面模块中的元素值,可逐一计算所有关联的模块中的数值,直至计算到当前界面模块中的元素值为止。In S408, the element values of the other interface modules are calculated until the element values of the object type data are acquired. For the element value in the associated interface module, the values in all the associated modules can be calculated one by one until the element value in the current interface module is calculated.
在S410中,将所述元素值转换为字符串数据。可例如,在所述元素值为对象类型时,通过setitem函数直接获取所述元素值对应的字符串数据。setItem(key,value):将value存储到key字段In S410, the element value is converted into character string data. For example, when the element value is an object type, the string data corresponding to the element value can be directly obtained through the setitem function. setItem(key, value): store the value in the key field
本领域技术人员可以理解实现上述实施例的全部或部分步骤被实现为由CPU执行的计算机程序。在该计算机程序被CPU执行时,执行本公开提供的上述方法所限定的上述功能。所述的程序可以存储于一种计算机可读存储介质中,该存储介质可以是只读存储器,磁盘或光盘等。Those skilled in the art can understand that all or part of the steps for implementing the above-described embodiments are implemented as computer programs executed by the CPU. When the computer program is executed by the CPU, the above-mentioned functions defined by the above-mentioned methods provided by the present disclosure are performed. The program can be stored in a computer-readable storage medium, which can be a read-only memory, a magnetic disk, an optical disk, or the like.
此外,需要注意的是,上述附图仅是根据本公开示例性实施例的方法所包括的处理的示意性说明,而不是限制目的。易于理解,上述附图所示的处理并不表明或限制这些处理的时间顺序。另外,也易于理解,这些处理可以是例如在多个模块中同步或异步执行的。In addition, it should be noted that the above-mentioned drawings are only schematic illustrations of the processes included in the methods according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It is easy to understand that the processes shown in the above figures do not indicate or limit the chronological order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, in multiple modules.
下述为本公开装置实施例,可以用于执行本公开方法实施例。对于本公开装置实施例中未披露的细节,请参照本公开方法实施例。The following are the apparatus embodiments of the present disclosure, which can be used to execute the method embodiments of the present disclosure. For details not disclosed in the apparatus embodiments of the present disclosure, please refer to the method embodiments of the present disclosure.
图5是根据一示例性实施例示出的一种用于保存前端数据的装置的框图。如图5所示,用于保存前端数据的装置50包括:响应模块502,监测模块504,存储模块506,删除模块508。Fig. 5 is a block diagram of an apparatus for saving front-end data according to an exemplary embodiment. As shown in FIG. 5 , the
响应模块502用于响应用户端上的用户操作,展示并监测目标页面;所述响应模块502包括:操作单元用于响应用户端上的应用程序中的用户操作;以及目标单元用于展示并监测基于HTML 5语言的所述目标页面。The
监测模块504用于在所述目标页面上监测到用户触发第一事件时,获取所述目标页面上的前端数据;所述监测模块504包括:关闭单元,用干监测所述目标页而上的页而关闭事件:和/或跳转单元,用干监测所述目标页面上的页面跳转事件;和/或超时单元,用于监测所述目标页面上的页面超时事件。The
所述监测模块504还用于获取所述目标页面上的界面模块中的元素值。所述监测模块504包括:直接单元,用于在所述元素值为字符串类型时,直接获取所述元素值对应的字符串数据;以及转换单元,用于在所述元素值为对象类型时,通过数据类型转换获取所述元素值对应的字符串数据。所述转换单元包括:关联子单元,用于获取所述对象类型数据关联的其他界面模块的元素值;计算子单元,用于计算所述其他界面模块的元素值直至获取所述对象类型数据的元素值为止;以及转换子单元,用于将所述元素值转换为字符串数据。The
存储模块506用于将所述前端数据存储在所述用户端的局部存储器中。所述存储模块506还用于将所述前端数据进行筛选,将筛选后的前端数据存储在所述用户端的局部存储器中。The
所述存储模块506包括:用户筛选单元,用于根据用户模板对所述前端数据进行筛选;和/或页面筛选单元,用于根据页面模板对所述前端数据进行筛选。The
删除模块508用于在所述目标页面上监测到用户触发第二事件时,删除所述用户端的局部存储器中所述目标页面对应的前端数据。The
图6是根据另一示例性实施例示出的一种用于保存前端数据的装置的框图。如图6所示,用于保存前端数据的装置60在用于保存前端数据的装置50的基础上,还包括:请求模块602,数据模块604,展示模块606。Fig. 6 is a block diagram of an apparatus for saving front-end data according to another exemplary embodiment. As shown in FIG. 6 , the
请求模块602用于获取来自用户端的目标页面的展示请求;The
数据模块604用于根据所述展示请求获取所述局部存储器中的前端数据;以及The
展示模块606用于在所述前端数据满足时间策略时,将所述前端数据与所述目标页面共同展示在所述用户端中。The
根据本公开的用于保存前端数据的装置,在所述目标页面上监测到用户触发第一事件时,获取所述目标页面上的前端数据;以及将所述前端数据存储在所述用户端的局部存储器中的方式,能够在不给服务端增加任务量的前提下,辅助用户保存网页数据,避免用户由于操作失误而丢失网页数据。According to the apparatus for saving front-end data of the present disclosure, when a user triggering a first event is detected on the target page, the front-end data on the target page is acquired; and the front-end data is stored in a part of the user terminal The method in the memory can assist the user to save the webpage data on the premise of not increasing the workload of the server, so as to avoid the user from losing the webpage data due to operation errors.
图7是根据一示例性实施例示出的一种电子设备的框图。Fig. 7 is a block diagram of an electronic device according to an exemplary embodiment.
下面参照图7来描述根据本公开的这种实施方式的电子设备700。图7显示的电子设备700仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。An electronic device 700 according to this embodiment of the present disclosure is described below with reference to FIG. 7 . The electronic device 700 shown in FIG. 7 is only an example, and should not impose any limitation on the function and scope of use of the embodiments of the present disclosure.
如图7所示,电子设备700以通用计算设备的形式表现。电子设备700的组件可以包括但不限于:至少一个处理单元710、至少一个存储单元720、连接不同系统组件(包括存储单元720和处理单元710)的总线730、显示单元740等。As shown in FIG. 7, electronic device 700 takes the form of a general-purpose computing device. Components of the electronic device 700 may include, but are not limited to, at least one processing unit 710, at least one storage unit 720, a bus 730 connecting different system components (including the storage unit 720 and the processing unit 710), a display unit 740, and the like.
其中,所述存储单元存储有程序代码,所述程序代码可以被所述处理单元710执行,使得所述处理单元710执行本说明书上述电子处方流转处理方法部分中描述的根据本公开各种示例性实施方式的步骤。例如,所述处理单元710可以执行如图2,图3,图4中所示的步骤。Wherein, the storage unit stores program codes, and the program codes can be executed by the processing unit 710, so that the processing unit 710 executes the various exemplary methods according to the present disclosure described in the above-mentioned electronic prescription circulation processing method section of this specification. Implementation steps. For example, the processing unit 710 may perform the steps shown in FIG. 2 , FIG. 3 , and FIG. 4 .
所述存储单元720可以包括易失性存储单元形式的可读介质,例如随机存取存储单元(RAM)7201和/或高速缓存存储单元7202,还可以进一步包括只读存储单元(ROM)7203。The storage unit 720 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 7201 and/or a cache storage unit 7202 , and may further include a read-only storage unit (ROM) 7203 .
所述存储单元720还可以包括具有一组(至少一个)程序模块7205的程序/实用工具7204,这样的程序模块7205包括但不限于:操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。The storage unit 720 may also include a program/utility 7204 having a set (at least one) of program modules 7205 including, but not limited to, an operating system, one or more application programs, other program modules, and programs Data, each or some combination of these examples may include an implementation of a network environment.
总线730可以为表示几类总线结构中的一种或多种,包括存储单元总线或者存储单元控制器、外围总线、图形加速端口、处理单元或者使用多种总线结构中的任意总线结构的局域总线。The bus 730 may be representative of one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local area using any of a variety of bus structures bus.
电子设备700也可以与一个或多个外部设备700′(例如键盘、指向设备、蓝牙设备等)通信,还可与一个或者多个使得用户能与该电子设备700交互的设备通信,和/或与使得该电子设备700能与一个或多个其它计算设备进行通信的任何设备(例如路由器、调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口750进行。并且,电子设备700还可以通过网络适配器760与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。网络适配器760可以通过总线730与电子设备700的其它模块通信。应当明白,尽管图中未示出,可以结合电子设备700使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。The electronic device 700 may also communicate with one or more external devices 700' (eg, keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 700, and/or Communicate with any device (eg, router, modem, etc.) that enables the electronic device 700 to communicate with one or more other computing devices. Such communication may take place through input/output (I/O) interface 750 . Also, the electronic device 700 may communicate with one or more networks (eg, a local area network (LAN), a wide area network (WAN), and/or a public network such as the Internet) through a network adapter 760 . Network adapter 760 may communicate with other modules of electronic device 700 through bus 730 . It should be appreciated that, although not shown, other hardware and/or software modules may be used in conjunction with electronic device 700, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives and data backup storage systems.
通过以上的实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,如图8所示,根据本公开实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、或者网络设备等)执行根据本公开实施方式的上述方法。From the description of the above embodiments, those skilled in the art can easily understand that the exemplary embodiments described herein may be implemented by software, or may be implemented by software combined with necessary hardware. Therefore, as shown in FIG. 8 , the technical solution according to the embodiment of the present disclosure can be embodied in the form of a software product, and the software product can be stored in a non-volatile storage medium (which may be a CD-ROM, a U disk, a removable hard disk) etc.) or on a network, including several instructions to cause a computing device (which may be a personal computer, a server, or a network device, etc.) to perform the above-described method according to an embodiment of the present disclosure.
所述软件产品可以采用一个或多个可读介质的任意组合。可读介质可以是可读信号介质或者可读存储介质。可读存储介质例如可以为但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。The software product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples (non-exhaustive list) of readable storage media include: electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
所述计算机可读存储介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了可读程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。可读存储介质还可以是可读存储介质以外的任何可读介质,该可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。可读存储介质上包含的程序代码可以用任何适当的介质传输,包括但不限于无线、有线、光缆、RF等等,或者上述的任意合适的组合。The computer-readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, carrying readable program code therein. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A readable storage medium can also be any readable medium other than a readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
可以以一种或多种程序设计语言的任意组合来编写用于执行本公开操作的程序代码,所述程序设计语言包括面向对象的程序设计语言-诸如Java、C++等,还包括常规的过程式程序设计语言-诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算设备上部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。Program code for performing operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages - such as Java, C++, etc., as well as conventional procedural Programming Language - such as the "C" language or similar programming language. The program code may execute entirely on the user computing device, partly on the user device, as a stand-alone software package, partly on the user computing device and partly on a remote computing device, or entirely on the remote computing device or server execute on. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (eg, using an Internet service provider business via an Internet connection).
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被一个该设备执行时,使得该计算机可读介质实现如下功能:响应用户端上的用户操作,展示并监测目标页面;在所述目标页面上监测到用户触发第一事件时,获取所述目标页面上的前端数据;以及将所述前端数据存储在所述用户端的局部存储器中。The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by a device, the computer-readable medium realizes the following functions: responding to user operations on the client, displaying and monitoring the target page ; obtaining front-end data on the target page when the user triggers the first event is detected on the target page; and storing the front-end data in the local memory of the user terminal.
本领域技术人员可以理解上述各模块可以按照实施例的描述分布于装置中,也可以进行相应变化唯一不同于本实施例的一个或多个装置中。上述实施例的模块可以合并为一个模块,也可以进一步拆分成多个子模块。Those skilled in the art can understand that the above-mentioned modules may be distributed in the apparatus according to the description of the embodiment, and corresponding changes may also be made in one or more apparatuses that are uniquely different from this embodiment. The modules in the foregoing embodiments may be combined into one module, or may be further split into multiple sub-modules.
通过以上的实施例的描述,本领域的技术人员易于理解,这里描述的示例实施例可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本公开实施例的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、移动终端、或者网络设备等)执行根据本公开实施例的方法。From the description of the above embodiments, those skilled in the art can easily understand that the exemplary embodiments described herein may be implemented by software, or may be implemented by software combined with necessary hardware. Therefore, the technical solutions according to the embodiments of the present disclosure may be embodied in the form of software products, and the software products may be stored in a non-volatile storage medium (which may be CD-ROM, U disk, mobile hard disk, etc.) or on a network , including several instructions to cause a computing device (which may be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to an embodiment of the present disclosure.
以上具体地示出和描述了本公开的示例性实施例。应可理解的是,本公开不限于这里描述的详细结构、设置方式或实现方法;相反,本公开意图涵盖包含在所附权利要求的精神和范围内的各种修改和等效设置。Exemplary embodiments of the present disclosure have been specifically shown and described above. It should be understood that this disclosure is not limited to the details of construction, arrangements, or implementations described herein; on the contrary, this disclosure is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910915397.XA CN110795651A (en) | 2019-09-26 | 2019-09-26 | Method, device and electronic device for saving front-end data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910915397.XA CN110795651A (en) | 2019-09-26 | 2019-09-26 | Method, device and electronic device for saving front-end data |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110795651A true CN110795651A (en) | 2020-02-14 |
Family
ID=69439759
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910915397.XA Pending CN110795651A (en) | 2019-09-26 | 2019-09-26 | Method, device and electronic device for saving front-end data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110795651A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111681028A (en) * | 2020-04-16 | 2020-09-18 | 上海淇玥信息技术有限公司 | Resource allocation method and device, electronic equipment and computer readable storage medium |
CN112818649A (en) * | 2021-02-02 | 2021-05-18 | 北京首汽智行科技有限公司 | Data filling method and system for data filling page cache |
CN113791823A (en) * | 2020-11-26 | 2021-12-14 | 北京沃东天骏信息技术有限公司 | Data recovery method and device, storage medium and electronic equipment |
CN114547502A (en) * | 2022-01-17 | 2022-05-27 | 北京中交兴路信息科技有限公司 | Data storage capacity monitoring method and device of browser, storage medium and terminal |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102819532A (en) * | 2011-06-07 | 2012-12-12 | 解玉麟 | Obtaining and transferring method of web form data |
CN105335404A (en) * | 2014-07-29 | 2016-02-17 | 北京奇虎科技有限公司 | Page information loading method and device |
CN109558575A (en) * | 2018-10-25 | 2019-04-02 | 平安科技(深圳)有限公司 | Online Table edit method, apparatus, computer equipment and storage medium |
CN110119489A (en) * | 2019-04-16 | 2019-08-13 | 深圳壹账通智能科技有限公司 | The automatic register method of information, device, computer equipment and storage medium |
-
2019
- 2019-09-26 CN CN201910915397.XA patent/CN110795651A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102819532A (en) * | 2011-06-07 | 2012-12-12 | 解玉麟 | Obtaining and transferring method of web form data |
CN105335404A (en) * | 2014-07-29 | 2016-02-17 | 北京奇虎科技有限公司 | Page information loading method and device |
CN109558575A (en) * | 2018-10-25 | 2019-04-02 | 平安科技(深圳)有限公司 | Online Table edit method, apparatus, computer equipment and storage medium |
CN110119489A (en) * | 2019-04-16 | 2019-08-13 | 深圳壹账通智能科技有限公司 | The automatic register method of information, device, computer equipment and storage medium |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111681028A (en) * | 2020-04-16 | 2020-09-18 | 上海淇玥信息技术有限公司 | Resource allocation method and device, electronic equipment and computer readable storage medium |
CN113791823A (en) * | 2020-11-26 | 2021-12-14 | 北京沃东天骏信息技术有限公司 | Data recovery method and device, storage medium and electronic equipment |
CN112818649A (en) * | 2021-02-02 | 2021-05-18 | 北京首汽智行科技有限公司 | Data filling method and system for data filling page cache |
CN114547502A (en) * | 2022-01-17 | 2022-05-27 | 北京中交兴路信息科技有限公司 | Data storage capacity monitoring method and device of browser, storage medium and terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10990655B1 (en) | Methods, systems, and computer program products for web browsing | |
CN106991154B (en) | Webpage rendering method and device, terminal and server | |
AU2021290403B2 (en) | Mobile application based account aggregation | |
US8898796B2 (en) | Managing network data | |
US9038149B2 (en) | Cloud based password management | |
CN110795651A (en) | Method, device and electronic device for saving front-end data | |
US20140215050A1 (en) | Method and system for web analytics using a proxy | |
CN110704771B (en) | Page abnormality monitoring method, system, device, electronic equipment and readable medium | |
US9971563B2 (en) | Systems and methods for low interference logging and diagnostics | |
US7912917B2 (en) | Persisting forms data in a composite web application environment | |
CN110781427A (en) | A calculation method, device, device and storage medium for time above the fold | |
CN111597059A (en) | Interface calling request processing method and device and electronic equipment | |
CN109614319B (en) | Automated testing method, apparatus, electronic device and computer readable medium | |
US20080228874A1 (en) | Method and Apparatus for Collocating Application Monitoring Reports with Web Applications | |
CN113553522A (en) | Page display method and device, electronic equipment and storage medium | |
CN111240948A (en) | Experience data processing method and device, computer equipment and storage medium | |
CN111382387A (en) | Webpage access method, device, equipment and storage medium based on small program | |
CN110737861A (en) | webpage data processing method, device, equipment and storage medium | |
US11467868B1 (en) | Service relationship orchestration service | |
CN111680240B (en) | Page display method and device and electronic equipment | |
US10599403B2 (en) | Methods, systems, and computer program products for web browsing | |
CN112347382A (en) | Product page sharing method and device and electronic equipment | |
CN113781137A (en) | Channel information display method, display device, computer system and storage medium | |
US20150222505A1 (en) | Business transaction resource usage tracking | |
CN111612507A (en) | Financial resource allocation method, device and electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200214 |