CN105677314B - Processing method, device and the equipment of rolling event - Google Patents

Processing method, device and the equipment of rolling event Download PDF

Info

Publication number
CN105677314B
CN105677314B CN201510989677.7A CN201510989677A CN105677314B CN 105677314 B CN105677314 B CN 105677314B CN 201510989677 A CN201510989677 A CN 201510989677A CN 105677314 B CN105677314 B CN 105677314B
Authority
CN
China
Prior art keywords
rolling
webpage
processed
call back
back function
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510989677.7A
Other languages
Chinese (zh)
Other versions
CN105677314A (en
Inventor
杨伟贤
李大松
周鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510989677.7A priority Critical patent/CN105677314B/en
Publication of CN105677314A publication Critical patent/CN105677314A/en
Application granted granted Critical
Publication of CN105677314B publication Critical patent/CN105677314B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction 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/0485Scrolling or panning
    • GPHYSICS
    • G06COMPUTING; CALCULATING; 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

Abstract

The disclosure is directed to processing method, device and the equipment of a kind of rolling event, roll triggering command this method comprises: receiving;According to the rolling triggering command, on the corresponding webpage of mark of the webpage to be processed, if get first rolling event in scroll process, creates and start timer;When the duration of timer record reaches preset duration, call back function is called, and the coordinate information of the webpage to be processed is obtained according to the call back function;To reduce the number for the coordinate information for calculating webpage in rolling process, the fluency of the page is increased.

Description

Processing method, device and the equipment of rolling event
Technical field
The present invention relates to computer networking technology more particularly to a kind of processing method, device and the equipment of rolling event.
Background technique
In web application, (scroll) event of rolling assumes responsibility for the functions such as trigger request or animation.Under normal conditions, exist Dynamic is needed to calculate the position of webpage in rolling process;In the related technology, each rolling event can all trigger the position for calculating webpage Set coordinate process.
Summary of the invention
To overcome the problems in correlation technique, the disclosure provides the processing method of rolling event a kind of, device and sets It is standby.
According to the first aspect of the embodiments of the present disclosure, a kind of processing method of rolling event is provided, comprising:
It receives and rolls triggering command;It is described to roll the mark that triggering command includes: webpage to be processed;
According to the rolling triggering command, on the corresponding webpage of mark of the webpage to be processed, in scroll process If get first rolling event, creates and start timer;
When the duration of timer record reaches preset duration, call back function is called, and according to the call back function Obtain the coordinate information of the webpage to be processed.
The technical scheme provided by this disclosed embodiment can include the following benefits: be referred to by receiving to roll to trigger It enables;According to the rolling triggering command, on the corresponding webpage of mark of the webpage to be processed, if being obtained in scroll process When to first rolling event, creates and start timer;Further, when the duration of timer record reaches default When long, call back function is called, and obtains the coordinate information of the webpage to be processed according to the call back function.As it can be seen that only existing When reaching preset duration by the duration that the timer that first rolling event creates records, by calling call back function to calculate The coordinate information of webpage to be processed increases the page to reduce the number for calculating the coordinate information of webpage in rolling process Fluency.
Further, after the calling call back function, further includes:
The content of the call back function is subjected to caching process.
Further, after the calling call back function, further includes:
Empty the timer.
Further, after the coordinate information that the webpage to be processed is obtained according to the call back function, further includes:
Refresh the webpage to be processed of display according to the coordinate information.
Further, the preset duration is 100ms.
The technical scheme provided by this disclosed embodiment can include the following benefits: ensure touching by caching mechanism Send out rolling event after with the presence of and only one timer, call back function can be further prevented to be called frequently to calculate webpage Coordinate information, thus reduce in rolling process calculate webpage coordinate information number, improve FPS value, ensure that page The fluency in face.
According to the second aspect of an embodiment of the present disclosure, a kind of processing unit of rolling event is provided, comprising:
Receiving module is configured as receiving rolling triggering command;It is described to roll the mark that triggering command includes: webpage to be processed Know;
Processing module is configured as according to the rolling triggering command, in the corresponding net of mark of the webpage to be processed On page, if get first rolling event in scroll process, creates and start timer;
Calling module is configured as calling call back function when the duration that the timer records reaches preset duration, and The coordinate information of the webpage to be processed is obtained according to the call back function.
Further, described device, further includes:
Cache module is configured as the content of the call back function carrying out caching process.
Further, described device, further includes:
Module is emptied, is configured as emptying the timer.
Further, described device further include:
Refresh module is configured as refreshing the webpage to be processed of display according to the coordinate information.
Further, the preset duration is 100ms.
According to the third aspect of an embodiment of the present disclosure, a kind of terminal device is provided, comprising: processor, receiver and use In the memory of storage processor executable instruction;
The receiver is configured as: being received and is rolled triggering command;The rolling triggering command includes: webpage to be processed Mark;
The processor is configured to: it is corresponding in the mark of the webpage to be processed according to the rolling triggering command On webpage, if get first rolling event in scroll process, creates and start timer;
When the duration of timer record reaches preset duration, call back function is called, and according to the call back function Obtain the coordinate information of the webpage to be processed.
The technical scheme provided by this disclosed embodiment can include the following benefits: provide a kind of place of rolling event Method, apparatus and equipment are managed, by according to the rolling triggering command, in the corresponding webpage of mark of the webpage to be processed On, if get first rolling event in scroll process, creates and start timer;Further, in the timing When the duration of device record reaches preset duration, call back function is called, and the webpage to be processed is obtained according to the call back function Coordinate information.As it can be seen that only when the duration that the timer created by first rolling event records reaches preset duration, By calling call back function to calculate the coordinate information of webpage to be processed, to reduce the coordinate for calculating webpage in rolling process The number of information increases the fluency of the page.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is a kind of flow chart of the processing method of rolling event shown according to an exemplary embodiment;
Fig. 2 is a kind of block diagram of the processing device embodiment one of rolling event shown according to an exemplary embodiment;
Fig. 3 is a kind of block diagram of the processing device embodiment two of rolling event shown according to an exemplary embodiment;
Fig. 4 is a kind of block diagram of the processing device embodiment three of rolling event shown according to an exemplary embodiment;
Fig. 5 is a kind of block diagram of the processing device embodiment four of rolling event shown according to an exemplary embodiment;
Fig. 6 is a kind of block diagram of the entity of terminal device shown according to an exemplary embodiment;
Fig. 7 is a kind of block diagram of terminal device 1200 shown according to an exemplary embodiment.
Through the above attached drawings, it has been shown that the specific embodiment of the disclosure will be hereinafter described in more detail.These attached drawings It is not intended to limit the scope of this disclosure concept by any means with verbal description, but is by referring to specific embodiments Those skilled in the art illustrate the concept of the disclosure.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended The example of device and method being described in detail in claims, some aspects of the invention are consistent.
Fig. 1 is a kind of flow chart of the processing method of rolling event shown according to an exemplary embodiment, such as Fig. 1 institute Show, the processing method of the rolling event can be applied in all kinds of terminal devices, handle rolling event.Including following step It is rapid:
In step s101, it receives and rolls triggering command;It is described to roll the mark that triggering command includes: webpage to be processed.
In this step, when user, which slides webpage or user by mouse, slides the webpage in touch screen by finger, Terminal device receives the rolling triggering command of user, and optionally, the rolling triggering command includes: that webpage to be processed is (i.e. corresponding The webpage or the user that the user is slided by mouse pass through finger and slide webpage in touch screen) mark.
In step s 102, according to the rolling triggering command, on the corresponding webpage of mark of the webpage to be processed, If get first rolling event in scroll process, creates and start timer.
In step s 103, when the duration of timer record reaches preset duration, calling call back function, and according to The call back function obtains the coordinate information of the webpage to be processed.
Optionally, webpage or user are slided by mouse whenever the user pass through the webpage in finger sliding touch screen When, multiple rolling (scroll) events can be triggered, i.e., the described triggering command can trigger multiple scroll events, for the ease of retouching It states, optionally, the multiple scroll events for being triggered the triggering command in the embodiment of the present disclosure are suitable according to the time of generation Sequence is arranged, for example, the time of triggered first rolling event of the triggering command be 1ms, triggering command institute The time for the third rolling event that the time of second rolling event of triggering is triggered by 2ms, the triggering command is The time for the 100th rolling event that 3ms ... the triggering command is triggered is touched by 100ms, the triggering command The 102nd rolling that the time of 101st rolling event of hair is triggered by 101ms and the triggering command The time of event is 102ms.Wherein, for the convenience of description, triggering 100 in the embodiment of the present disclosure with the triggering command It is illustrated for 01 rolling events, certainly, each triggering command also can trigger other quantity rolling events and each Interval between rolling event can also be other time, and the embodiment of the present disclosure is to this and with no restriction.
In step s 102, according to include the webpage to be processed mark the rolling triggering command, it is described to It handles on webpage, if get first rolling event in scroll process, creates and start timer;Further, it walks In rapid S103, when the duration of timer record reaches preset duration, readjustment (callback) function is called (optionally, The functional module in the call back function including: the coordinate information of calculating webpage further includes certainly other in the call back function Function, details are not described herein again), and the coordinate information of the webpage to be processed is obtained (i.e. according to according to the call back function For calculating the functional module of the coordinate information of webpage in call back function, the coordinate information of the webpage to be processed is got);It can Selection of land, the preset duration be 100ms (certainly, the preset duration can also be other numerical value, the embodiment of the present disclosure to this not It is restricted);Optionally, in the present embodiment, by right to DOM Document Object Model (Document Object Model, abbreviation Dom) The each unbundlings and weight bindings of elephant, ensure that each only one call back function of rolling event.Optionally, in step S103 Later, if the triggering command enables described the still in triggering rolling event (such as the 101st rolling event) 101 rolling events are first rolling event, create and start timer, and execute step S103, and so on. Optionally, after step s 103, if receiving the rolling triggering command of the mark including webpage to be processed of user again, Step S102 and step S103 is executed, and so on.As it can be seen that rolling event creation in the embodiment of the present disclosure for first Before the duration that timer is recorded reaches preset duration, multiple rolling events that the triggering command is triggered (such as it is above-mentioned Second rolling event is to the 100th rolling event) create timer and never call call back function to calculate net to be processed The coordinate information of page leads to only when the duration that the timer created by first rolling event records reaches preset duration It crosses and calls call back function to calculate the coordinate information of webpage to be processed, to reduce the coordinate letter for calculating webpage in rolling process The number of breath increases the fluency of the page.
A kind of processing method of rolling event provided in this embodiment rolls triggering command by receiving;According to the rolling Dynamic triggering command, on the corresponding webpage of mark of the webpage to be processed, if getting first rolling in scroll process When event, creates and start timer;Further, it when the duration of timer record reaches preset duration, calls back Letter of transfer number, and obtain according to the call back function coordinate information of the webpage to be processed.As it can be seen that only being rolled for first When the duration that the timer of event creation is recorded reaches preset duration, by calling call back function to calculate webpage to be processed Coordinate information increases the fluency of the page to reduce the number for calculating the coordinate information of webpage in rolling process.
Optionally, each rolling event can create timer in order to prevent, on the basis of the above embodiments, the tune After call back function, further includes: the content of the call back function is carried out caching process, to prevent from being repeated tune in a short time With.Optionally, can first judge currently to whether there is timer before creating timer, and if it exists, do not create new timer then;It can See, by caching mechanism ensure after triggering rolling event with the presence of and only one timer, can further prevent adjusting back Function is called frequently to calculate the coordinate information of webpage, to reduce time for calculating the coordinate information of webpage in rolling process Number, improves transmission frame number per second (Frames per Second, abbreviation FPS) value, ensure that the fluency of the page.
Optionally, on the basis of the above embodiments, after the calling call back function, further includes: empty the timing Device;I.e. when the duration that the timer is recorded reaches preset duration, call back function is called to calculate the seat of webpage to be processed After marking information, the timer is emptied, reusable this is determined when creating timer so as to first rolling event for after When device.
Optionally, after the coordinate information for getting the webpage to be processed, further includes: according to the coordinate information brush The webpage to be processed newly shown, i.e., show updated webpage to be processed according to the coordinate information, with realize with Family webpage or the purpose by showing webpage in finger sliding touch screen are slided by mouse.
Optionally, in the present embodiment, each unbundlings and weight bindings of Dom object can be accomplished in that
Var scrollEvent=function (callback, opt)
$win.off(‘scroll.onbottom’).on(‘scroll.onbottom’,function(){……
Optionally, step S102 and step S103 can be accomplished in that
Certainly, above-mentioned steps S102 and S103 can also be realized by other code means, the embodiment of the present disclosure to this not It is restricted.
Fig. 2 is a kind of block diagram of the processing device embodiment one of rolling event shown according to an exemplary embodiment, such as Shown in Fig. 2, the processing unit 20 of the rolling event, comprising:
Receiving module 201 is configured as receiving rolling triggering command;The rolling triggering command includes: webpage to be processed Mark;
Processing module 202 is configured as according to the rolling triggering command, corresponding in the mark of the webpage to be processed On webpage, if get first rolling event in scroll process, creates and start timer;
Calling module 203 is configured as calling readjustment letter when the duration that the timer records reaches preset duration It counts, and obtains the coordinate information of the webpage to be processed according to the call back function.
The processing unit for the rolling event that the embodiment of the present disclosure provides is received by receiving module and rolls triggering command;Place Module is managed according to the rolling triggering command, on the corresponding webpage of mark of the webpage to be processed, if in scroll process When getting first rolling event, creates and start timer;Further, calling module is when the timer records When length reaches preset duration, call back function is called, and obtains the coordinate information of the webpage to be processed according to the call back function. As it can be seen that only when the duration that the timer created by first rolling event records reaches preset duration, by calling back Letter of transfer number is to calculate the coordinate information of webpage to be processed, to reduce time for calculating the coordinate information of webpage in rolling process Number, increases the fluency of the page.
On the basis of above-mentioned embodiment shown in Fig. 2, Fig. 3 is a kind of rolling thing shown according to an exemplary embodiment The block diagram of the processing device embodiment two of part, referring to Fig. 3, described device further include:
Cache module 204 is configured as the content of the call back function carrying out caching process.
On the basis of above-mentioned Fig. 2 or embodiment shown in Fig. 3, Fig. 4 is one kind shown according to an exemplary embodiment The block diagram of the processing device embodiment three of rolling event, referring to Fig. 4, described device further include:
Module 205 is emptied, is configured as emptying the timer.
On the basis of above-mentioned Fig. 2-embodiment shown in Fig. 4, Fig. 5 is a kind of rolling shown according to an exemplary embodiment The block diagram of the processing device embodiment four of dynamic event, referring to Fig. 5, described device further include:
Refresh module 206 is configured as refreshing the webpage to be processed of display according to the coordinate information.
Further, the preset duration is 100ms.
The processing unit for the rolling event that any of the above-described a embodiment provides, the technical side for above method embodiment Case, it is similar that the realization principle and technical effect are similar, rolls triggering command by receiving;According to the rolling triggering command, described On the corresponding webpage of the mark of webpage to be processed, if get first rolling event in scroll process, creates and start Timer;Further, when the duration of timer record reaches preset duration, call back function is called, and according to described Call back function obtains the coordinate information of the webpage to be processed.As it can be seen that only in the timer for rolling event creation for first When the duration recorded reaches preset duration, by calling call back function to calculate the coordinate information of webpage to be processed, to subtract Lack the number for calculating the coordinate information of webpage in rolling process, increases the fluency of the page.
The foregoing describe the inner function module of the processing unit of the event of rolling and structural representation, substantial execution masters Body should be terminal device, and Fig. 6 is a kind of block diagram of the entity of terminal device shown according to an exemplary embodiment, referring to figure 6, which can implement are as follows: processor, receiver and the memory for storage processor executable instruction;
The receiver is configured as: being received and is rolled triggering command;The rolling triggering command includes: webpage to be processed Mark;
The processor is configured to: it is corresponding in the mark of the webpage to be processed according to the rolling triggering command On webpage, if get first rolling event in scroll process, creates and start timer;
When the duration of timer record reaches preset duration, call back function is called, and according to the call back function Obtain the coordinate information of the webpage to be processed.
In the embodiment of the terminal device of above- mentioned information, it should be appreciated that the receiver can be the input dress of terminal device It sets, which may include touch screen and other input equipments;Wherein, touch screen is also referred to as touch panel, collects and uses Family on it or nearby touch operation (such as user using any suitable object or attachment such as finger, stylus in touch screen The upper or operation near touch screen), and corresponding attachment device is driven according to preset formula;Optionally, touch screen It may include both touch detecting apparatus and touch controller;Wherein, the touch orientation of touch detecting apparatus detection user, and Touch operation bring signal is detected, touch controller is transmitted a signal to;Touch controller is received from touch detecting apparatus Touch information, and be converted into contact coordinate, then give processor, and order that processor is sent can be received and held Row.Furthermore, it is possible to realize touch screen using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touching Screen, input unit can also include other input equipments, and optionally, other input equipments can include but is not limited to physics One of keyboard, function key (such as volume control button, power switch button etc.), trace ball, mouse, operating stick etc. are more Kind.
The processor can be central processing unit (English: Central Processing Unit, abbreviation: CPU), also Can be other general processors, digital signal processor (English: Digital Signal Processor, referred to as: DSP), Specific integrated circuit (English: Application Specific Integrated Circuit, referred to as: ASIC) etc..General place Reason device can be microprocessor or the processor is also possible to any conventional processor etc., and memory above-mentioned can be Read-only memory (English: read-only memory, abbreviation: ROM), random access memory (English: random access Memory, referred to as: RAM), flash memory, hard disk or solid state hard disk.SIM card is also referred to as subscriber identification card, intelligence Card, digital mobile telephone must load onto this card and can use.Store digital mobile phone client's on computer chip The contents such as the telephone directory of information, the key of encryption and user.The step of method in conjunction with disclosed in the embodiment of the present invention, can be with Be embodied directly in hardware processor and execute completion, or in processor hardware and software module combination execute completion.
Fig. 7 is a kind of block diagram of terminal device 1200 shown according to an exemplary embodiment.For example, the rolling event Processing unit can be the terminal devices such as smart phone, computer, tablet computer.Referring to Fig. 7, terminal device 1200 may include with Next or multiple components: processing component 1202, memory 1204, electric power assembly 1206, multimedia component 1208, audio component 1210, the interface 1212 of input/output (I/O), sensor module 1214 and communication component 1216.
The integrated operation of the usual controlling terminal equipment 1200 of processing component 1202, such as with display, data communication, multimedia Operation and record operate associated operation.Processing component 1202 may include that one or more processors 1220 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 1202 may include one or more modules, Convenient for the interaction between processing component 1202 and other assemblies.For example, processing component 1202 may include multi-media module, with side Just the interaction between multimedia component 1208 and processing component 1202.
Memory 1204 is configured as storing various types of data to support the operation in terminal device 1200.These numbers According to example include any application or method for being operated on terminal device 1200 instruction, Various types of data, message, Picture, video etc..Memory 1204 can be by any kind of volatibility or non-volatile memory device or their combination It realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable Read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, Disk or CD.
Electric power assembly 1206 provides electric power for the various assemblies of terminal device 1200.Electric power assembly 1206 may include power supply Management system, one or more power supplys and other with for terminal device 1200 generate, manage, and distribute associated group of electric power Part.
Multimedia component 1208 includes the screen of one output interface of offer between the terminal device 1200 and user Curtain.In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touching Panel, screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touchings Sensor is touched to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or cunning The boundary of movement, but also detect duration and pressure associated with the touch or slide operation.
Audio component 1210 is configured as output and/or input audio signal.For example, audio component 1210 includes a wheat Gram wind (MIC), when terminal device 1200 is in operation mode, when such as call mode, recording mode, and voice recognition mode, Mike Wind is configured as receiving external audio signal.The received audio signal can be further stored in memory 1204 or via Communication component 1216 is sent.In some embodiments, audio component 1210 further includes a loudspeaker, for exporting audio letter Number.
I/O interface 1212 provides interface, above-mentioned peripheral interface module between processing component 1202 and peripheral interface module It can be keyboard, click wheel, button etc..
Sensor module 1214 includes one or more sensors, for providing the shape of various aspects for terminal device 1200 State assessment.For example, sensor module 1214 can detecte the state that opens/closes of terminal device 1200, component it is relatively fixed Position, such as the component are the display and keypad of terminal device 1200, and sensor module 1214 can also detect terminal and set For 1200 or the position change of 1,200 1 components of terminal device, the existence or non-existence that user contacts with terminal device 1200, The temperature change in 1200 orientation of terminal device or acceleration/deceleration and terminal device 1200.Sensor module 1214 may include connecing Nearly sensor is configured to detect the presence of nearby objects without any physical contact.Sensor module 1214 is also It may include optical sensor, such as CMOS or ccd image sensor, for being used in imaging applications.In some embodiments, should Sensor module 1214 can also include acceleration transducer, and gyro sensor, Magnetic Sensor, pressure sensor or temperature pass Sensor.
Communication component 1216 is configured to facilitate the logical of wired or wireless way between terminal device 1200 and other equipment Letter.Terminal device 1200 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.One In a exemplary embodiment, communication component 1216 via broadcast channel receive broadcast singal from external broadcasting management system or Broadcast related information.In one exemplary embodiment, the communication component 1216 further includes near-field communication (NFC) module, with Promote short range communication.For example, can be based on radio frequency identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology surpasses Broadband (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, terminal device 1200 can by one or more application specific integrated circuit (ASIC), Digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field-programmable gate array It arranges (FPGA), controller, microcontroller, microprocessor or other electronic components to realize, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 1204 of instruction, above-metioned instruction can be executed by the processor 1220 of terminal device 1200 to complete above-mentioned side Method.For example, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, magnetic Band, floppy disk and optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of rolling event When the processing component of device executes, so that the processing unit of the event of rolling is able to carry out a kind of processing method of rolling event, institute The method of stating includes:
It receives and rolls triggering command;It is described to roll the mark that triggering command includes: webpage to be processed;
According to the rolling triggering command, on the corresponding webpage of mark of the webpage to be processed, in scroll process If get first rolling event, creates and start timer;
When the duration of timer record reaches preset duration, call back function is called, and according to the call back function Obtain the coordinate information of the webpage to be processed.
Further, after the calling call back function, further includes:
The content of the call back function is subjected to caching process.
Further, after the calling call back function, further includes:
Empty the timer.
Further, after the coordinate information that the webpage to be processed is obtained according to the call back function, further includes:
Refresh the webpage to be processed of display according to the coordinate information.
Further, the preset duration is 100ms.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its Its embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes or Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.

Claims (10)

1. a kind of processing method of rolling event characterized by comprising
It receives and rolls triggering command;It is described to roll the mark that triggering command includes: webpage to be processed;
According to the rolling triggering command, on the corresponding webpage of mark of the webpage to be processed, if being obtained in scroll process When getting first rolling event, creates and start timer;
When the duration of timer record reaches preset duration, call back function is called, and obtain according to the call back function The coordinate information of the webpage to be processed,
Wherein, first rolling event is first rolling in multiple rolling events of the rolling triggering command triggering Event or first rolling event more than preset duration.
2. the method according to claim 1, wherein after the calling call back function, further includes:
The content of the call back function is subjected to caching process.
3. the method according to claim 1, wherein after the calling call back function, further includes:
Empty the timer.
4. the method according to claim 1, wherein described obtain the net to be processed according to the call back function After the coordinate information of page, further includes:
Refresh the webpage to be processed of display according to the coordinate information.
5. method according to any of claims 1-4, which is characterized in that the preset duration is 100ms.
6. a kind of processing unit of rolling event characterized by comprising
Receiving module is configured as receiving rolling triggering command;It is described to roll the mark that triggering command includes: webpage to be processed;
Processing module is configured as according to the rolling triggering command, on the corresponding webpage of mark of the webpage to be processed, If get first rolling event in scroll process, creates and start timer;
Calling module is configured as when the duration that the timer records reaches preset duration, calling call back function, and according to The call back function obtains the coordinate information of the webpage to be processed,
Wherein, first rolling event is first rolling in multiple rolling events of the rolling triggering command triggering Event or first rolling event more than preset duration.
7. device according to claim 6, which is characterized in that described device, further includes:
Cache module is configured as the content of the call back function carrying out caching process.
8. device according to claim 6, which is characterized in that described device, further includes:
Module is emptied, is configured as emptying the timer.
9. device according to claim 6, which is characterized in that described device further include:
Refresh module is configured as refreshing the webpage to be processed of display according to the coordinate information.
10. the device according to any one of claim 6-9, which is characterized in that the preset duration is 100ms.
CN201510989677.7A 2015-12-24 2015-12-24 Processing method, device and the equipment of rolling event Active CN105677314B (en)

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 CN105677314A (en) 2016-06-15
CN105677314B true 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)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106777075B (en) * 2016-12-13 2019-11-29 北京小米移动软件有限公司 The webpage method for refreshing and device of mobile terminal
CN110751930B (en) * 2018-01-22 2021-05-18 青岛海信移动通信技术股份有限公司 Page refreshing method and device for ink screen
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

Citations (7)

* Cited by examiner, † Cited by third party
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
CN105160020A (en) * 2015-09-29 2015-12-16 北京京东尚科信息技术有限公司 Webpage rendering method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015162824A1 (en) * 2014-04-22 2015-10-29 三菱電機株式会社 List processing device and list processing method

Patent Citations (7)

* Cited by examiner, † Cited by third party
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
CN105160020A (en) * 2015-09-29 2015-12-16 北京京东尚科信息技术有限公司 Webpage rendering method

Also Published As

Publication number Publication date
CN105677314A (en) 2016-06-15

Similar Documents

Publication Publication Date Title
CN105677314B (en) Processing method, device and the equipment of rolling event
CN104536935B (en) Calculate display methods, calculate edit methods and device
AU2017206466B2 (en) Flexible display of electronic device and method for operating same
CN104820549B (en) Sending method, device and the terminal of social networking application message
US20190324640A1 (en) Electronic device for providing user interface according to electronic device usage environment and method therefor
CN104636106A (en) Picture displaying method and device and terminal device
CN107548568A (en) The system and method that context for functions of the equipments is found
CN108701043A (en) A kind of processing method and processing device of display
CN108932102A (en) Data processing method, device and mobile terminal
CN107908355A (en) Touch control method, mobile terminal and the storage medium of mobile terminal
CN106503077B (en) Management method, device and the equipment of media content
CN108696642B (en) Method for arranging icons and mobile terminal
CN106802808A (en) Suspension button control method and device
KR102067058B1 (en) Terminal and method for controlling the same
CN107979701B (en) Method and device for controlling terminal display
CN104050236B (en) Web site contents update reminding method, server and client side
CN105183326B (en) list display method and device
CN106774977A (en) Punctuation mark automatic matching method, device and terminal device
CN109213398A (en) A kind of application quick start method, terminal and computer readable storage medium
CN105513098B (en) Image processing method and device
CN107943406B (en) touch point determining method of touch screen and terminal
CN107728900A (en) Gesture operation method, mobile terminal and the storage medium of virtual key
CN112423138A (en) Search result display method and terminal equipment
WO2017193496A1 (en) Application data processing method and apparatus, and terminal device
CN107690028A (en) A kind of method of adjustment of font size, terminal and readable storage medium storing program for executing

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