CN106648282A - Processing method and apparatus for indexes in webpage - Google Patents

Processing method and apparatus for indexes in webpage Download PDF

Info

Publication number
CN106648282A
CN106648282A CN201510729523.4A CN201510729523A CN106648282A CN 106648282 A CN106648282 A CN 106648282A CN 201510729523 A CN201510729523 A CN 201510729523A CN 106648282 A CN106648282 A CN 106648282A
Authority
CN
China
Prior art keywords
index
area
destination object
motion track
cursor pointer
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
Application number
CN201510729523.4A
Other languages
Chinese (zh)
Other versions
CN106648282B (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.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201510729523.4A priority Critical patent/CN106648282B/en
Publication of CN106648282A publication Critical patent/CN106648282A/en
Application granted granted Critical
Publication of CN106648282B publication Critical patent/CN106648282B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a processing method and apparatus for indexes in a webpage. The method comprises the steps of obtaining a target object in an initial position where a cursor pointer is located, wherein the target object is an object representing a webpage element in the webpage; judging whether the obtained target object contains the indexes or not; when it is judged that the obtained target object contains the indexes, obtaining a moving track, wherein the moving track is a track of moving the cursor pointer to a stop position from the initial position; and controlling index operation according to the moving track. According to the method and the apparatus, the technical problem of excessively tedious operation of deleting or adding the indexes in the prior art is solved.

Description

Webpage middle finger target treating method and apparatus
Technical field
The application is related to data processing field, in particular to a kind of webpage middle finger target treating method and apparatus.
Background technology
Index is the emphasis of performance systems, how index is carried out more friendly, or more meets user operation mode Addition or deletion action are the key points that can various performance systems be approved by client.
The processing method of various performance systems in prior art, usually first clicks in systems an Edit button, point After hitting Edit button, the control page in page INDEX MANAGEMENT is understood, as shown in Figure 1.In the left end of each index Comprising a check box, user can realize increasing or deleting index by choosing or cancelling checking box.Wherein, The index chosen can add into left field as shown in Figure 1 in the case where user confirms addition, not choose Index then can be deleted in region as shown in Figure 1, and be occurred in right side list as shown in Figure 1.
Above-mentioned deletion or addition refer to calibration method, by choosing index to be added or to be deleted in check box, and then Click on and delete or add the index after confirming button.Aforesaid operations step is loaded down with trivial details, and the operation for causing user not enough facilitates, And when index is more, causes user to search and not enough facilitate.
For above-mentioned problem, effective solution is not yet proposed at present.
The content of the invention
The embodiment of the present application provides a kind of webpage middle finger target treating method and apparatus, at least to solve in prior art Delete or add the excessively loaded down with trivial details technical problem of the operation of index.
According to the one side of the embodiment of the present application, there is provided a kind of webpage middle finger target processing method, the method includes: The destination object of cursor pointer place initial position is obtained, wherein, the destination object is webpage in the sign webpage The object of element;Whether comprising index in the destination object that judgement gets;In the mesh for judging to get Comprising in the case of the index in mark object, motion track is obtained, wherein, the motion track refers to for the cursor Pin is moved to the track of final position from the initial position;And control to the index according to the motion track Operation.
Further, judge whether include comprising index in the destination object for getting:It is described that judgement gets Whether the index comprising the index is identified in destination object;And comprising the finger in the destination object is judged In the case of mark mark, determine and include in the destination object index.
Further, control to include the operation of the index according to the motion track:When getting the moving rail Mark is in the case that the position of the destination object is moved to second area by first area, to delete in the first area Except the index, and add the index in the second area, wherein, the first area is the finger for having added The residing region of mark, the second area is the region residing for index to be added.
Further, control also to include the operation of the index according to the motion track:When getting the movement Track is in the case that the position of the destination object is moved to the first area by the second area, to send request Message to server, wherein, the request message is that the message of the index is added in request in the first area; Receive the response message from the server;In the case that the response message is null message, add the index To the first area, and the index is deleted in the second area;And it is wrong when including in the response message By mistake in the case of information, the position of the destination object returns the initial position.
Further, before the destination object of the cursor pointer present position is obtained, methods described also includes:Sentence Whether the cursor pointer that breaks produces triggering command in the initial position, wherein, judging that the cursor pointer exists The initial position is produced in the case of the triggering command, obtains target pair of the cursor pointer in the initial position As.
Further, when the triggering command terminates, determine that the position that cursor pointer described in end time is located is institute State final position.
According to the another aspect of the embodiment of the present application, a kind of webpage middle finger target processing meanss, the device bag are additionally provided Include:First acquisition unit, for obtaining the destination object of cursor pointer place initial position, wherein, the target pair As to characterize the object of the webpage elements;First judging unit, for the target pair for judging to get Whether index is included as in;Second acquisition unit, it is described for including in the destination object for getting is judged In the case of index, motion track is obtained, wherein, the motion track is the cursor pointer from the initial position It is moved to the track of final position;And control unit, for the behaviour according to motion track control to the index Make.
Further, first judging unit includes:Judge module, for the destination object for judging to get In whether the index comprising the index identify;And determining module, for including in the destination object is judged In the case that the index is identified, determine and include in the destination object index.
Further, described control unit includes:First removing module, the motion track is got for institute for working as State destination object position second area is moved to by first area in the case of, delete described in the first area Index, and add the index in the second area, wherein, the first area is residing for the index added Region, the second area is the region residing for index to be added.
Further, described control unit also includes:Sending module, is described for getting the motion track In the case that the position of destination object is moved to the first area by the second area, request message is sent to service Device, wherein, the request message is the message that the index is added in request in the first area;And reception mould Block, for receiving the response message from the server;Add module, is null message for working as the response message In the case of, add the index to the first area, and the index is deleted in the second area;And Return module, for when in the response message comprising in the case of miscue information, the position of the destination object Return the initial position.
In the embodiment of the present application, using the destination object for obtaining cursor pointer place initial position, wherein, the mesh Mark object is the object for characterizing the webpage elements;Whether comprising finger in the destination object that judgement gets Mark;Comprising in the case of the index in the destination object for getting is judged, motion track is obtained, wherein, The motion track is the track that the cursor pointer is moved to final position from the initial position;And according to described Motion track controls the mode of the operation to the index.By the destination object for obtaining cursor pointer position, Judge that mobile cursor pointer only obtains cursor pointer to final position comprising in the case of index in destination object Motion track, and according to motion track add or delete index, relative in prior art by check box add or Deletion refers to calibration method, has reached simplified addition or has deleted the purpose of pointer operation step, it is achieved thereby that by movement Cursor pointer can be achieved with adding or delete the technique effect of index, and then to solve delete in prior art or add and refer to Target operates excessively loaded down with trivial details technical problem.
Description of the drawings
Accompanying drawing described herein is used for providing further understanding of the present application, constitutes the part of the application, this Shen Schematic description and description please does not constitute the improper restriction to the application for explaining the application.In accompanying drawing In:
Fig. 1 is the schematic diagram that index is processed in webpage according to prior art;
Fig. 2 is a kind of flow chart of the webpage middle finger target processing method according to the embodiment of the present application;
Fig. 3 is the flow chart of the optional webpage middle finger target processing method of another kind according to the embodiment of the present application;And
Fig. 4 is a kind of schematic diagram of the webpage middle finger target processing meanss according to the embodiment of the present application.
Specific embodiment
In order that those skilled in the art more fully understand application scheme, below in conjunction with the embodiment of the present application Accompanying drawing, is clearly and completely described to the technical scheme in the embodiment of the present application, it is clear that described embodiment The only embodiment of the application part, rather than the embodiment of whole.Based on the embodiment in the application, ability The every other embodiment that domain those of ordinary skill is obtained under the premise of creative work is not made, all should belong to The scope of the application protection.
It should be noted that the description and claims of this application and the term " first " in above-mentioned accompanying drawing, " Two " it is etc. the object for distinguishing similar, without for describing specific order or precedence.It should be appreciated that this The data that sample is used can be exchanged in the appropriate case, so as to embodiments herein described herein can with except Here the order beyond those for illustrating or describing is implemented.Additionally, term " comprising " and " having " and they Any deformation, it is intended that covering is non-exclusive to be included, and for example, contains process, the side of series of steps or unit Method, system, product or equipment are not necessarily limited to those steps clearly listed or unit, but may include unclear List or other steps intrinsic for these processes, method, product or equipment or unit.
According to the embodiment of the present application, there is provided a kind of embodiment of the method for webpage middle finger target processing method, explanation is needed , can be in the such as computer system of one group of computer executable instructions the step of the flow process of accompanying drawing is illustrated Perform, and, although show logical order in flow charts, but in some cases, can be with different from this The order at place performs shown or described step.
Fig. 2 is a kind of flow chart of the webpage middle finger target processing method according to the embodiment of the present application, as shown in Fig. 2 The method comprises the steps S102 to step S108:
Step S102, obtains the destination object of cursor pointer place initial position, wherein, destination object is sign webpage The object of middle web page element.
Specifically, in the embodiment of the present application, cursor pointer is moved in webpage, wherein, set by being connected to terminal Standby hardware device control cursor pointer is moved in webpage.Hardware device is by wired and be wirelessly connected to end End equipment, hardware device includes any one in the equipment such as mouse, touch pad, control-rod, button and keyboard.When When cursor pointer chooses a certain position paper or file in webpage, the position is initial position, needs explanation It is that cursor pointer may include index in the file that initial position is chosen, it is also possible to not comprising index;If this document In include index, then the index quantity can be one, or it is multiple.
It should be noted that destination object is dom (document object model) object, wrap in dom objects Containing the web page element in webpage, wherein, web page element includes word, picture, audio frequency, animation and video etc..Obtain While taking the destination object of initial position, position coordinates (that is, the initial position of the destination object can also be obtained Coordinate).
Whether step S104, judge in the destination object for getting comprising index.
Specifically, in the embodiment of the present application, index is the index in performance systems, and for example, index can be for " mutually Networking influence power " and " Consumer's Experience " etc., wherein, " the influence of internet power " can be divided into " mobile terminal accessing again Amount ", " website domestic user's influence power ", " the interviewed rate of the page is included in search " etc., " Consumer's Experience " can include " standing again The indexs such as interior search node clicking rate ".
Step S106, comprising in the case of index in the destination object for getting is judged, obtains motion track, its In, motion track is the track that cursor pointer is moved to final position from initial position.
Specifically, if destination object includes index, the coordinate of destination object follows the coordinate of cursor pointer;If mesh Index is not included in mark object, then the coordinate of destination object does not follow the coordinate of cursor pointer.When cursor pointer is moved to During final position, the motion track of cursor pointer is obtained, wherein, when destination object includes index, cursor pointer Motion track be the motion track of destination object.
Step S108, according to operation of the motion track control to index.Specifically, according to the cursor pointer for getting It is to delete index that motion track determines, or addition index.
The webpage middle finger target processing method that the embodiment of the present application is provided, by the target for obtaining cursor pointer position Object, comprising in the case of index in destination object is judged, mobile cursor pointer is only obtained to final position The motion track of cursor pointer, and according to motion track add or delete index, relative in prior art pass through final election Frame adds or deletion refers to calibration method, has reached simplified addition or has deleted the purpose of pointer operation step, it is achieved thereby that Can be achieved with adding or deleting the technique effect of index by mobile cursor pointer, and then solve deletion in prior art Or the excessively loaded down with trivial details technical problem of operation of addition index.
Alternatively, before the destination object of cursor pointer present position is obtained, the webpage middle finger target that the application is provided Processing method also includes as follows:Judge whether cursor pointer produces triggering command in initial position, wherein, judging Cursor pointer is produced in the case of triggering command in initial position, obtains destination object of the cursor pointer in initial position.
Specifically, if cursor pointer is by mouse control, cursor pointer after the left button that initial position clicks on mouse, The file of initial position can be chosen, also, when initial position file is chosen, produces triggering command. After triggering command is produced, initial position destination object is obtained.
If when triggering command terminates, it is determined that the position that the moment cursor pointer terminated in triggering command is located is stop bit Put.Specifically, when user is clicked on by mouse chooses the file of initial position, this document can be drawn to webpage In optional position.When user unclamps the left button of mouse, triggering command terminates, wherein, terminate in triggering command Moment, the position that cursor pointer is located is final position.Cursor pointer pulls file to final position by initial position Track be motion track in the embodiment of the present application.It should be noted that cursor pointer is chosen in initial position File may include index, it is also possible to not comprising index;If including index in this document, the index quantity can be with For one, or it is multiple.
Alternatively, judge whether comprise the steps S1041 to step S1043 comprising index in the destination object for getting:
Step S1041, judges whether the index comprising index is identified in the destination object for getting.
Step S1043, in the case of identifying comprising index in destination object is judged, determines in destination object and includes Index.
Specifically, by judging destination object in whether comprising index mark to determine destination object in whether comprising referring to Mark, wherein, index mark can be the mark that id information, text message of the index etc. uniquely represent the index.If In the case of judging to be identified comprising index in destination object, it is determined that go out comprising index in destination object, wherein, The index is that user is actual wishes addition, or the actual index for wishing to delete of user.
Alternatively, control to comprise the steps S1081 to the operation of index according to motion track:
Step S1081, second area is moved to when the position that motion track is destination object is got by first area In the case of, index is deleted in first area, and add index in second area, wherein, first area is to add Plus index residing for region, second area is the region residing for index to be added.
The initial position of cursor pointer may be located in first area or in second area, may be located on first area With the region outside second area;Cursor pointer pull the final position of file chosen may be located at the first area in In second area, first area and the region outside second area are may be located on.Specifically, at the beginning of cursor pointer Beginning position be located at first area in, through user pull after cursor pointer final position be located at second area in when, Represent that user wishes to delete the index having been added in first area;When the initial position of cursor pointer is located at first area It is interior, when the final position of the cursor pointer after user pulls is located in second area, represent that user wishes addition Index is to second area;If above-mentioned situation is unsatisfactory for, any operation is not done to index.
If the motion track for judging cursor pointer is to be moved to second area by first area, now, the index is existed Delete in first area, and add the index in the second area, be somebody's turn to do so that user continues addition in follow-up operation Index is to first area.
Alternatively, control also to comprise the steps S1083 to step S1089 the operation of index according to motion track:
Step S1083, first area is moved to when the position that motion track is destination object is got by second area In the case of, request message is sent to server, wherein, request message is that disappearing for index is added in request in first area Breath.
Step S1085, receives the response message from server.
Step S1087, in the case that response message is null message, adds index to first area, and in the secondth area Index is deleted in domain.
Step S1089, in the case of in response message comprising miscue information, the position of destination object returns just Beginning position.
Specifically, if the motion track for judging cursor pointer is to be moved to first area by second area, then it represents that use Wish to add index to be added in second area to first area in family.Now, system sends to server and asks Add the message of index in first area.Server replys response message in the case where the request message is received, Wherein, whether response message is to confirm to add the message in the index to first area.Wherein, if the response message is Null message, represents and confirms to add that the index to first area, is then added the index to first area, and in the firstth area Domain addition pulls the destination object for coming, while this is deleted in second area successfully adds the index into first area; If response message is the miscue information that includes in non-null message, and response message, then it represents that without the index extremely First area, now, the coordinate of destination object is back to the coordinate of initial position by the coordinate of the cursor pointer followed.
If the initial position of cursor pointer is located in first area, and final position is similarly positioned in first area, then Cursor pointer is drawn to the coordinate that the coordinate of the destination object of final position returns initial position, does not carry out any operation; Similarly, if the initial position of cursor pointer is located in second area, and final position is similarly positioned in second area, Then cursor pointer is drawn to the coordinate of the coordinate return initial position of the destination object of final position, does not carry out any operation.
Fig. 3 is the flow chart of the optional webpage middle finger target processing method of another kind according to the embodiment of the present application, is such as schemed Shown in 3, the method comprises the steps S202 to step S224:
Step S202, judges whether cursor pointer produces triggering command in initial position, wherein, producing triggering command In the case of, execution step S204 otherwise, continues executing with step S202, continues to determine whether to produce triggering command. Specifically, it is assumed that by mouse control cursor pointer it is mobile when, click on mouse left button, that is, produce triggering command.
Step S204, obtains the destination object of cursor pointer place initial position.Specifically, obtain triggering command to produce The destination object of initial position residing for moment cursor pointer, wherein, in the embodiment of the present application, destination object is dom Object.
Whether step S206, judge in the destination object for getting comprising index.Wherein, if judging to include index, Execution step S208;If judging not comprising index, execution step S210.Specifically, by judging destination object In whether include index during whether the index comprising the index is identified to determine destination object, wherein, index mark can be with For the information that the id information of the index, text message etc. uniquely represent the index.
Step S208, obtains motion track.In the case that the index comprising the index is identified in destination object is judged, When user drags the cursor pointer, the coordinate of destination object follows always the coordinate of the cursor pointer.When user is by light To optional position, and when left mouse button is unclamped in the position, the position is final position to mark pointer drag.Then cursor Pointer is motion track by the track that initial position is moved to final position.
Step S210, does not carry out any operation.If judging in destination object comprising index, the coordinate of destination object The coordinate of cursor pointer is not followed, any operation is not carried out.
Step S212, judges whether motion track is moved to second area by first area.If so, then execution step S214; If it is not, then execution step S216.Wherein, first area is the region residing for the index added, and second area is to treat Region residing for the index of addition.If motion track is moved to second area by first area, shows that user is actual and wish Hope and delete the index added in first area;If motion track is moved to first area by second area, show to use Index is added in the first region in the actual hope in family.
Step S214, deletes index in first area, and adds index in second area.Judging moving rail Mark be second area is moved to by first area in the case of, delete in first area in the index, and second area Add the index, so that user adds the index next time in first area, and save the space in netpage page face.
Step S216, judges whether motion track is moved to first area by second area.Wherein, if so, then perform Step S218;If it is not, then execution step S224.
Step S218, sends request message to server.Wherein, it is to be moved by second area motion track is judged To first area, request message is sent to server, device to be serviced is received after the request message, connect Receive the response message that server is replied.
Step S220, judges whether the response message for receiving is null message.Wherein, judging from server In the case that response message is null message, execution step S222 adds the index to first area, while the The index is deleted in two regions, the space in netpage page face is saved;Judging from the response message of server In the case of comprising miscue information, any operation is not carried out, terminate flow process.
Step S222, addition index deletes index to first area in second area.
Step S224, the position of destination object returns initial position.If the motion track for getting not is by the firstth area Domain is moved to second area, nor being moved to first area by second area, now, the position of destination object returns Initial position, does not perform any operation.
The webpage middle finger target processing method that the application is provided, realizes the addition and deletion of index by way of pulling, It is operationally simpler, convenient.And the adding procedure of multistep in prior art, is pulled in this application by a step Can complete, also, pull the operating habit and operational cognition for more meeting user, Consumer's Experience can be lifted, accelerate The speed of index process.
The embodiment of the present application additionally provides a kind of webpage middle finger target processing meanss, and the processing meanss are mainly used in performing sheet The webpage middle finger target processing method that application embodiment the above is provided, send offer to the embodiment of the present application below Webpage middle finger target processing meanss do concrete introduction.
Fig. 4 is a kind of schematic diagram of the webpage middle finger target processing meanss according to the embodiment of the present application, as shown in figure 4, The webpage middle finger target processing meanss mainly include first acquisition unit 10, the first judging unit 20, second acquisition unit 30 and control unit 40, wherein:
First acquisition unit 10, for obtaining the destination object of cursor pointer place initial position, wherein, destination object To characterize the object of webpage elements.
Specifically, in the embodiment of the present application, cursor pointer is moved in webpage, wherein, set by being connected to terminal Standby hardware device control cursor pointer is moved in webpage.Hardware device is by wired and be wirelessly connected to end End equipment, hardware device includes any one in the equipment such as mouse, touch pad, control-rod, button and keyboard.When When cursor pointer chooses a certain position paper or file in webpage, the position is initial position, needs explanation It is that cursor pointer may include index in the file that initial position is chosen, it is also possible to not comprising index;If this document In include index, then the index quantity can be one, or it is multiple.
It should be noted that destination object is dom (document object model) object, wrap in dom objects Containing the web page element in webpage, wherein, web page element includes word, picture, audio frequency, animation and video etc..Obtain While taking the destination object of initial position, position coordinates (that is, the initial position of the destination object can also be obtained Coordinate).
First judging unit 20, whether comprising index in the destination object got for judgement.
Specifically, in application embodiment, index is the index in performance systems, and for example, index can be " interconnection Net influence power " and " Consumer's Experience " etc., wherein, " the influence of internet power " can be divided into again " mobile terminal accessing amount ", " website domestic user's influence power ", " the interviewed rate of the page is included in search " etc., " Consumer's Experience " can be included " in standing again The indexs such as search node clicking rate ".
Second acquisition unit 30, comprising in the case of index, obtains and moves in the destination object for getting is judged Dynamic rail mark, wherein, motion track is the track that cursor pointer is moved to final position from initial position.
Specifically, if destination object includes index, the coordinate of destination object follows the coordinate of cursor pointer;If mesh Index is not included in mark object, then the coordinate of destination object does not follow the coordinate of cursor pointer.When cursor pointer is moved to During final position, the motion track of cursor pointer is obtained, wherein, when destination object includes index, cursor pointer Motion track be the motion track of destination object.
Control unit 40, for the operation according to motion track control to index.Specifically, according to the cursor for getting It is to delete index that the motion track of pointer determines, or addition index.
The webpage middle finger target processing meanss that the embodiment of the present application is provided, by the target for obtaining cursor pointer position Object, comprising in the case of index in destination object is judged, mobile cursor pointer is only obtained to final position The motion track of cursor pointer, and according to motion track add or delete index, relative in prior art pass through final election Frame adds or deletion refers to calibration method, has reached simplified addition or has deleted the purpose of pointer operation step, it is achieved thereby that Can be achieved with adding or deleting the technique effect of index by mobile cursor pointer, and then solve deletion in prior art Or the excessively loaded down with trivial details technical problem of operation of addition index.
Alternatively, the webpage middle finger target processing meanss that the application is provided also include:Second judging unit, for One acquiring unit is obtained before the destination object of cursor pointer place initial position, judges that cursor pointer is in initial position No generation triggering command, wherein, in the case of judging that cursor pointer produces triggering command in initial position, obtain light Destination object of the mark pointer in initial position.
Specifically, if cursor pointer is by mouse control, cursor pointer after the left button that initial position clicks on mouse, The file of initial position can be chosen, also, when initial position file is chosen, produces triggering command. Judge whether to produce triggering command by the second judging unit, if the second judging unit is judged to produce triggering command, Initial position destination object is obtained by first acquisition unit.
If when triggering command terminates, it is determined that the position that the moment cursor pointer terminated in triggering command is located is stop bit Put.Specifically, when user is clicked on by mouse chooses the file of initial position, this document can be drawn to webpage In optional position.When user unclamps the left button of mouse, triggering command terminates, wherein, terminate in triggering command Moment, the position that cursor pointer is located is final position.Cursor pointer pulls file to final position by initial position Track be motion track in the embodiment of the present application.
Alternatively, the first judging unit 20 includes:Whether judge module, wrap in the destination object got for judgement Index containing index mark;Determining module, in the case of in destination object is judged comprising index mark, really Set the goal in object comprising index.
Specifically, by judging destination object in whether comprising index mark to determine destination object in whether comprising referring to Mark, wherein, index mark can be the mark that id information, text message of the index etc. uniquely represent the index.If In the case of judging to be identified comprising index in destination object, it is determined that go out comprising index in destination object, wherein, The index is that user is actual wishes addition, or the actual index for wishing to delete of user.
Alternatively, control unit 40 includes:First removing module, motion track is got for destination object for working as In the case that position is moved to second area by first area, index is deleted in first area, and in second area Addition index, wherein, first area is the region residing for the index added, and second area is index institute to be added The region at place.
If the motion track of the cursor pointer for getting is to be moved to second area by first area, delete by first Module in the first region deletes the index, and adds the index in the second area, so that user is in follow-up behaviour Continue to add the index in work to first area.
Alternatively, control unit 40 also includes:Sending module, for working as the position for getting that motion track is destination object Put in the case of being moved to first area by second area, send request message to server, wherein, request message is The message of index is added in request in first area;Receiver module, for receiving the response message from server;Add Plus module, in the case of being null message when response message, add index to first area, and in second area Delete index;Return module, for when in response message comprising in the case of miscue information, the position of destination object Put return initial position.
Specifically, if the motion track for getting cursor pointer is to be moved to first area by second area, then it represents that use Wish to add index to be added in second area to first area in family.Now, system passes through sending module to clothes Business device sends the message that index is added in request in first area.Server in the case where the request message is received, Response message is replied, wherein, whether response message is to confirm to add the message in the index to first area.Wherein, If the response message received by receiver module is null message, represents and confirm to add that the index to first area, then will The index is added to first area, and adds the destination object for pulling in first area, and interior deletion of second area should Successfully add the index into first area;If the response message received by receiver module is non-null message, and Miscue information is included in response message, then it represents that without the index to first area, now, destination object Coordinate is back to the coordinate of initial position by the coordinate of the cursor pointer followed.
If the initial position of cursor pointer is located in first area, and final position is similarly positioned in first area, then Cursor pointer is drawn to the coordinate that the coordinate of the destination object of final position returns initial position, does not carry out any operation; Similarly, if the initial position of cursor pointer is located in second area, and final position is similarly positioned in second area, Then cursor pointer is drawn to the coordinate of the coordinate return initial position of the destination object of final position, does not carry out any operation.
The webpage middle finger target processing meanss include processor and memory, and above-mentioned first acquisition unit, first judge Unit, second acquisition unit and control unit etc. are stored in memory as program unit, are deposited by computing device Storage said procedure unit in memory is realizing corresponding function.
Kernel is included in processor, is gone in memory to transfer corresponding program unit by kernel.Kernel can arrange one Or more, addition is simplified by adjusting kernel parameter or pointer operation step is deleted, it is achieved thereby that by mobile light Mark pointer can be achieved with adding or deleting the technique effect of index, and then solve deletion or addition index in prior art The excessively loaded down with trivial details technical problem of operation.
Memory potentially includes the volatile memory in computer-readable medium, random access memory (RAM) and/ Or the form, such as read-only storage (ROM) or flash memory (flash RAM) such as Nonvolatile memory, memory includes at least one Individual storage chip.
Present invention also provides a kind of computer program, when performing on data processing equipment, is adapted for carrying out just The program code of beginningization there are as below methods step:The destination object of cursor pointer place initial position is obtained, wherein, mesh Mark object is the object for characterizing webpage elements;Whether comprising index in the destination object that judgement gets;Sentencing Break and in the destination object for getting comprising in the case of index, obtain motion track, wherein, motion track is cursor Pointer is moved to the track of final position from initial position;According to operation of the motion track control to index.
Above-mentioned the embodiment of the present application sequence number is for illustration only, does not represent the quality of embodiment.
In above-described embodiment of the application, the description to each embodiment all emphasizes particularly on different fields, and does not have in certain embodiment The part of detailed description, may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed technology contents, other can be passed through Mode realize.Wherein, device embodiment described above is only schematic, such as division of described unit, Can be a kind of division of logic function, can there is other dividing mode, such as multiple units or component when actually realizing Can with reference to or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, institute The coupling each other for showing or discussing or direct-coupling or communication connection can be by some interfaces, unit or mould The INDIRECT COUPLING of block or communication connection, can be electrical or other forms.
The unit as separating component explanation can be or may not be it is physically separate, it is aobvious as unit The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to On multiple units.Some or all of unit therein can be according to the actual needs selected to realize this embodiment scheme Purpose.
In addition, each functional unit in the application each embodiment can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.It is above-mentioned integrated Unit both can be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is realized and as independent production marketing or when using using in the form of SFU software functional unit, During a computer read/write memory medium can be stored in.Based on such understanding, the technical scheme essence of the application On all or part of prior art is contributed part in other words or the technical scheme can be with software product Form is embodied, and the computer software product is stored in a storage medium, including some instructions are used so that one Platform computer equipment (can be personal computer, server or network equipment etc.) performs each embodiment institute of the application State all or part of step of method.And aforesaid storage medium includes:USB flash disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), portable hard drive, magnetic disc or CD Etc. it is various can be with the medium of store program codes.
The above is only the preferred embodiment of the application, it is noted that for the ordinary skill people of the art For member, on the premise of without departing from the application principle, some improvements and modifications can also be made, these improve and moisten Decorations also should be regarded as the protection domain of the application.

Claims (10)

1. a kind of webpage middle finger target processing method, it is characterised in that include:
The destination object of cursor pointer place initial position is obtained, wherein, the destination object is the sign net The object of web page element in page;
Whether comprising index in the destination object that judgement gets;
Comprising in the case of the index in the destination object for getting is judged, motion track is obtained, Wherein, the motion track is the track that the cursor pointer is moved to final position from the initial position;With And
According to operation of the motion track control to the index.
2. method according to claim 1, it is characterised in that whether wrap in the destination object that judgement gets Include containing index:
Whether the index comprising the index is identified in the destination object that judgement gets;And
In the case of identifying comprising the index in the destination object is judged, in determining the destination object Comprising the index.
3. method according to claim 1, it is characterised in that control to the index according to the motion track Operation includes:
Second area is moved to by first area when the position that the motion track is the destination object is got In the case of, the index is deleted in the first area, and add the index in the second area, Wherein, the first area is the region residing for the index added, and the second area is index to be added Residing region.
4. method according to claim 3, it is characterised in that control to the index according to the motion track Operation also includes:
Described is moved to when the position that the motion track is the destination object is got by the second area In the case of one region, request message is sent to server, wherein, the request message is request described the Add the message of the index in one region;
Receive the response message from the server;
In the case that the response message is null message, add the index to the first area, and in institute State and delete in second area the index;And
In the case of in the response message comprising miscue information, the position of the destination object returns institute State initial position.
5. method according to claim 1, it is characterised in that in the target for obtaining the cursor pointer present position Before object, methods described also includes:
Judge whether the cursor pointer produces triggering command in the initial position, wherein, described in judging Cursor pointer is produced in the case of the triggering command in the initial position, obtains the cursor pointer described first Beginning position destination object.
6. method according to claim 5, it is characterised in that when the triggering command terminates, it is determined that when terminating The position for carving the cursor pointer place is the final position.
7. a kind of webpage middle finger target processing meanss, it is characterised in that include:
First acquisition unit, for obtaining the destination object of cursor pointer place initial position, wherein, the mesh Mark object is the object for characterizing the webpage elements;
First judging unit, whether comprising index in the destination object got for judgement;
Second acquisition unit, for the situation comprising the index in the destination object for getting is judged Under, motion track is obtained, wherein, the motion track is moved to for the cursor pointer from the initial position The track of final position;And
Control unit, for the operation according to motion track control to the index.
8. device according to claim 7, it is characterised in that first judging unit includes:
Judge module, whether the index comprising the index is identified in the destination object got for judgement; And
Determining module, in the case of in the destination object is judged comprising index mark, it is determined that The index is included in the destination object.
9. device according to claim 7, it is characterised in that described control unit includes:
First removing module, for when getting position that the motion track is the destination object by the firstth area In the case that domain is moved to second area, the index is deleted in the first area, and in secondth area Add the index in domain, wherein, the first area is the region residing for the index added, described second Region is the region residing for index to be added.
10. device according to claim 9, it is characterised in that described control unit also includes:
Sending module, for when getting position that the motion track is the destination object by secondth area In the case that domain is moved to the first area, request message is sent to server, wherein, the request message For the message that the index is added in request in the first area;And
Receiver module, for receiving the response message from the server;
Add module, in the case of being null message when the response message, adds the index to described the One region, and the index is deleted in the second area;And
Return module, for when in the response message comprising in the case of miscue information, the target pair The position of elephant returns the initial position.
CN201510729523.4A 2015-10-30 2015-10-30 Method and device for processing indexes in webpage Active CN106648282B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510729523.4A CN106648282B (en) 2015-10-30 2015-10-30 Method and device for processing indexes in webpage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510729523.4A CN106648282B (en) 2015-10-30 2015-10-30 Method and device for processing indexes in webpage

Publications (2)

Publication Number Publication Date
CN106648282A true CN106648282A (en) 2017-05-10
CN106648282B CN106648282B (en) 2021-05-14

Family

ID=58809639

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510729523.4A Active CN106648282B (en) 2015-10-30 2015-10-30 Method and device for processing indexes in webpage

Country Status (1)

Country Link
CN (1) CN106648282B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103164191A (en) * 2011-12-08 2013-06-19 腾讯科技(深圳)有限公司 Method and device of webpage element dragging
US20140025725A1 (en) * 2012-07-23 2014-01-23 Korea Advanced Institute Of Science And Technology Method and apparatus for moving web object based on intent
CN104077389A (en) * 2014-06-27 2014-10-01 北京奇虎科技有限公司 Display method of webpage element information and browser device
CN104461309A (en) * 2014-12-26 2015-03-25 北京奇虎科技有限公司 Method and device for cross-page object position adjustment based on dragging operation
CN104462410A (en) * 2014-12-11 2015-03-25 北京国双科技有限公司 Method and device for processing web page options

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103164191A (en) * 2011-12-08 2013-06-19 腾讯科技(深圳)有限公司 Method and device of webpage element dragging
US20140025725A1 (en) * 2012-07-23 2014-01-23 Korea Advanced Institute Of Science And Technology Method and apparatus for moving web object based on intent
CN104077389A (en) * 2014-06-27 2014-10-01 北京奇虎科技有限公司 Display method of webpage element information and browser device
CN104462410A (en) * 2014-12-11 2015-03-25 北京国双科技有限公司 Method and device for processing web page options
CN104461309A (en) * 2014-12-26 2015-03-25 北京奇虎科技有限公司 Method and device for cross-page object position adjustment based on dragging operation

Also Published As

Publication number Publication date
CN106648282B (en) 2021-05-14

Similar Documents

Publication Publication Date Title
US20190342415A1 (en) Event information push method, event information push apparatus, and storage medium
CN102316130B (en) A kind of behavior based on user judges the method and apparatus of the close and distant degree of itself and good friend
CN104520843A (en) Providing note based annotation of content in e-reader
CN103248705B (en) Server, client and method for processing video frequency
CN104426944B (en) Information feedback method, device and terminal
CN104247378B (en) Rule-based content analysis is provided to manage the activation of web extensions
CN102117314A (en) Document information transmission method and apparatus
CN110708235B (en) Message generation method and device, storage medium and computer equipment
CN111314204B (en) Interaction method, device, terminal and storage medium
CN104243273A (en) Method and device for displaying information on instant messaging client and information display system
CN112394861B (en) Page jump method and device, storage medium and electronic device
CN104052714A (en) Multimedia information push method and server
CN105867820A (en) Text editing method and device for touch screen
CN102811207A (en) Network information pushing method and system
WO2020258773A1 (en) Method, apparatus, and device for determining pushing user group, and storage medium
CN107341690A (en) Information-pushing method and device
CN107894945A (en) Bury an adding method, mobile terminal and computer-readable recording medium
CN112163642A (en) Wind control rule obtaining method, device, medium and equipment
CN108334508A (en) The extracting method and device of webpage information
CN109308337A (en) Page sharing method and device
CN106951270A (en) A kind of code process method, system and server
CN104484482A (en) Webpage information updating method and system of network platform
CN105550179A (en) Webpage collection method and browser plug-in
CN112699295A (en) Webpage content recommendation method and device and computer readable storage medium
CN104063155B (en) Content share method, device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Applicant after: Beijing Guoshuang Technology Co.,Ltd.

Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing

Applicant before: Beijing Guoshuang Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant