CN110058897A - Page operation control method, device, computer equipment and storage medium - Google Patents

Page operation control method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN110058897A
CN110058897A CN201910198261.1A CN201910198261A CN110058897A CN 110058897 A CN110058897 A CN 110058897A CN 201910198261 A CN201910198261 A CN 201910198261A CN 110058897 A CN110058897 A CN 110058897A
Authority
CN
China
Prior art keywords
page operation
preset
page
operation content
data volume
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
CN201910198261.1A
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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN201910198261.1A priority Critical patent/CN110058897A/en
Publication of CN110058897A publication Critical patent/CN110058897A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

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

Abstract

The invention discloses a kind of page operation control method, device, computer equipment and storage mediums.Its method includes: to obtain terminal present procedure to execute corresponding page operation content when page operation;The corresponding data volume of the page operation content is compared with preset first data-quantity threshold, to verify whether the corresponding data volume of the page operation content is greater than preset first data-quantity threshold;When the corresponding data volume of the page operation content is greater than preset first data-quantity threshold, the page operation content is directed into preset sub thread and carries out loading processing, so that the terminal completes page operation according to loading result.The present invention is by being pre-created sub thread, and loading processing is carried out to the biggish content of pages of data volume by the sub thread, loading result is supplied to main thread by the sub thread and carries out page operation, main thread obstruction can be reduced in this way, reduce period of reservation of number, operational efficiency is improved, operating experience is optimized.

Description

Page operation control method, device, computer equipment and storage medium
Technical field
The present invention relates to technical field of data processing, specifically, the present invention relates to a kind of page operation control methods, dress It sets, computer equipment and storage medium.
Background technique
With the continuous development of terminal device, more and more application programs can be run on the terminal device.Work as user On the terminal device when the operation sequence page, it usually needs load it from the Batch Processing server of the application program Then the corresponding page operation content in current location carries out corresponding page operation according to page operation content.In page operation Appearance can be picture, video, text etc..
Currently, the language for the performing environment that terminal is often used in loading page operation content is javascript language. Javascript language is a kind of language that single thread executes, and all tasks execute in order.If when loading page operation content It is computationally intensive, time-consuming, be easy because occupy main thread resource it is excessive due to lead to main thread process severe obstruction, be blocked in present bit It sets until just will continue to execute after calculating result backward, increases period of reservation of number.
Summary of the invention
The purpose of the present invention calculates when aiming to solve at least one of above-mentioned technological deficiency, especially loading page operation content Amount is big, time-consuming, is easy to lead to main thread process severe obstruction because occupancy main thread resource is excessive, is blocked in current location etc. It just will continue to execute backward to after calculating result, increase the technological deficiency of period of reservation of number.
In order to solve the above technical problems, the present invention provides a kind of page operation control methods, comprising the following steps:
It obtains terminal present procedure and executes corresponding page operation content when page operation;
The corresponding data volume of the page operation content is compared with preset first data-quantity threshold, to verify State whether the corresponding data volume of page operation content is greater than preset first data-quantity threshold;
When the corresponding data volume of the page operation content is greater than preset first data-quantity threshold, the page is grasped It is directed into preset sub thread as content and carries out loading processing, so that the terminal completes page operation according to loading result.
Optionally, it is compared with preset first data-quantity threshold in the corresponding data volume of the page operation content Afterwards, further includes:
When the corresponding data volume of the page operation content is less than or equal to preset first data-quantity threshold, by the page Face operation content is introduced directly into the corresponding main thread of the terminal present procedure and carries out loading processing so that the terminal according to Loading result completes page operation.
Optionally, the preset sub thread is shareworker sub thread, supports multiple and different program pages cross-domain total It is same to use the preset sub thread.
Optionally, when obtaining terminal present procedure and executing page operation when corresponding page operation content, comprising:
The page operation request that terminal is sent is received, there is the corresponding resource mark of page operation in the page operation request Character learning section;
According to the mapping relations between the resource identification field and preset resource identification and page operation content, obtain Take the page operation content that there are mapping relations with the resource identification field.
Optionally, the corresponding data volume of the page operation content is compared with preset second data-quantity threshold, When whether being greater than preset second data-quantity threshold to verify the corresponding data volume of the page operation content, can also include:
By the page operation division of teaching contents it is at least one component according to preset division rule, counts page behaviour Make the corresponding data volume of each component in content;
Corresponding corresponding preset first data-quantity threshold of data volume of each component is compared, with verifying Whether the corresponding data volume of each component is greater than preset second data-quantity threshold in the page operation content.
Optionally, according to preset division rule by the page operation division of teaching contents be at least one component when, including At least one of below: video component, picture component, text component.
In order to solve the above technical problems, the present invention also provides a kind of page operation control device, the page operation control Device processed includes:
Module is obtained, corresponding page operation content when for obtaining terminal present procedure execution page operation;
Processing module, for carrying out the corresponding data volume of the page operation content and preset first data-quantity threshold It compares, to verify whether the corresponding data volume of the page operation content is greater than preset first data-quantity threshold;
First execution module, for being greater than preset first data volume threshold when the corresponding data volume of the page operation content When value, the page operation content is directed into preset sub thread and carries out loading processing, so that the terminal is according to load As a result page operation is completed.
Optionally, the page operation control device further include:
Second execution module, for being less than or equal to preset first data when the corresponding data volume of the page operation content When measuring threshold value, the page operation content is introduced directly into the corresponding main thread of the terminal present procedure and is carried out at load Reason, so as to complete page operation according to loading result described in terminal.
Optionally, in the page operation content control device, the preset sub thread is shareworker sub-line Journey supports multiple and different program pages are cross-domain to be used in conjunction with the preset sub thread.
Optionally, the page operation control device further include:
First receiving submodule has in the page operation request for receiving the page operation request of terminal transmission The corresponding resource identification field of page operation;
First acquisition submodule, for being grasped according to the resource identification field and preset resource identification field and the page Make the mapping relations between content, obtains the page operation content that there are mapping relations with the resource identification field.
Optionally, the page operation control device further include:
First divides submodule, is used to according to preset division rule be at least one by the page operation division of teaching contents Component counts the corresponding data volume of each component in the page operation content;
First processing submodule, for by corresponding corresponding preset first data volume of data volume of each component Threshold value is compared, to verify whether the corresponding data volume of each component in the page operation content is greater than preset second number According to amount threshold value.
Optionally, in the page operation control device, according to preset division rule by the page operation content When being divided at least one component, video component, picture component, text component are included at least one of the following:.
In order to solve the above technical problems, the present invention also provides a kind of computer equipment, including memory and processor, it is described Computer-readable instruction is stored in memory, when the computer-readable instruction is executed by the processor, so that the place Manage the step of device executes above-mentioned page operation control method.
In order to solve the above technical problems, the present invention also provides a kind of storage medium for being stored with computer-readable instruction, institute When stating computer-readable instruction and being executed by one or more processors, so that one or more processors execute above-mentioned page operation The step of control method.
The beneficial effects of the present invention are:
The present invention after corresponding page operation content, passes through when acquiring terminal present procedure and executing page operation The data volume of the page operation content is compared with preset first data-quantity threshold, to verify the page operation Whether the data volume of content is greater than preset first data-quantity threshold;When the corresponding data volume of the page operation content is greater than in advance If the first data-quantity threshold when, the page operation content is directed into preset sub thread and carries out loading processing so that The terminal completes page operation according to loading result.So, when executing page operation, if the number of page operation content Larger according to measuring, terminal can be by calling pre-set sub thread to carry out data loading processing, so that terminal is executing the page Load calculating is carried out with multithreading when operation, to reduce the feelings for causing main thread to block because page operation amount of content data is excessive Condition.Moreover, event performed by main thread and sub thread is asynchronous event, it is independent of each other, it is possible to reduce the time that user waits, Improve operational efficiency.
The additional aspect of the present invention and advantage will be set forth in part in the description, these will become from the following description Obviously, or practice through the invention is recognized.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is the basic skills flow diagram of page operation control method provided in an embodiment of the present invention;
Fig. 2 is to import page operation content in page operation control method provided in an embodiment of the present invention A kind of flow diagram of shareworker sub thread;
Fig. 3 is in page operation control method provided in an embodiment of the present invention by calling shareworker sub thread pair A kind of flow diagram of page operation content progress loading processing;
Fig. 4 is a kind of method when obtaining page operation content in page operation control method provided in an embodiment of the present invention Flow diagram;
Fig. 5 is to judge whether for page operation content to be directed into page operation control method provided in an embodiment of the present invention A kind of method flow schematic diagram of loading processing is carried out in preset sub thread;
Fig. 6 is page operation control device basic structure block diagram provided in an embodiment of the present invention;
Fig. 7 is computer equipment basic structure block diagram provided in an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described.
In some processes of the description in description and claims of this specification and above-mentioned attached drawing, contain according to Multiple operations that particular order occurs, but it should be clearly understood that these operations can not be what appears in this article suitable according to its Sequence is executed or is executed parallel, and the serial number of the operation is only used for distinguishing each different operation, serial number not generation itself Table it is any execute sequence.In addition, these processes may include more or fewer operations, and these operations can be in order It executes or executes parallel.It should be noted that the description such as herein " first ", " second ", be for distinguish different message, Equipment, module etc. do not represent sequencing, also do not limit " first " and " second " and are different type.
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those skilled in the art's every other embodiment obtained under the premise of no creative work, It shall fall within the protection scope of the present invention.
Embodiment
Those skilled in the art of the present technique are appreciated that " terminal " used herein above, " terminal device " both include wireless communication The equipment of number receiver, only has the equipment of the wireless signal receiver of non-emissive ability, and including receiving and emitting hardware Equipment, have on bidirectional communication link, can execute two-way communication reception and emit hardware equipment.This equipment It may include: honeycomb or other communication equipments, shown with single line display or multi-line display or without multi-line The honeycomb of device or other communication equipments;PCS (Personal Communications Service, PCS Personal Communications System), can With combine voice, data processing, fax and/or communication ability;PDA (Personal Digital Assistant, it is personal Digital assistants), it may include radio frequency receiver, pager, the Internet/intranet access, web browser, notepad, day It goes through and/or GPS (Global Positioning System, global positioning system) receiver;Conventional laptop and/or palm Type computer or other equipment, have and/or the conventional laptop including radio frequency receiver and/or palmtop computer or its His equipment." terminal " used herein above, " terminal device " can be it is portable, can transport, be mounted on the vehicles (aviation, Sea-freight and/or land) in, or be suitable for and/or be configured in local runtime, and/or with distribution form, operate in the earth And/or any other position operation in space." terminal " used herein above, " terminal device " can also be communication terminal, on Network termination, music/video playback terminal, such as can be PDA, MID (Mobile Internet Device, mobile Internet Equipment) and/or mobile phone with music/video playing function, it is also possible to the equipment such as smart television, set-top box.
The user terminal referred in the present embodiment is above-mentioned terminal.
Referring to Fig. 1, the basic skills process that Fig. 1 is page operation control method provided in an embodiment of the present invention is illustrated Figure.
As shown in Figure 1, the page operation control method the following steps are included:
S100: it obtains terminal present procedure and executes corresponding page operation content when page operation.
In the present embodiment, terminal can automatically create a main thread for the active program when running program, Make calling program by the main thread and background server connection communication, it is relevant to execute interface display, update and interaction etc. Logical operation.When the terminal carries out page operation to the program page being currently running, the main thread is triggered backward Platform server issues page operation request, and the background server is requested to obtain the corresponding page operation content of the page operation, The page operation content transmission is carried out loading processing into the terminal, so that the terminal is completed according to loading result Page operation realizes the operation of the interrelated logics such as the corresponding interface display of page operation, update or the interaction that the terminal executes.
S200: the corresponding data volume of the page operation content is compared with preset first data-quantity threshold, with Whether the data volume for verifying the page operation content is greater than preset first data-quantity threshold.
It in the present embodiment, will be in the page operation after the background server acquires page operation content Appearance is transmitted to the terminal in the form of data flow.Monitoring unit is set on the terminal, when the terminal is described in the reception When the data flow that background server transmission comes, monitors the data flow and count the corresponding data volume of the data flow, then by institute It states the data volume that statistics obtains to be compared with the first data-quantity threshold preset in the terminal, to verify the page operation Whether the corresponding data volume of content is greater than preset first data-quantity threshold.If preset first data-quantity threshold is judgement Whether the main thread obstruction will cause by page operation content loading process of the main thread when executing page operation Data volume critical value, the data volume critical value can be set according to the CPU of the terminal.
S300:, will be described when the corresponding data volume of the page operation content is greater than preset first data-quantity threshold Page operation content, which is directed into preset sub thread, carries out loading processing, so that the terminal completes the page according to loading result Operation.
In the present embodiment, the page operation content is transmitted to after the terminal in the form of data flow, if comparing When showing that the corresponding data volume of the data flow is greater than preset first data-quantity threshold, illustrate the data of the page operation content Amount has exceeded the carrying range of the main thread, if page operation content when executing page operation by the main thread loaded Journey will cause the main thread obstruction.At this point, terminal can be by calling pre-set sub thread, by the page operation The corresponding data flow of content is directed into the preset sub thread and carries out loading processing, passes through institute in the page operation content It states after preset sub thread loading processing obtains loading result, the loading result is fed back into the main thread, then by described Main thread executes the corresponding page operation of the loading result, to realize the page operation corresponding interface that the terminal executes The interrelated logics operation such as display, update or interaction.The preset sub thread and the main thread are asynchronous event, described pre- If sub thread to the page operation content carry out loading processing during, the main thread continues to execute current operation program The operating function of the page, the two are independent of each other.
Page operation control method described in above-described embodiment is when acquiring terminal present procedure execution page operation After corresponding page operation content, by by the data volume of the page operation content and preset first data-quantity threshold into Row compares, to verify whether the data volume of the page operation content is greater than preset first data-quantity threshold;When the page When operation content corresponding data volume in face is greater than preset first data-quantity threshold, the page operation content is directed into default Sub thread in carry out loading processing so that the terminal according to loading result complete page operation.So, page is being executed When face operates, if the data volume of page operation content is larger, terminal can be by calling pre-set sub thread to carry out data Loading processing, so that terminal carries out load calculating when executing page operation with multithreading, to reduce because of page operation content number According to measure it is excessive and the case where cause main thread to block.Moreover, event performed by main thread and sub thread is asynchronous event, mutually not It influences, it is possible to reduce the time that user waits improves operational efficiency.
In some embodiments, referring to Figure 2 together and Fig. 3, Fig. 2 be page operation provided in an embodiment of the present invention control Page operation content is imported to a kind of flow diagram of shareworker sub thread in method;Fig. 3 mentions for the embodiment of the present invention By calling shareworker sub thread to carry out the one of loading processing to page operation content in the page operation control method of confession Kind flow diagram.
As shown in Figures 2 and 3, the pre-set sub thread is shareworker sub thread, is supported multiple and different The program page is cross-domain to be used in conjunction with the pre-set sub thread.For example, the preset sub thread can be in the main thread Middle creation, at this point, the load that the different page operations in same program can call the sub thread to carry out data calculates, thus Support the cross-domain shared use sub thread of multiple and different program pages.In another example the preset sub thread can also be in institute It states in terminal and creates, at this point, not only the different page operations in same program can call the load of sub thread progress data It calculates, the page operation of distinct program can also call the sub thread to carry out data load and calculate, to support multiple and different The cross-domain shared use sub thread of the program page.
In some embodiments, show that the corresponding data volume of the data flow is less than or equal to preset first data volume if comparing When threshold value, illustrate that the data volume of the page operation content also within the scope of the carrying of the main thread, is held by the main thread Page operation content loading process when row page operation will not cause the main thread to block.At this point, the terminal can be with Directly the corresponding data flow of the page operation content is directed into the main thread and carries out loading processing, is grasped in the page Make content after the preset sub thread loading processing obtains loading result, the loading result is fed back into the main line Journey, then the corresponding page operation of the loading result is executed by the main thread, to realize the page behaviour that the terminal executes Make the operation of the interrelated logics such as corresponding interface display, update or interaction.
In some embodiments, referring to Fig. 4, Fig. 4 is to obtain in page operation control method provided in an embodiment of the present invention Take a kind of method flow schematic diagram when page operation content.
As shown in figure 4, the step S100 can also include step S110 to step S120.Wherein, S110: terminal is received The page operation of transmission is requested, and has the corresponding resource identification field of page operation in the page operation request;S120: according to Mapping relations between the resource identification field and preset resource identification and page operation content obtain and the resource Identification field has the page operation content of mapping relations.
In the present embodiment, when user triggers a certain page operation at the terminal, the terminal can be to background server Send corresponding page operation request, the corresponding resource identification field of the page operation in the page operation request, the money The source identification field corresponding page operation content of the page operation for identification, can be set to protocol name, server name Claim, store path or file expand name etc..The background server is previously provided with resource database, and is stored in described Each single item page operation content in preset resource database all has corresponding unique resource identification, to form resource identification With the mapping relations between page operation content, the background server is by extracting resource identification from the page operation Field, according in the resource identification field and the preset resource data between resource identification and page operation content Mapping relations can extract relevant page operation content in preset resource database.Specifically, when the backstage takes After business device receives the page operation request, request to obtain corresponding to the page operation by parsing the page operation Then resource identification field calls the preset resource database, and according to resource mark in the preset resource database Know the mapping relations between page operation content, will from the page operation request resource identification field that parse with The page operation content being stored in the resource database is compared, and determines in the resource identification field and page operation Whether have mapping relations, to search and acquire and the resource identification word in the preset resource database if holding Section has the page operation content of mapping relations.
For example, when the page operation request that for example described background server receives is download pictures A, if from described It is TR336 that the resource identification field that obtains is parsed in page operation request, then by resource identification field TR336 and is stored in institute The page operation content stated in resource database is compared, and lookup is stored in which of resource database page behaviour Make content to correspond to unique resource identification to be TR336, corresponding unique resource identification is obtained from the resource database is Corresponding page when the page operation that the page operation content of TR336 is executed as the program page that the terminal is currently running Face operation content.
In some embodiments, referring to Fig. 5, Fig. 5 is to sentence in page operation control method provided in an embodiment of the present invention It is disconnected whether page operation content to be directed into a kind of method flow schematic diagram that loading processing is carried out in preset sub thread.
As shown in figure 5, in the present embodiment, the step S200 can also include step S210 and step S220.Wherein, S210: according to preset division rule by the page operation division of teaching contents be at least one component, count the page operation The corresponding data volume of each component in content;S220: by each corresponding data volume of component and preset second data volume Threshold value is compared, to verify whether the corresponding data volume of each component in the page operation content is greater than preset second number According to amount threshold value.
Terminal page shows that content is varied, in the present embodiment, acquires terminal present procedure and executes page behaviour It can also be at least one by page operation division of teaching contents according to preset division rule when making after corresponding page operation content A component, such as divided according to the type of page operation content, video component, picture component and text component can be divided into Etc..After page operation content is carried out component clustering, each component is monitored by the monitoring unit being arranged in the terminal Then corresponding data flow and the data volume for counting each component corresponding data stream count the data volume obtained and institute for described Preset second data-quantity threshold in terminal is stated to be compared, it is whether big to verify the corresponding data volume of the page operation content In preset second data-quantity threshold.When the corresponding data volume of the component is greater than preset second data-quantity threshold, by this The corresponding data flow of component, which is directed into preset sub thread, carries out loading processing.In the present embodiment, described preset second Data-quantity threshold can be configured according to page operation content type, and different types of component corresponds to the second different data volumes Threshold value.
The embodiment of the present invention also provides a kind of corresponding with the page operation control method to solve above-mentioned technical problem Page operation control device.Referring specifically to Fig. 6, Fig. 6 is that page operation control device provided in an embodiment of the present invention is tied substantially Structure block diagram.
As shown in fig. 6, a kind of page operation control device, comprising: obtain module, processing module and the first execution mould Block.Wherein, the module that obtains is used to obtain the page operation content of the terminal current operation program page, in the page operation Hold and is loaded onto the content of pages executed in the present procedure page to be to be added;The processing module is for counting the page operation The data volume of the page operation content is compared content corresponding data volume with preset first data-quantity threshold, with Whether the data volume for verifying the page operation content is greater than preset first data-quantity threshold;First execution module is used for When the corresponding data volume of the page operation content is greater than preset first data-quantity threshold, the page operation content is led Enter and carries out loading processing into preset sub thread.
Page operation control device described in above-described embodiment is when acquiring terminal present procedure execution page operation After corresponding page operation content, by by the data volume of the page operation content and preset first data-quantity threshold into Row compares, to verify whether the data volume of the page operation content is greater than preset first data-quantity threshold;When the page When operation content corresponding data volume in face is greater than preset first data-quantity threshold, the page operation content is directed into default Sub thread in carry out loading processing so that the terminal according to loading result complete page operation.So, page is being executed When face operates, if the data volume of page operation content is larger, terminal can be by calling pre-set sub thread to carry out data Loading processing, so that terminal carries out load calculating when executing page operation with multithreading, to reduce because of page operation content number According to measure it is excessive and the case where cause main thread to block.Moreover, event performed by main thread and sub thread is asynchronous event, mutually not It influences, it is possible to reduce the time that user waits improves operational efficiency.
In some embodiments, the page operation control device further include: the second execution module.Described second executes mould Block is used for when the corresponding data volume of the page operation content is less than or equal to preset first data-quantity threshold, by the page Operation content is introduced directly into the currently running main thread of the terminal and carries out loading processing, so that the terminal is described current Content of pages shown in the program page.
In some embodiments, in the page operation control device, the preset sub thread is shareworker Sub thread supports multiple and different program pages are cross-domain to be used in conjunction with the preset sub thread.
In some embodiments, the page operation control device further include: the first receiving submodule and first obtains son Module.Wherein, the page operation that first receiving submodule is used to receive terminal transmission is requested, in the page operation request With the corresponding resource identification field of page operation;First acquisition submodule be used for according to the resource identification field and Mapping relations between preset resource identification and page operation content, obtaining has mapping relations with the resource identification field Page operation content.
In some embodiments, the page operation control device further include: first divides submodule and the first processing Module.Wherein, the first division submodule is used to according to preset division rule be extremely by the page operation division of teaching contents A few component counts the corresponding data volume of each component in the page operation content;The first processing submodule is used for Corresponding corresponding preset first data-quantity threshold of data volume of each component is compared, to verify the page Whether the corresponding data volume of each component is greater than preset second data-quantity threshold in operation content.
In some embodiments, the page operation control device will be in the page operation according to preset division rule When appearance is divided at least one component, video component, picture component, text component are included at least one of the following:.
In order to solve the above technical problems, the embodiment of the invention also provides a kind of computer equipments.Referring specifically to Fig. 7, Fig. 7 is computer equipment basic structure block diagram provided in an embodiment of the present invention.
As shown in fig. 7, the schematic diagram of internal structure of computer equipment.As shown in fig. 7, the computer equipment includes passing through to be Processor, non-volatile memory medium, memory and the network interface of bus of uniting connection.Wherein, the computer equipment is non-easy The property lost storage medium is stored with operating system, database and computer-readable instruction, can be stored with control information sequence in database Column, when which is executed by processor, may make processor to realize a kind of page operation control method.The calculating The processor of machine equipment supports the operation of entire computer equipment for providing calculating and control ability.The computer equipment It can be stored with computer-readable instruction in memory, when which is executed by processor, processor may make to hold A kind of page operation control method of row.The network interface of the computer equipment is used for and terminal connection communication.Those skilled in the art Member is appreciated that structure shown in Fig. 7, only the block diagram of part-structure relevant to application scheme, composition pair The restriction for the computer equipment that application scheme is applied thereon, specific computer equipment may include than as shown in the figure more More or less component perhaps combines certain components or with different component layouts.
In the present embodiment, the processor obtains module 10, processing module 20 and the first execution mould for executing in Fig. 6 The concrete function of block 30, and the memory is stored with program code and Various types of data needed for executing above-mentioned module.The net Network interface is used for the data transmission between user terminal or server.Memory in the present embodiment is stored with page operation control Program code needed for executing all submodules in device processed and data, server are capable of the program code and number of invoking server According to the function of executing all submodules.
Computer equipment described in above-described embodiment is corresponding when acquiring terminal present procedure and executing page operation After page operation content, by the way that the data volume of the page operation content and preset first data-quantity threshold are compared It is right, to verify whether the data volume of the page operation content is greater than preset first data-quantity threshold;When the page is grasped When making the corresponding data volume of content greater than preset first data-quantity threshold, the page operation content is directed into preset son Loading processing is carried out in thread, so that the terminal completes page operation according to loading result.So, page behaviour is being executed When making, if the data volume of page operation content is larger, terminal can be by calling pre-set sub thread to carry out data load Processing, so that terminal carries out load calculating when executing page operation with multithreading, to reduce because of page operation amount of content data It is excessive and the case where cause main thread to block.Moreover, event performed by main thread and sub thread is asynchronous event, mutual not shadow It rings, it is possible to reduce the time that user waits improves operational efficiency.
The present invention also provides a kind of storage mediums for being stored with computer-readable instruction, and the computer-readable instruction is by one When a or multiple processors execute, so that one or more processors execute page operation controlling party described in any of the above-described embodiment The step of method.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, which can be stored in a computer-readable storage and be situated between In matter, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, storage medium above-mentioned can be The non-volatile memory mediums such as magnetic disk, CD, read-only memory (Read-Only Memory, ROM) or random storage note Recall body (Random Access Memory, RAM) etc..
It should be understood that although each step in the flow chart of attached drawing is successively shown according to the instruction of arrow, These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps Execution there is no stringent sequences to limit, can execute in the other order.Moreover, at least one in the flow chart of attached drawing Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps Completion is executed, but can be executed at different times, execution sequence, which is also not necessarily, successively to be carried out, but can be with other At least part of the sub-step or stage of step or other steps executes in turn or alternately.
The above is only some embodiments of the invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (10)

1. a kind of page operation control method, which comprises the following steps:
It obtains terminal present procedure and executes corresponding page operation content when page operation;
The corresponding data volume of the page operation content is compared with preset first data-quantity threshold, to verify the page Whether operation content corresponding data volume in face is greater than preset first data-quantity threshold;
It, will be in the page operation when the corresponding data volume of the page operation content is greater than preset first data-quantity threshold Appearance, which is directed into preset sub thread, carries out loading processing, so that the terminal completes page operation according to loading result.
2. page operation control method according to claim 1, which is characterized in that the page operation content is corresponding After data volume is compared with preset first data-quantity threshold, further includes:
When the corresponding data volume of the page operation content is less than or equal to preset first data-quantity threshold, the page is grasped It is introduced directly into the corresponding main thread of the terminal present procedure as content and carries out loading processing, so that the terminal is according to load As a result page operation is completed.
3. page operation control method according to claim 1, which is characterized in that the preset sub thread is Shareworker sub thread supports multiple and different program pages are cross-domain to be used in conjunction with the preset sub thread.
4. page operation control method according to claim 1, which is characterized in that execute page obtaining terminal present procedure When face operates when corresponding page operation content, comprising:
The page operation request that terminal is sent is received, there is the corresponding resource identification word of page operation in the page operation request Section;
According to the mapping relations between the resource identification field and preset resource identification and page operation content, obtain with The resource identification field has the page operation content of mapping relations.
5. page operation control method according to claim 1, which is characterized in that the page operation content is corresponding Whether data volume is compared with preset second data-quantity threshold, big to verify the corresponding data volume of the page operation content When preset second data-quantity threshold, can also include:
According to preset division rule by the page operation division of teaching contents be at least one component, count in the page operation The corresponding data volume of each component in appearance;
Corresponding corresponding preset first data-quantity threshold of data volume of each component is compared, described in verifying Whether the corresponding data volume of each component is greater than preset second data-quantity threshold in page operation content.
6. page operation control method according to claim 5, which is characterized in that will be described according to preset division rule When page operation division of teaching contents is at least one component, video component, picture component, text component are included at least one of the following:.
7. a kind of page operation control device characterized by comprising
Module is obtained, corresponding page operation content when for obtaining terminal present procedure execution page operation;
Processing module, for comparing the corresponding data volume of the page operation content with preset first data-quantity threshold It is right, to verify whether the corresponding data volume of the page operation content is greater than preset first data-quantity threshold;
First execution module, for being greater than preset first data-quantity threshold when the corresponding data volume of the page operation content When, the page operation content is directed into preset sub thread and carries out loading processing, so that the terminal is tied according to load Fruit completes page operation.
8. page operation control device according to claim 7, which is characterized in that further include:
Second execution module, for being less than or equal to preset first data volume threshold when the corresponding data volume of the page operation content When value, the page operation content is introduced directly into the corresponding main thread of the terminal present procedure and carries out loading processing, with The terminal is set to complete page operation according to loading result.
9. a kind of electronic equipment, including memory and processor, computer-readable instruction, the meter are stored in the memory When calculation machine readable instruction is executed by the processor, so that the processor executes described in 1 to 6 any one of the claims Page operation control method.
10. a kind of storage medium for being stored with computer-readable instruction, the computer-readable instruction is handled by one or more When device executes, so that one or more processors execute the page described in any one of the claims 1 to 6 claim Method of controlling operation thereof.
CN201910198261.1A 2019-03-15 2019-03-15 Page operation control method, device, computer equipment and storage medium Pending CN110058897A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910198261.1A CN110058897A (en) 2019-03-15 2019-03-15 Page operation control method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910198261.1A CN110058897A (en) 2019-03-15 2019-03-15 Page operation control method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110058897A true CN110058897A (en) 2019-07-26

Family

ID=67316970

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910198261.1A Pending CN110058897A (en) 2019-03-15 2019-03-15 Page operation control method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110058897A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111258736A (en) * 2020-01-17 2020-06-09 北京无限光场科技有限公司 Information processing method and device and electronic equipment
CN111694628A (en) * 2020-05-28 2020-09-22 平安普惠企业管理有限公司 Page display method based on application program thread and related equipment
CN112257135A (en) * 2020-10-30 2021-01-22 久瓴(上海)智能科技有限公司 Model loading method and device based on multithreading, storage medium and terminal
CN113282295A (en) * 2021-05-25 2021-08-20 青岛海尔科技有限公司 Jam processing method and device, storage medium and electronic device
CN113806189A (en) * 2020-06-16 2021-12-17 北京字节跳动网络技术有限公司 User interface operation monitoring method, device, equipment and storage medium
CN114237796A (en) * 2021-12-17 2022-03-25 平安不动产有限公司 Page exporting method, device, equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107832100A (en) * 2017-10-27 2018-03-23 平安普惠企业管理有限公司 A kind of loading method and its terminal of APK plug-in units
CN107977371A (en) * 2016-10-21 2018-05-01 阿里巴巴集团控股有限公司 Requesting method, display methods and the client of page elements
CN108733445A (en) * 2018-05-17 2018-11-02 北京五八信息技术有限公司 A kind of view management method, device, equipment and computer readable storage medium
CN109359256A (en) * 2018-09-29 2019-02-19 北京城市网邻信息技术有限公司 Page loading method, device, equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107977371A (en) * 2016-10-21 2018-05-01 阿里巴巴集团控股有限公司 Requesting method, display methods and the client of page elements
CN107832100A (en) * 2017-10-27 2018-03-23 平安普惠企业管理有限公司 A kind of loading method and its terminal of APK plug-in units
CN108733445A (en) * 2018-05-17 2018-11-02 北京五八信息技术有限公司 A kind of view management method, device, equipment and computer readable storage medium
CN109359256A (en) * 2018-09-29 2019-02-19 北京城市网邻信息技术有限公司 Page loading method, device, equipment and storage medium

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111258736A (en) * 2020-01-17 2020-06-09 北京无限光场科技有限公司 Information processing method and device and electronic equipment
CN111258736B (en) * 2020-01-17 2023-10-27 北京有竹居网络技术有限公司 Information processing method and device and electronic equipment
CN111694628A (en) * 2020-05-28 2020-09-22 平安普惠企业管理有限公司 Page display method based on application program thread and related equipment
CN111694628B (en) * 2020-05-28 2024-02-09 匠为文化科技集团有限公司 Page display method and related equipment for threads based on application program
CN113806189A (en) * 2020-06-16 2021-12-17 北京字节跳动网络技术有限公司 User interface operation monitoring method, device, equipment and storage medium
CN112257135A (en) * 2020-10-30 2021-01-22 久瓴(上海)智能科技有限公司 Model loading method and device based on multithreading, storage medium and terminal
CN112257135B (en) * 2020-10-30 2023-09-05 久瓴(上海)智能科技有限公司 Model loading method and device based on multithreading, storage medium and terminal
CN113282295A (en) * 2021-05-25 2021-08-20 青岛海尔科技有限公司 Jam processing method and device, storage medium and electronic device
CN113282295B (en) * 2021-05-25 2024-02-23 青岛海尔科技有限公司 Blocking processing method and device, storage medium and electronic device
CN114237796A (en) * 2021-12-17 2022-03-25 平安不动产有限公司 Page exporting method, device, equipment and medium

Similar Documents

Publication Publication Date Title
CN110058897A (en) Page operation control method, device, computer equipment and storage medium
CN102542009B (en) Data query method and device
US8868637B2 (en) Page rendering for dynamic web pages
AU2014348821B2 (en) Location-based software updates
CN111818136B (en) Data processing method, device, electronic equipment and computer readable medium
CN108845816A (en) Application program update method, system, computer equipment and storage medium
US20220075932A1 (en) Method and apparatus for inserting information into online document
AU2015311714A1 (en) Providing route information to devices during a shared transport service
CN111476015B (en) Document processing method and device, electronic equipment and storage medium
CN110457613A (en) Page data loading control method, device, computer equipment and storage medium
CN109618174A (en) A kind of live data transmission method, device, system and storage medium
CN110377503A (en) Method for testing pressure, device, computer equipment and storage medium
CN111464352A (en) Call link data processing method and device
US20240045879A1 (en) Presentation method, apparatus and electronic device
CN112712801A (en) Voice wake-up method and device, electronic equipment and storage medium
CN111723309B (en) Method and device for web page searching
CN110069302A (en) Page configuration method, apparatus, computer equipment and storage medium
CN110086848A (en) Sending method, device, computer equipment and the storage medium of network request
CN112486825B (en) Multi-lane environment architecture system, message consumption method, device, equipment and medium
CN111381976A (en) Message prompt data updating method and device, storage medium and computer equipment
CN113296762B (en) Page embedding method and device, storage medium and electronic equipment
CN115357361A (en) Task processing method, device, equipment and medium
US11277300B2 (en) Method and apparatus for outputting information
CN111880773A (en) Data processing method and device, electronic equipment and storage medium
CN106844502B (en) Data consistency processing method and equipment

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