CN105677314A - Processing method and apparatus of scroll events, and device - Google Patents
Processing method and apparatus of scroll events, and device Download PDFInfo
- Publication number
- CN105677314A CN105677314A CN201510989677.7A CN201510989677A CN105677314A CN 105677314 A CN105677314 A CN 105677314A CN 201510989677 A CN201510989677 A CN 201510989677A CN 105677314 A CN105677314 A CN 105677314A
- Authority
- CN
- China
- Prior art keywords
- rolling
- webpage
- back function
- call back
- intervalometer
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/0485—Scrolling or panning
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
- Telephonic Communication Services (AREA)
Abstract
The present invention relates to a processing method and apparatus of scroll events, and a device. The method comprises the steps of receiving a scroll trigger instruction; according to the scroll trigger instruction, on a web page corresponding to identification of a to-be-processed web page, if obtaining a first scroll event during the scroll processing, creating and starting a timer; and calling a callback function when duration recorded by the timer reaches preset duration, and obtaining coordinate information of the to-be-processed web page according to the callback function. The number of times for calculating coordinate information of web pages during a scroll process is reduced, and fluency of the web pages is increased.
Description
Technical field
The present invention relates to computer networking technology, particularly relate to and a kind of roll the processing method of event, device and equipment.
Background technology
In web application, (scroll) event of rolling assume responsibility for the functions such as triggering request or animation. Under normal circumstances, in rolling process, need the position of dynamic calculation webpage; In correlation technique, each rolling event all can trigger the position coordinates process calculating webpage.
Summary of the invention
For overcoming Problems existing in correlation technique, the disclosure provides a kind of and rolls the processing method of event, device and equipment.
First aspect according to disclosure embodiment, it is provided that a kind of processing method rolling event, including:
Receive and roll triggering command; Described rolling triggering command includes: the mark of pending webpage;
According to described rolling triggering command, on the webpage that the mark of described pending webpage is corresponding, if get first rolling event in scroll process, create and start intervalometer;
When the duration of described intervalometer record reaches preset duration, call call back function, and obtain the coordinate information of described pending webpage according to described call back function.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect: roll triggering command by receiving; According to described rolling triggering command, on the webpage that the mark of described pending webpage is corresponding, if get first rolling event in scroll process, create and start intervalometer; Further, when the duration of described intervalometer record reaches preset duration, call call back function, and obtain the coordinate information of described pending webpage according to described call back function. Visible, when the duration only recorded at the intervalometer created for first rolling event reaches preset duration, by calling call back function to calculate the coordinate information of pending webpage, thus decreasing the number of times of the coordinate information calculating webpage in rolling process, add the fluency of the page.
Further, described in call call back function after, also include:
The content of described call back function is carried out caching process.
Further, described in call call back function after, also include:
Empty described intervalometer.
Further, after the described coordinate information obtaining described pending webpage according to described call back function, also include:
The described pending webpage of display is refreshed according to described coordinate information.
Further, described preset duration is 100ms.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect: guarantee have after triggering rolling event and the existence of only one of which intervalometer by caching mechanism, call back function can be prevented further to be called frequently to calculate the coordinate information of webpage, thus decreasing the number of times of the coordinate information calculating webpage in rolling process, improve FPS value, it is ensured that the fluency of the page.
Second aspect according to disclosure embodiment, it is provided that a kind of process device rolling event, including:
Receiver module, is configured to receive rolling triggering command; Described rolling triggering command includes: the mark of pending webpage;
Processing module, is configured to according to described rolling triggering command, on the webpage that the mark of described pending webpage is corresponding, if get first rolling event in scroll process, creates and starts intervalometer;
Calling module, is configured to when the duration of described intervalometer record reaches preset duration, calls call back function, and obtains the coordinate information of described pending webpage according to described call back function.
Further, described device, also include:
Cache module, is configured to the content of described call back function is carried out caching process.
Further, described device, also include:
Empty module, be configured to empty described intervalometer.
Further, described device also includes:
Refresh module, is configured to refresh the described pending webpage of display according to described coordinate information.
Further, described preset duration is 100ms.
The third aspect according to disclosure embodiment, it is provided that a kind of terminal unit, including: processor, receptor and for storing the memorizer of processor executable;
Described receptor is configured to: receives and rolls triggering command; Described rolling triggering command includes: the mark of pending webpage;
Described processor is configured to: according to described rolling triggering command, on the webpage that the mark of described pending webpage is corresponding, if get first rolling event in scroll process, creates and starts intervalometer;
When the duration of described intervalometer record reaches preset duration, call call back function, and obtain the coordinate information of described pending webpage according to described call back function.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect: provide a kind of and roll the processing method of event, device and equipment, by according to described rolling triggering command, on the webpage that the mark of described pending webpage is corresponding, if get first rolling event in scroll process, create and start intervalometer; Further, when the duration of described intervalometer record reaches preset duration, call call back function, and obtain the coordinate information of described pending webpage according to described call back function. Visible, when the duration only recorded at the intervalometer created for first rolling event reaches preset duration, by calling call back function to calculate the coordinate information of pending webpage, thus decreasing the number of times of the coordinate information calculating webpage in rolling process, add the fluency of the page.
It should be appreciated that it is only exemplary and explanatory that above general description and details hereinafter describe, the disclosure can not be limited.
Accompanying drawing explanation
Accompanying drawing herein is merged in description and constitutes the part of this specification, it is shown that meets embodiments of the invention, and is used for explaining principles of the invention together with description.
Fig. 1 is the flow chart of a kind of processing method rolling event according to an exemplary embodiment;
Fig. 2 is a kind of block diagram processing device embodiment one rolling event according to an exemplary embodiment;
Fig. 3 is a kind of block diagram processing device embodiment two rolling event according to an exemplary embodiment;
Fig. 4 is a kind of block diagram processing device embodiment three rolling event according to an exemplary embodiment;
Fig. 5 is a kind of block diagram processing device embodiment four rolling event according to an exemplary embodiment;
Fig. 6 is the block diagram of the entity of a kind of terminal unit according to an exemplary embodiment;
Fig. 7 is the block diagram of a kind of terminal unit 1200 according to an exemplary embodiment.
By above-mentioned accompanying drawing, it has been shown that the embodiment that the disclosure is clear and definite, will there is more detailed description hereinafter. These accompanying drawings and word describe the scope being not intended to be limited disclosure design by any mode, but are the concept that those skilled in the art illustrate the disclosure by reference specific embodiment.
Detailed description of the invention
Here in detail exemplary embodiment being illustrated, its example representation is in the accompanying drawings. When as explained below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element. Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the present invention. On the contrary, they only with in appended claims describe in detail, the present invention some in the example of consistent apparatus and method.
Fig. 1 is the flow chart of a kind of processing method rolling event according to an exemplary embodiment, as it is shown in figure 1, the processing method of this rolling event can be applicable to, in all kinds of terminal unit, rolling event be processed. Comprise the following steps:
In step S101, receive and roll triggering command; Described rolling triggering command includes: the mark of pending webpage.
In this step, when user by mouse slip webpage or user by webpage in finger slip touch screen time, terminal unit receives the rolling triggering command of user, alternatively, described rolling triggering command includes: the mark of pending webpage (webpage that namely corresponding described user is slided by mouse or described user are by the webpage in finger slip touch screen).
In step s 102, according to described rolling triggering command, on the webpage that the mark of described pending webpage is corresponding, if get first rolling event in scroll process, create and start intervalometer.
In step s 103, when the duration of described intervalometer record reaches preset duration, call call back function, and obtain the coordinate information of described pending webpage according to described call back function.
Alternatively, whenever described user by mouse slip webpage or user by webpage in finger slip touch screen time, multiple rolling (scroll) event can be triggered, namely described triggering command can trigger multiple scroll event, for the ease of describing, alternatively, the multiple scroll events described triggering command triggered in disclosure embodiment arrange according to the time sequencing occurred, first time rolling event that such as described triggering command triggers is 1ms, second time rolling event that described triggering command triggers is 2ms, the 3rd time rolling event that described triggering command triggers is 3ms ... the 100th time rolling event that described triggering command triggers is 100ms, it is 102ms that described triggering command trigger the 101st rolls the 102nd time rolling event that the time of event is 101ms and described triggering command triggers.Wherein, describe in order to convenient, disclosure embodiment triggers 101 rolling events for described triggering command illustrate, certainly, the interval that each triggering command also can trigger between other quantity rolling event and each rolling event is alternatively At All Other Times, and disclosure embodiment is to this and is not limited as.
In step s 102, the described rolling triggering command according to the mark including described pending webpage, on described pending webpage, if get first rolling event in scroll process, create and start intervalometer, further, in step S103, when the duration of described intervalometer record reaches preset duration, call readjustment (callback) function (alternatively, described call back function includes: calculate the functional module of the coordinate information of webpage, certainly, described call back function also includes other function, repeat no more) herein, and the coordinate information (namely according to the functional module being used for calculating the coordinate information of webpage in described call back function, get the coordinate information of described pending webpage) of described pending webpage is obtained according to described call back function, alternatively, described preset duration is 100ms (certainly, described preset duration can be also other numerical value, and disclosure embodiment is to this and is not limited as), alternatively, in the present embodiment, by unbinding and weighing bindings DOM Document Object Model (DocumentObjectModel is called for short Dom) object every time, it is ensured that each rolling event only one of which call back function. alternatively, after step s 103, if described triggering command is still in triggering rolling event (such as the 101st rolls event), then making described 101st rolling event is first rolling event, create and start intervalometer, and perform step S103, by that analogy. alternatively, after step s 103, if again receiving the rolling triggering command of the mark including pending webpage of user, then step S102 and step S103 is performed, by that analogy. visible, in disclosure embodiment, before the duration recorded at the intervalometer created for first rolling event reaches preset duration, multiple rolling events (such as above-mentioned second rolling event rolls event to the 100th) that described triggering command triggers create intervalometer and never call call back function to calculate the coordinate information of pending webpage, when the duration only recorded at the intervalometer created for first rolling event reaches preset duration, by calling call back function to calculate the coordinate information of pending webpage, thus decreasing the number of times of the coordinate information calculating webpage in rolling process, add the fluency of the page.
A kind of processing method rolling event that the present embodiment provides, rolls triggering command by receiving; According to described rolling triggering command, on the webpage that the mark of described pending webpage is corresponding, if get first rolling event in scroll process, create and start intervalometer; Further, when the duration of described intervalometer record reaches preset duration, call call back function, and obtain the coordinate information of described pending webpage according to described call back function. Visible, when the duration only recorded at the intervalometer created for first rolling event reaches preset duration, by calling call back function to calculate the coordinate information of pending webpage, thus decreasing the number of times of the coordinate information calculating webpage in rolling process, add the fluency of the page.
Alternatively, in order to prevent each rolling event from can create intervalometer, on the basis of above-described embodiment, described in call call back function after, also include: the content of described call back function is carried out caching process, to prevent from being repeated to call in a short time.Alternatively, can first judging currently whether there is intervalometer before creating intervalometer, if existing, then not creating new intervalometer; Visible, guarantee have after triggering rolling event and the existence of only one of which intervalometer by caching mechanism, call back function can be prevented further to be called frequently to calculate the coordinate information of webpage, thus decreasing the number of times of the coordinate information calculating webpage in rolling process, improve transmission frame number (FramesperSecond per second, it is called for short FPS) value, it is ensured that the fluency of the page.
Alternatively, on the basis of above-described embodiment, described in call call back function after, also include: empty described intervalometer; Namely when the duration recorded at described intervalometer reaches preset duration, call back function is called, after calculating the coordinate information of pending webpage, to empty described intervalometer, in order to repeatable when creating intervalometer for first rolling event afterwards utilize this intervalometer.
Alternatively, after getting the coordinate information of described pending webpage, also include: refresh the described pending webpage of display according to described coordinate information, namely the pending webpage after updating according to the display of described coordinate information, to realize along with user is by mouse slip webpage or by showing the purpose of webpage in finger slip touch screen.
Alternatively, in the present embodiment, unbinding every time and weighing bindings and can be accomplished in that Dom object
VarscrollEvent=function (callback, opt)
$win.off(‘scroll.onbottom’).on(‘scroll.onbottom’,function(){……
Alternatively, step S102 and step S103 can be accomplished in that
Certainly, above-mentioned steps S102 and S103 realizes also by other code means, and disclosure embodiment is to this and is not limited as.
Fig. 2 is a kind of block diagram processing device embodiment one rolling event according to an exemplary embodiment, as in figure 2 it is shown, the process device 20 of this rolling event, including:
Receiver module 201, is configured to receive rolling triggering command; Described rolling triggering command includes: the mark of pending webpage;
Processing module 202, is configured to according to described rolling triggering command, on the webpage that the mark of described pending webpage is corresponding, if get first rolling event in scroll process, creates and starts intervalometer;
Calling module 203, is configured to when the duration of described intervalometer record reaches preset duration, calls call back function, and obtains the coordinate information of described pending webpage according to described call back function.
The process device of the rolling event that disclosure embodiment provides, is received by receiver module and rolls triggering command; Processing module is according to described rolling triggering command, on the webpage that the mark of described pending webpage is corresponding, if get first rolling event in scroll process, creates and starts intervalometer; Further, calling module, when the duration of described intervalometer record reaches preset duration, calls call back function, and obtains the coordinate information of described pending webpage according to described call back function. Visible, when the duration only recorded at the intervalometer created for first rolling event reaches preset duration, by calling call back function to calculate the coordinate information of pending webpage, thus decreasing the number of times of the coordinate information calculating webpage in rolling process, add the fluency of the page.
On the basis of the embodiment shown in above-mentioned Fig. 2, Fig. 3 is a kind of block diagram processing device embodiment two rolling event according to an exemplary embodiment, and with reference to Fig. 3, described device also includes:
Cache module 204, is configured to the content of described call back function is carried out caching process.
On the basis of the embodiment shown in above-mentioned Fig. 2 or Fig. 3, Fig. 4 is a kind of block diagram processing device embodiment three rolling event according to an exemplary embodiment, and with reference to Fig. 4, described device also includes:
Empty module 205, be configured to empty described intervalometer.
On the basis of the embodiment shown in above-mentioned Fig. 2-Fig. 4, Fig. 5 is a kind of block diagram processing device embodiment four rolling event according to an exemplary embodiment, and with reference to Fig. 5, described device also includes:
Refresh module 206, is configured to refresh the described pending webpage of display according to described coordinate information.
Further, described preset duration is 100ms.
The process device of the rolling event of any of the above-described embodiment offer, for the technical scheme of said method embodiment, it is similar with technique effect that it realizes principle, rolls triggering command by receiving; According to described rolling triggering command, on the webpage that the mark of described pending webpage is corresponding, if get first rolling event in scroll process, create and start intervalometer; Further, when the duration of described intervalometer record reaches preset duration, call call back function, and obtain the coordinate information of described pending webpage according to described call back function. Visible, when the duration only recorded at the intervalometer created for first rolling event reaches preset duration, by calling call back function to calculate the coordinate information of pending webpage, thus decreasing the number of times of the coordinate information calculating webpage in rolling process, add the fluency of the page.
The foregoing describe the inner function module processing device and the structural representation of rolling event, its substantial executive agent should be terminal unit, Fig. 6 is the block diagram of the entity of a kind of terminal unit according to an exemplary embodiment, with reference to Fig. 6, this terminal unit can be implemented as: processor, receptor and for storing the memorizer of processor executable;
Described receptor is configured to: receives and rolls triggering command; Described rolling triggering command includes: the mark of pending webpage;
Described processor is configured to: according to described rolling triggering command, on the webpage that the mark of described pending webpage is corresponding, if get first rolling event in scroll process, creates and starts intervalometer;
When the duration of described intervalometer record reaches preset duration, call call back function, and obtain the coordinate information of described pending webpage according to described call back function.
In the embodiment of the terminal unit of above-mentioned information, it should be appreciated that this receptor can be the input equipment of terminal unit, this input equipment can include touch screen and other input equipment; Wherein, touch screen is also referred to as contact panel, user can be collected thereon or neighbouring touch operation (such as user uses any applicable object such as finger, stylus or adnexa operation on the touchscreen or near touch screen), and drive corresponding connecting device according to formula set in advance; Optionally, touch screen can include touch detecting apparatus and two parts of touch controller; Wherein, the touch orientation of touch detecting apparatus detection user, and detect the signal that touch operation brings, transmit a signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor, and can receive order that processor sends and be performed.Furthermore, it is possible to adopt the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave to realize touch screen. Except touch screen, input equipment can also include other input equipment, alternatively, other input equipment described can include but not limited to one or more in physical keyboard, function key (such as volume control button, power switch button etc.), trace ball, mouse, action bars etc.
This processor can be that CPU is (English: CentralProcessingUnit, it is called for short: CPU), can also is that other general processors, digital signal processor are (English: DigitalSignalProcessor, it is called for short: DSP), (English: ApplicationSpecificIntegratedCircuit is called for short: ASIC) etc. special IC. The processor etc. that general processor can be microprocessor or this processor can also be any routine, and aforesaid memorizer can be read only memory (English: read-onlymemory, abbreviation: ROM), random access memory (English: randomaccessmemory, RAM), flash memory, hard disk or solid state hard disc be called for short:. SIM is also referred to as subscriber identification card, smart card, and digital mobile telephone must be loaded onto this card and can use. Namely on computer chip, the information of digital mobile phone client is stored, the content such as the key of encryption and telephone directory of user. Hardware processor can be embodied directly in conjunction with the step of the method disclosed in the embodiment of the present invention to have performed, or combine execution by the hardware in processor and software module and complete.
Fig. 7 is the block diagram of a kind of terminal unit 1200 according to an exemplary embodiment. Such as, the process device of this rolling event can be the terminal units such as smart mobile phone, computer, panel computer. With reference to Fig. 7, terminal unit 1200 can include following one or more assembly: processes assembly 1202, memorizer 1204, electric power assembly 1206, multimedia groupware 1208, audio-frequency assembly 1210, the interface 1212 of input/output (I/O), sensor cluster 1214, and communications component 1216.
Process assembly 1202 and generally control the integrated operation of terminal unit 1200, such as with display, data communication, the operation that multimedia operations and record operation are associated. Process assembly 1202 and can include one or more processor 1220 to perform instruction, to complete all or part of step of above-mentioned method. Additionally, process assembly 1202 can include one or more module, it is simple to what process between assembly 1202 and other assemblies is mutual. Such as, process assembly 1202 and can include multi-media module, with facilitate multimedia groupware 1208 and process between assembly 1202 mutual.
Memorizer 1204 is configured to store various types of data to support the operation at terminal unit 1200. The example of these data includes any application program for operation on terminal unit 1200 or the instruction of method, Various types of data, message, picture, video etc. Memorizer 1204 can be realized by any kind of volatibility or non-volatile memory device or their combination, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, flash memory, disk or CD.
The various assemblies that electric power assembly 1206 is terminal unit 1200 provide electric power.Electric power assembly 1206 can include power-supply management system, one or more power supplys, and other generate, manage and distribute, with for terminal unit 1200, the assembly that electric power is associated.
Multimedia groupware 1208 includes the screen providing an output interface between described terminal unit 1200 and user. In certain embodiments, screen can include liquid crystal display (LCD) and touch panel (TP). If screen includes touch panel, screen may be implemented as touch screen, to receive the input signal from user. Touch panel includes one or more touch sensor to sense the gesture on touch, slip and touch panel. Described touch sensor can not only sense the border of touch or sliding action, but also detects the persistent period relevant to described touch or slide and pressure.
Audio-frequency assembly 1210 is configured to output and/or input audio signal. Such as, audio-frequency assembly 1210 includes a mike (MIC), and when terminal unit 1200 is in operator scheme, during such as call model, logging mode and speech recognition mode, mike is configured to receive external audio signal. The audio signal received can be further stored at memorizer 1204 or send via communications component 1216. In certain embodiments, audio-frequency assembly 1210 also includes a speaker, is used for exporting audio signal.
I/O interface 1212 provides interface for processing between assembly 1202 and peripheral interface module, above-mentioned peripheral interface module can be keyboard, puts striking wheel, button etc.
Sensor cluster 1214 includes one or more sensor, for providing the state estimation of various aspects for terminal unit 1200. Such as, what sensor cluster 1214 can detect terminal unit 1200 opens/closed mode, the relative localization of assembly, such as described assembly is display and the keypad of terminal unit 1200, sensor cluster 1214 can also detect terminal unit 1200 or the position change of 1,200 1 assemblies of terminal unit, the presence or absence that user contacts with terminal unit 1200, the variations in temperature of terminal unit 1200 orientation or acceleration/deceleration and terminal unit 1200. Sensor cluster 1214 can include proximity transducer, is configured to when not having any physical contact object near detection. Sensor cluster 1214 can also include optical sensor, such as CMOS or ccd image sensor, for using in imaging applications. In certain embodiments, this sensor cluster 1214 can also include acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 1216 is configured to facilitate between terminal unit 1200 and other equipment the communication of wired or wireless mode. Terminal unit 1200 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or their combination. In one exemplary embodiment, communications component 1216 receives the broadcast singal or the broadcast related information that manage system from external broadcasting via broadcast channel. In one exemplary embodiment, described communications component 1216 also includes near-field communication (NFC) module, to promote junction service. Such as, can based on RF identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, terminal unit 1200 can be realized by one or more application specific integrated circuits (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components, is used for performing said method.
In the exemplary embodiment, additionally providing a kind of non-transitory computer-readable recording medium including instruction, for instance include the memorizer 1204 of instruction, above-mentioned instruction can have been performed said method by the processor 1220 of terminal unit 1200. Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the process assembly processing device rolling event so that the device that processes rolling event is able to carry out a kind of processing method rolling event, and described method includes:
Receive and roll triggering command; Described rolling triggering command includes: the mark of pending webpage;
According to described rolling triggering command, on the webpage that the mark of described pending webpage is corresponding, if get first rolling event in scroll process, create and start intervalometer;
When the duration of described intervalometer record reaches preset duration, call call back function, and obtain the coordinate information of described pending webpage according to described call back function.
Further, described in call call back function after, also include:
The content of described call back function is carried out caching process.
Further, described in call call back function after, also include:
Empty described intervalometer.
Further, after the described coordinate information obtaining described pending webpage according to described call back function, also include:
The described pending webpage of display is refreshed according to described coordinate information.
Further, described preset duration is 100ms.
Those skilled in the art, after considering description and putting into practice invention disclosed herein, will readily occur to other embodiment of the present invention. The application is intended to any modification of the present invention, purposes or adaptations, and these modification, purposes or adaptations are followed the general principle of the present invention and include the undocumented known general knowledge in the art of the disclosure or conventional techniques means. Description and embodiments is considered only as exemplary, and the true scope of the present invention and spirit are pointed out by claim below.
It should be appreciated that the invention is not limited in precision architecture described above and illustrated in the accompanying drawings, and various amendment and change can carried out without departing from the scope. The scope of the present invention is only limited by appended claim.
Claims (11)
1. the processing method rolling event, it is characterised in that including:
Receive and roll triggering command; Described rolling triggering command includes: the mark of pending webpage;
According to described rolling triggering command, on the webpage that the mark of described pending webpage is corresponding, if get first rolling event in scroll process, create and start intervalometer;
When the duration of described intervalometer record reaches preset duration, call call back function, and obtain the coordinate information of described pending webpage according to described call back function.
2. method according to claim 1, it is characterised in that described in call call back function after, also include:
The content of described call back function is carried out caching process.
3. method according to claim 1, it is characterised in that described in call call back function after, also include:
Empty described intervalometer.
4. method according to claim 1, it is characterised in that after the described coordinate information obtaining described pending webpage according to described call back function, also include:
The described pending webpage of display is refreshed according to described coordinate information.
5. the method according to any one of claim 1-4, it is characterised in that described preset duration is 100ms.
6. the process device rolling event, it is characterised in that including:
Receiver module, is configured to receive rolling triggering command; Described rolling triggering command includes: the mark of pending webpage;
Processing module, is configured to according to described rolling triggering command, on the webpage that the mark of described pending webpage is corresponding, if get first rolling event in scroll process, creates and starts intervalometer;
Calling module, is configured to when the duration of described intervalometer record reaches preset duration, calls call back function, and obtains the coordinate information of described pending webpage according to described call back function.
7. device according to claim 6, it is characterised in that described device, also includes:
Cache module, is configured to the content of described call back function is carried out caching process.
8. device according to claim 6, it is characterised in that described device, also includes:
Empty module, be configured to empty described intervalometer.
9. device according to claim 6, it is characterised in that described device also includes:
Refresh module, is configured to refresh the described pending webpage of display according to described coordinate information.
10. the device according to any one of claim 6-9, it is characterised in that described preset duration is 100ms.
11. a terminal unit, it is characterised in that including: processor, receptor and for storing the memorizer of processor executable;
Described receptor is configured to: receives and rolls triggering command; Described rolling triggering command includes: the mark of pending webpage;
Described processor is configured to: according to described rolling triggering command, on the webpage that the mark of described pending webpage is corresponding, if get first rolling event in scroll process, creates and starts intervalometer;
When the duration of described intervalometer record reaches preset duration, call call back function, and obtain the coordinate information of described pending webpage according to described call back function.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510989677.7A CN105677314B (en) | 2015-12-24 | 2015-12-24 | Processing method, device and the equipment of rolling event |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510989677.7A CN105677314B (en) | 2015-12-24 | 2015-12-24 | Processing method, device and the equipment of rolling event |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105677314A true CN105677314A (en) | 2016-06-15 |
CN105677314B CN105677314B (en) | 2019-06-21 |
Family
ID=56189641
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510989677.7A Active CN105677314B (en) | 2015-12-24 | 2015-12-24 | Processing method, device and the equipment of rolling event |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105677314B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106777075A (en) * | 2016-12-13 | 2017-05-31 | 北京小米移动软件有限公司 | The webpage method for refreshing and device of mobile terminal |
CN109491803A (en) * | 2018-10-11 | 2019-03-19 | 腾讯科技(深圳)有限公司 | A kind of page processing method, device and relevant device |
CN109508438A (en) * | 2018-11-23 | 2019-03-22 | 四川长虹电器股份有限公司 | The implementation method of the dynamic anchor point of event is rolled based on vue |
CN109521894A (en) * | 2018-10-19 | 2019-03-26 | 北京金山云网络技术有限公司 | Business executes method, apparatus and electronic equipment |
CN110738972A (en) * | 2018-01-22 | 2020-01-31 | 青岛海信移动通信技术股份有限公司 | Page refreshing method and device for ink screen |
CN113434138A (en) * | 2021-06-23 | 2021-09-24 | 网易(杭州)网络有限公司 | Information display method and device and electronic equipment |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101078966A (en) * | 2006-09-20 | 2007-11-28 | 腾讯科技(深圳)有限公司 | Web page unit dissolving device and method |
CN103917946A (en) * | 2012-10-10 | 2014-07-09 | Sk普兰尼特有限公司 | Method and system for displaying fast-scrolling content and scroll bar |
CN103995648A (en) * | 2014-04-29 | 2014-08-20 | 小米科技有限责任公司 | Method and device for browsing list |
CN104572912A (en) * | 2014-12-26 | 2015-04-29 | 北京京东尚科信息技术有限公司 | Method and system for loading web pages |
CN104636048A (en) * | 2015-01-26 | 2015-05-20 | 上海天奕达电子科技有限公司 | Page content rolling display method and device |
CN104866302A (en) * | 2015-04-08 | 2015-08-26 | 小米科技有限责任公司 | Webpage rendering method and device |
WO2015162824A1 (en) * | 2014-04-22 | 2015-10-29 | 三菱電機株式会社 | List processing device and list processing method |
CN105160020A (en) * | 2015-09-29 | 2015-12-16 | 北京京东尚科信息技术有限公司 | Webpage rendering method |
-
2015
- 2015-12-24 CN CN201510989677.7A patent/CN105677314B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101078966A (en) * | 2006-09-20 | 2007-11-28 | 腾讯科技(深圳)有限公司 | Web page unit dissolving device and method |
CN103917946A (en) * | 2012-10-10 | 2014-07-09 | Sk普兰尼特有限公司 | Method and system for displaying fast-scrolling content and scroll bar |
WO2015162824A1 (en) * | 2014-04-22 | 2015-10-29 | 三菱電機株式会社 | List processing device and list processing method |
CN103995648A (en) * | 2014-04-29 | 2014-08-20 | 小米科技有限责任公司 | Method and device for browsing list |
CN104572912A (en) * | 2014-12-26 | 2015-04-29 | 北京京东尚科信息技术有限公司 | Method and system for loading web pages |
CN104636048A (en) * | 2015-01-26 | 2015-05-20 | 上海天奕达电子科技有限公司 | Page content rolling display method and device |
CN104866302A (en) * | 2015-04-08 | 2015-08-26 | 小米科技有限责任公司 | Webpage rendering method and device |
CN105160020A (en) * | 2015-09-29 | 2015-12-16 | 北京京东尚科信息技术有限公司 | Webpage rendering method |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106777075A (en) * | 2016-12-13 | 2017-05-31 | 北京小米移动软件有限公司 | The webpage method for refreshing and device of mobile terminal |
CN110738972A (en) * | 2018-01-22 | 2020-01-31 | 青岛海信移动通信技术股份有限公司 | Page refreshing method and device for ink screen |
CN110738972B (en) * | 2018-01-22 | 2021-05-18 | 青岛海信移动通信技术股份有限公司 | Page refreshing method and device for ink screen |
CN109491803A (en) * | 2018-10-11 | 2019-03-19 | 腾讯科技(深圳)有限公司 | A kind of page processing method, device and relevant device |
CN109491803B (en) * | 2018-10-11 | 2021-08-24 | 腾讯科技(深圳)有限公司 | Page processing method and device and related equipment |
CN109521894A (en) * | 2018-10-19 | 2019-03-26 | 北京金山云网络技术有限公司 | Business executes method, apparatus and electronic equipment |
CN109508438A (en) * | 2018-11-23 | 2019-03-22 | 四川长虹电器股份有限公司 | The implementation method of the dynamic anchor point of event is rolled based on vue |
CN113434138A (en) * | 2021-06-23 | 2021-09-24 | 网易(杭州)网络有限公司 | Information display method and device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN105677314B (en) | 2019-06-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105677314A (en) | Processing method and apparatus of scroll events, and device | |
CN104238875A (en) | Application corner mark addition method and device | |
EP3128411B1 (en) | Interface display method, terminal, computer program and recording medium | |
CN103914337B (en) | Service calling method, device and terminal | |
CN105739857A (en) | Mobile terminal control method and apparatus | |
EP2937831A1 (en) | Method, device and system for identifying target terminals and method and device for monitoring terminals | |
CN104468760A (en) | Method and device for pushing reminding information | |
CN103870955B (en) | The processing method and processing device of data in webpage | |
CN106775248A (en) | Push the methods of exhibiting and device of content | |
CN104407924A (en) | Method and device for optimizing internal memory | |
CN104536787A (en) | Resource preloading method and device | |
CN105487758A (en) | Method and device for popup control of application software, and terminal equipment | |
CN107729098B (en) | User interface display method and device | |
CN104572875A (en) | Popularization information putting effectiveness determining method and device | |
CN104111829A (en) | Data storage method and device | |
CN109634762B (en) | Data recovery method and device, electronic equipment and storage medium | |
CN105550213A (en) | Picture browsing method and device | |
CN105320747A (en) | Method and apparatus for stopping web page refreshing and terminal device | |
CN106708967A (en) | Page display method and device | |
CN113918258A (en) | Page rolling processing method, device, terminal and storage medium | |
CN104866302A (en) | Webpage rendering method and device | |
CN104899059A (en) | Method and apparatus for upgrading operating system | |
CN105183326B (en) | list display method and device | |
CN107239236A (en) | Method for writing data and device | |
CN107704489B (en) | Processing method and device for read-write timeout and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |