CN106611014B - Method and device for adjusting webpage query condition sequence - Google Patents

Method and device for adjusting webpage query condition sequence Download PDF

Info

Publication number
CN106611014B
CN106611014B CN201510707166.1A CN201510707166A CN106611014B CN 106611014 B CN106611014 B CN 106611014B CN 201510707166 A CN201510707166 A CN 201510707166A CN 106611014 B CN106611014 B CN 106611014B
Authority
CN
China
Prior art keywords
webpage
adjusting
sequence
web page
query condition
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
CN201510707166.1A
Other languages
Chinese (zh)
Other versions
CN106611014A (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 CN201510707166.1A priority Critical patent/CN106611014B/en
Publication of CN106611014A publication Critical patent/CN106611014A/en
Application granted granted Critical
Publication of CN106611014B publication Critical patent/CN106611014B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques

Abstract

The invention discloses a method and a device for adjusting a webpage query condition sequence, relates to the field of internet application, and solves the problems that when the query condition sequence is adjusted in a webpage, the operation mode is complicated and is not intuitive enough. The main technical scheme of the invention is as follows: receiving a webpage query condition sequence adjusting instruction, wherein the webpage query condition adjusting instruction carries identification information of webpage query conditions of a sequence to be adjusted; detecting whether a preset sequence adjustment end event corresponding to the identification information is triggered; if so, acquiring webpage position information corresponding to the preset sequence adjustment end event; and acquiring the adjusted sequence number corresponding to the webpage query condition and adjusting according to the webpage position information and the webpage label width corresponding to the webpage query condition. The method and the device are mainly used for sequencing and adjusting the webpage query conditions.

Description

Method and device for adjusting webpage query condition sequence
Technical Field
The invention relates to the technical field of information, in particular to a method and a device for adjusting a webpage query condition sequence.
Background
With the continuous development of internet web page technology, methods for providing query conditions by a business system in the form of web pages are more and more. In order to find out the requirements of the user more quickly and accurately, the system carries out sequencing according to a plurality of searching conditions provided by the user and searches according to the sequencing priority, so that a more accurate result is obtained.
At present, in order to adjust query conditions, a priority can be marked before each query condition, and then all query conditions are integrally sorted, but if a certain priority is modified, the integral query conditions need to be reordered, so that the workload is increased, and the operation is complicated and is not intuitive enough; the manual adjustment can be performed by adding a left-shift button and a right-shift button under each query condition, but when the sequence of the manual adjustment is very close to the front or the back, the click quantity of the buttons is increased, the operation is complicated, and the adjustment efficiency of the sequence of the webpage query conditions is low.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for adjusting a sequence of web page query conditions, which can improve the efficiency of adjusting the sequence of web page query conditions.
By the technical scheme, the method for adjusting the sequence of the webpage query conditions comprises the following steps:
receiving a webpage query condition sequence adjusting instruction, wherein the webpage query condition adjusting instruction carries identification information of webpage query conditions of a sequence to be adjusted;
detecting whether a preset sequence adjustment end event corresponding to the identification information is triggered;
if so, acquiring webpage position information corresponding to the preset sequence adjustment end event;
and acquiring the adjusted sequence number corresponding to the webpage query condition and adjusting according to the webpage position information and the webpage label width corresponding to the webpage query condition.
With the above technical solution, the device for adjusting the sequence of the web page query conditions provided by the present invention comprises:
the webpage query condition sequence adjusting device comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving a webpage query condition sequence adjusting instruction, and the webpage query condition adjusting instruction carries identification information of webpage query conditions of a sequence to be adjusted;
the detection unit is used for detecting whether a preset sequence adjustment end event corresponding to the identification information is triggered or not;
the acquisition unit is used for acquiring webpage position information corresponding to a preset sequence adjustment end event if the detection unit detects that the preset sequence adjustment end event corresponding to the identification information is triggered;
and the adjusting unit is used for acquiring and adjusting the adjusted sequence number corresponding to the webpage query condition according to the webpage position information and the webpage label width corresponding to the webpage query condition.
By the technical scheme, the technical scheme provided by the embodiment of the invention at least has the following advantages:
the method and the device for adjusting the sequence of the webpage query conditions provided by the embodiment of the invention comprise the steps of firstly receiving a webpage query condition sequence adjusting instruction, wherein the webpage query condition adjusting instruction carries identification information of the webpage query conditions of the sequence to be adjusted; detecting whether a preset sequence adjustment end event corresponding to the identification information is triggered; if so, acquiring webpage position information corresponding to the preset sequence adjustment end event; and acquiring the adjusted sequence number corresponding to the webpage query condition and adjusting according to the webpage position information and the webpage label width corresponding to the webpage query condition. Compared with the prior art that the priority is marked before each query condition for integral sequencing and the left-right moving button is added, the method and the device directly adjust the webpage query conditions to the target position according to the webpage position information to be finally adjusted of the webpage query conditions and the webpage label width corresponding to the webpage query conditions, and can improve the efficiency of adjusting the sequence of the webpage query conditions.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart illustrating a method for adjusting an order of query conditions of a web page according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating another method for adjusting the query condition order of a web page according to an embodiment of the present invention;
fig. 3 is a block diagram illustrating an apparatus for adjusting an order of query conditions of a web page according to an embodiment of the present invention;
fig. 4 is a block diagram illustrating another apparatus for adjusting an order of query conditions of a web page according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The embodiment of the invention provides a method for adjusting a webpage query condition sequence, which comprises the following steps of:
101. and receiving a webpage query condition sequence adjusting instruction.
The webpage query condition adjustment instruction carries identification information of the webpage query conditions of the sequence to be adjusted, and the identification information can be ID of the identity of the webpage query conditions and is used for uniquely identifying the webpage query conditions. For example, the query condition of the web page to be adjusted in sequence is "medicine", and the query condition code is: the code ID of the query condition is "yi _ yao", and the code ID of the query condition is "yi _ yao" class "is" query-condition "> medicine". The receiving of the webpage query condition sequence adjustment instruction can be realized by clicking the webpage query condition to be adjusted by a user through a mouse. For example, a left mouse button pressing event is bound under the query condition of "medicine", the event processing function acquires the ID of the clicked "medicine", so that the "medicine" can be recorded as the web page query condition of the sequence to be adjusted, and the code for recording the ID value of the "medicine" is as follows: var id; $ (". query-condition"). mouseddown (function () { id ═ this.,. prop ("id"),).
102. And detecting whether a preset sequence adjustment end event corresponding to the identification information is triggered.
The preset sequence adjustment end event may be that a user ends a click operation of a mouse by ending, at this time, it is detected whether the preset sequence adjustment end event corresponding to the identification information is triggered, that is, whether a click end instruction exists after the left mouse button is pressed, and if the preset sequence adjustment end event is ended, the preset sequence adjustment end event is triggered. For example, pressing the left mouse button to click "education", dragging to a position to be adjusted after pressing, and detecting whether the left mouse button is released.
103. And if detecting that the preset sequence adjustment end event corresponding to the identification information is triggered, acquiring webpage position information corresponding to the preset sequence adjustment end event.
And the webpage position information corresponding to the preset sequence adjustment end event is the information of the position to be adjusted in all sequences of the webpage query condition. For example, clicking a left mouse button to click "aviation", pressing the mouse to drag, and when the left mouse button is released, namely triggering a preset sequence adjustment end event, acquiring the position information of the webpage where the current "aviation" is located.
104. And acquiring the adjusted sequence number corresponding to the webpage query condition and adjusting according to the webpage position information and the webpage label width corresponding to the webpage query condition.
And calculating the adjusted sequence number by using the webpage position information and the webpage label width corresponding to the webpage query condition. For example, the method sequences the 'computer, beauty treatment and chemical engineering' to obtain the 'computer' webpage position information, moves to a position between the 'beauty treatment' and the 'chemical engineering', calculates the adjusted serial number to be 2 according to the webpage position information and the webpage label width corresponding to the webpage query condition, and adjusts the 'computer' to a second position.
For the embodiment of the present invention, specific application scenarios may be as follows, but are not limited to the following scenarios, including: the query conditions are food, health, finance and job hunting, the query conditions of the sequence to be adjusted are job hunting, the webpage query condition sequence adjustment instruction is that a user clicks on the webpage query conditions to be adjusted through a mouse, the preset sequence adjustment ending event is that the user ends the clicking operation of the mouse, the webpage position is 5, the left button of the mouse clicks on the job hunting, the left button dragging is held, when the mouse is dragged to the middle of the food and the health, the left button is released, the adjusted sequence number 2 is obtained by calculating the width of the webpage label reaching the food and the health, and the job hunting is adjusted to the position with the sequence of 2.
The method for adjusting the sequence of the webpage query conditions comprises the steps of firstly receiving a webpage query condition sequence adjusting instruction, wherein the webpage query condition adjusting instruction carries identification information of the webpage query conditions of the sequence to be adjusted; detecting whether a preset sequence adjustment end event corresponding to the identification information is triggered; if so, acquiring webpage position information corresponding to the preset sequence adjustment end event; and acquiring the adjusted sequence number corresponding to the webpage query condition and adjusting according to the webpage position information and the webpage label width corresponding to the webpage query condition. Compared with the prior art that the priority is marked before each query condition for integral sequencing and the left-right moving button is added, the method and the device directly adjust the webpage query conditions to the target position according to the webpage position information to be finally adjusted of the webpage query conditions and the webpage label width corresponding to the webpage query conditions, and can improve the efficiency of adjusting the sequence of the webpage query conditions.
Further, an embodiment of the present invention provides another method for adjusting an order of web page query conditions, as shown in fig. 2, where the method includes:
201. configuring corresponding identification information for each webpage query condition.
The corresponding identification information configured for each web page query condition includes a corresponding identification ID, and each identification ID is different. For example, identification information is configured for "group purchase", "travel", and "internet", and the configured identification ID is "tun _ gou", ID "lv _ you", and ID "hu _ lian _ wang". By configuring corresponding identification information for each webpage query condition, the sequence of each webpage query condition is adjusted, and the efficiency of adjusting the sequence of the webpage query conditions is improved.
202. And respectively configuring the preset sequence adjustment event and the preset sequence adjustment ending event for each piece of identification information.
The preset sequence adjustment event comprises an event processing function and is used for recording the identification ID of the title information of the webpage to be adjusted, and the preset sequence adjustment end event comprises an event processing function and is used for calculating the final sequence number of the webpage query condition and updating the query condition sequence. For example, a preset sequence adjustment function is configured for "group purchase", wherein the event processing function is: var id; $ () "
Query-condition "). mousedown (function () { id ═ this (this). prop (" id "); }) the identifier ID of the current "group purchase" is ID ═ tuan _ gou ", a preset sequence adjustment end event is configured for the" group purchase ", and the event processing function is as follows: $ (". query-condition"). mouseup (function () {// here code is written to calculate the query condition final order number, and the web page query condition order is updated }). By configuring the preset sequence adjustment event and the preset sequence adjustment end event in each identification information, each webpage query condition realizes sequence update, and the efficiency of adjusting the sequence of the webpage query conditions is improved.
203. And receiving a webpage query condition sequence adjusting instruction.
The webpage query condition adjustment instruction carries identification information of the webpage query conditions of the sequence to be adjusted, and the received webpage query condition sequence adjustment instruction can be used for a user to click on the webpage query conditions to be adjusted through a mouse. For example, binding a left mouse button pressing event under the condition of 'education' query, acquiring the identification ID of the clicked 'education' in the event processing function: if ID is jiao _ yu, then "education" can be recorded as a web page query condition of the sequence to be adjusted, and the code of the identification ID of "education" is recorded as: var id; $ (". query-condition"). mouseddown (function () { id ═ this.,. prop ("id"),).
For the embodiment of the present invention, step 203 may specifically be: detecting whether a preset sequence adjustment event is triggered; and if so, acquiring identification information of the webpage query condition corresponding to the preset sequence adjustment event. For example, when the web page query condition is "school", a left mouse click is performed, a detection of invoking a preset sequence adjustment event is triggered, and the identification ID of the web page query condition is obtained as "xue _ xiao".
204. And detecting whether a preset sequence adjustment end event corresponding to the identification information is triggered.
The preset sequence adjustment end event may be a click end operation performed by a user on a webpage query condition to be adjusted through a mouse, at this time, it is detected whether the preset sequence adjustment end event corresponding to the identification information is triggered, that is, whether a click end instruction exists after a left mouse button is pressed, and if the preset sequence adjustment end event is triggered, the click end instruction exists.
205. And if detecting that the preset sequence adjustment end event corresponding to the identification information is triggered, acquiring webpage position information corresponding to the preset sequence adjustment end event.
And the webpage position information corresponding to the preset sequence adjustment end event is the information of the position to be adjusted in all sequences of the webpage query condition.
206. And acquiring the distance between the left boundary of the webpage label corresponding to the webpage query condition and the coordinate origin according to the webpage position information corresponding to the webpage query condition, the width of the webpage label and the position information of the preset coordinate origin.
The width of the webpage label and the position information of the preset coordinate origin are contained in the identification information of the webpage query condition, the distance between the left boundary of the webpage label and the coordinate origin is used for calculating the sequence number of the final webpage query condition, and the width and the height of the webpage label of each webpage query condition are the same.
207. When the web page query condition is adjusted according to the sequence number from small to large, the adjusted sequence number corresponding to the web page query condition is obtained according to the formula count ═ lastX-x-width)/width.
The count is an adjusted sequence number and is an integer, the lastX is the web page position information corresponding to the preset sequence adjustment end event, the x is the distance between the left boundary of the web page tag corresponding to the web page query condition and the coordinate origin, and the width is the web page tag width corresponding to the web page query condition. If the count is a decimal number, rounding is performed, the serial number of the first digit is 1, the serial number of the second digit is 2, and the like.
For example, "food, health, travel, group purchase, medicine", "medicine" is a query condition to be sequenced, and its position in the web page is (X, Y), left in the web page represents X-axis coordinates, and top represents Y-axis coordinates. The width of the medicine in the webpage is width, and the height is height. When the left mouse button is pressed down to select the medicine, the mouse is moved to a blank between the food and the sanitation to release the left mouse button, the position of the mouse is (lastX, lastY), (lastX-x-width) is the distance between the positions when the food and the sanitation are dragged to release the left mouse button, the number of the query condition labels is (lastX-x-width)/width, the original medicine number is 5, and the final number is count + 5.
208. And adjusting the webpage query condition to a webpage position corresponding to the sequence number.
For example, if the initial number of the query condition of the "education" web page is 1 and the final count value is 2, "education" is adjusted to the position of the number 3.
For the embodiment of the present invention, specific application scenarios may be as follows, but are not limited to the following scenarios, including: the web page query conditions to be sorted, such as finance, biology, chemical engineering, machinery and food, are respectively numbered in the following sequence: 1. 2, 3, 4 and 5, configuring corresponding identification ID for each webpage query condition: the method comprises the following steps of (1) recording webpage query conditions, wherein the query conditions comprise id ═ jinrong, < d ═ sheng _ wu ═ d ═ hua _ gong ═ ji _ xie and < d ═ shi _ pin ═ d ═ shi _ xie, width of each webpage query condition is width and height of each webpage query condition is height, and when a mouse left key clicks financial, a left key is held and dragged, and an event processing function in a preset sequence adjustment event is called to record the webpage query conditions: a varid; $ (". query-condition"). mousedown (function () { id ═ this. prop ("id");) }), when "finance" is dragged between "chemical" and "mechanical", the left mouse button is released, the event handling function in the preset sequence adjustment end event is called: $ (". query-condition"). mouseup (function () { }). The query condition label number calculation formula is (lastX-x-width)/width, the calculation result is count 2, the final sequence number is 2+ 1-3, the financial is adjusted to the position with the number of 3, and the final result is biological, chemical, financial, mechanical and food.
The other method for adjusting the sequence of the webpage query conditions, provided by the embodiment of the invention, comprises the steps of firstly receiving a webpage query condition sequence adjustment instruction, wherein the webpage query condition adjustment instruction carries identification information of the webpage query conditions of the sequence to be adjusted; detecting whether a preset sequence adjustment end event corresponding to the identification information is triggered; if so, acquiring webpage position information corresponding to the preset sequence adjustment end event; and acquiring the adjusted sequence number corresponding to the webpage query condition and adjusting according to the webpage position information and the webpage label width corresponding to the webpage query condition. Compared with the prior art that the priority is marked before each query condition for integral sequencing and the left-right moving button is added, the method and the device directly adjust the webpage query conditions to the target position according to the webpage position information to be finally adjusted of the webpage query conditions and the webpage label width corresponding to the webpage query conditions, and can improve the efficiency of adjusting the sequence of the webpage query conditions.
The embodiment of the apparatus corresponds to the embodiment of the method, and for convenience of reading, details in the embodiment of the apparatus are not repeated one by one, but it should be clear that the apparatus in the embodiment can correspondingly implement all the contents in the embodiment of the method.
Further, as a specific implementation of the method shown in fig. 1, an embodiment of the present invention provides a device for adjusting a sequence of web page query conditions, where as shown in fig. 3, the device may include: receiving unit 31, detecting unit 32, acquiring unit 33, and adjusting unit 34.
The receiving unit 31 is configured to receive a webpage query condition order adjustment instruction;
the detecting unit 32 is configured to detect whether a preset sequence adjustment end event corresponding to the identification information is triggered;
the obtaining unit 33 is configured to obtain, if the detecting unit 32 detects that the preset sequence adjustment end event corresponding to the identification information is triggered, the webpage position information corresponding to the preset sequence adjustment end event;
and the adjusting unit is used for acquiring and adjusting the adjusted sequence number corresponding to the webpage query condition according to the webpage position information and the webpage label width corresponding to the webpage query condition.
The adjusting device for the webpage query condition sequence provided by the embodiment of the invention firstly receives a webpage query condition sequence adjusting instruction, wherein the webpage query condition adjusting instruction carries identification information of the webpage query condition of the sequence to be adjusted; detecting whether a preset sequence adjustment end event corresponding to the identification information is triggered; if so, acquiring webpage position information corresponding to the preset sequence adjustment end event; and acquiring the adjusted sequence number corresponding to the webpage query condition and adjusting according to the webpage position information and the webpage label width corresponding to the webpage query condition. Compared with the prior art that the priority is marked before each query condition for integral sequencing and the left-right moving button is added, the method and the device directly adjust the webpage query conditions to the target position according to the webpage position information to be finally adjusted of the webpage query conditions and the webpage label width corresponding to the webpage query conditions, and can improve the efficiency of adjusting the sequence of the webpage query conditions.
The embodiment of the apparatus corresponds to the embodiment of the method, and for convenience of reading, details in the embodiment of the apparatus are not repeated one by one, but it should be clear that the apparatus in the embodiment can correspondingly implement all the contents in the embodiment of the method.
Further, as a specific implementation of the method shown in fig. 2, an embodiment of the present invention provides another apparatus for adjusting a sequence of web page query conditions, where as shown in fig. 4, the apparatus may include: receiving unit 41, detecting unit 42, acquiring unit 43, and adjusting unit 44.
The receiving unit 41 is configured to receive a webpage query condition sequence adjustment instruction, where the webpage query condition adjustment instruction carries identification information of a webpage query condition to be adjusted in sequence;
the detecting unit 42 is configured to detect whether a preset sequence adjustment end event corresponding to the identification information is triggered;
the obtaining unit 43 is configured to obtain, if the detecting unit 42 detects that the preset order adjustment end event corresponding to the identification information is triggered, the webpage position information corresponding to the preset order adjustment end event;
the adjusting unit 44 is configured to obtain and adjust the adjusted sequence number corresponding to the web page query condition according to the web page position information and the web page tag width corresponding to the web page query condition.
The obtaining unit 43 is further configured to obtain a distance between a left boundary of the web label corresponding to the web page query condition and the coordinate origin according to the web page position information corresponding to the web page query condition, the width of the web label, and preset coordinate origin position information.
The adjusting unit 44 is further configured to, when the web page query condition is adjusted according to a sequence number from small to large, obtain an adjusted sequence number corresponding to the web page query condition according to a formula count ═ lastX-width)/width, where the count is the adjusted sequence number and is an integer, lastX is web page position information corresponding to a preset sequence adjustment end event, x is a distance between a left boundary of a web page tag corresponding to the web page query condition and a coordinate origin, and the width is a web page tag width corresponding to the web page query condition;
the adjusting unit 44 is further configured to adjust the web page query condition to a web page position corresponding to the sequence number.
Further, the receiving unit 41 further includes:
a detecting module 4101, configured to detect whether a preset sequence adjustment event is triggered;
an obtaining module 4102, configured to obtain, if the detecting module 4101 detects that a preset order adjustment event is triggered, identification information of a webpage query condition corresponding to the preset order adjustment event.
Further, the adjusting device further comprises:
a configuration unit 45, configured to configure a corresponding identification information for each web page query condition;
the configuration unit 45 is further configured to configure the preset sequence adjustment event and the preset sequence adjustment end event for each piece of identification information.
The other adjusting device for the webpage query condition sequence provided by the embodiment of the invention firstly receives a webpage query condition sequence adjusting instruction, wherein the webpage query condition adjusting instruction carries identification information of the webpage query condition of the sequence to be adjusted; detecting whether a preset sequence adjustment end event corresponding to the identification information is triggered; if so, acquiring webpage position information corresponding to the preset sequence adjustment end event; and acquiring the adjusted sequence number corresponding to the webpage query condition and adjusting according to the webpage position information and the webpage label width corresponding to the webpage query condition. Compared with the prior art that the priority is marked before each query condition for integral sequencing and the left-right moving button is added, the method and the device directly adjust the webpage query conditions to the target position according to the webpage position information to be finally adjusted of the webpage query conditions and the webpage label width corresponding to the webpage query conditions, and can improve the efficiency of adjusting the sequence of the webpage query conditions.
The device for adjusting the sequence of the webpage query conditions comprises a processor and a memory, wherein the receiving unit, the detecting unit, the acquiring unit, the adjusting unit and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, and the problems that the operation mode is complicated and not visual enough when the query condition sequence is adjusted in the webpage are solved by adjusting the kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
The present application further provides a computer program product adapted to perform program code for initializing the following method steps when executed on a data processing device: receiving a webpage query condition sequence adjusting instruction, wherein the webpage query condition adjusting instruction carries identification information of webpage query conditions of a sequence to be adjusted; detecting whether a preset sequence adjustment end event corresponding to the identification information is triggered; if so, acquiring webpage position information corresponding to the preset sequence adjustment end event; and acquiring the adjusted sequence number corresponding to the webpage query condition and adjusting according to the webpage position information and the webpage label width corresponding to the webpage query condition.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (12)

1. A method for adjusting the sequence of webpage query conditions is used in the process of adjusting the webpage query conditions according to the sequence numbers from small to big, and comprises the following steps:
receiving a webpage query condition sequence adjusting instruction, wherein the webpage query condition adjusting instruction carries identification information of webpage query conditions of a sequence to be adjusted;
detecting whether a preset sequence adjustment end event corresponding to the identification information is triggered;
if so, acquiring webpage position information corresponding to the preset sequence adjustment end event, wherein the webpage position information corresponding to the preset sequence adjustment end event is information of positions to be adjusted in all sorts of the webpage query conditions;
and acquiring the adjusted sequence number corresponding to the webpage query condition and adjusting according to the webpage position information and the webpage label width corresponding to the webpage query condition.
2. The method for adjusting the sequence of the web page query conditions according to claim 1, wherein before the step of obtaining the adjusted sequence number corresponding to the web page query conditions and adjusting the sequence number according to the web page position information and the web page label width corresponding to the web page query conditions, the method further comprises:
and acquiring the distance between the left boundary of the webpage label corresponding to the webpage query condition and the coordinate origin according to the webpage position information corresponding to the webpage query condition, the width of the webpage label and the position information of the preset coordinate origin.
3. The method for adjusting the sequence of the web page query conditions according to claim 2, wherein the obtaining and adjusting the adjusted position corresponding to the web page query conditions according to the web page position information and the web page tag width corresponding to the web page query conditions comprises:
when the webpage query conditions are adjusted according to the sequence numbers from small to large, and the webpage query conditions are adjusted from left to right, the adjusted sequence numbers corresponding to the webpage query conditions are obtained according to a formula count = (lastX-x-width)/width + original sequence numbers, the count is the adjusted sequence numbers and is an integer, the lastX is the webpage position information corresponding to a preset sequence adjustment end event, the x is the distance between the left boundary of the webpage label corresponding to the webpage query conditions and the coordinate origin, the width is the webpage label width corresponding to the webpage query conditions, and the webpage label width and height of each webpage query condition are the same;
and adjusting the webpage query condition to a webpage position corresponding to the sequence number.
4. The method according to claim 1, wherein the receiving the web page query condition order adjustment instruction comprises:
detecting whether a preset sequence adjustment event is triggered;
and if so, acquiring identification information of the webpage query condition corresponding to the preset sequence adjustment event.
5. The method for adjusting the order of web page query conditions according to any one of claims 1 to 4, wherein before receiving the order adjustment instruction of web page query conditions, the method further comprises:
configuring corresponding identification information for each webpage query condition;
and respectively configuring the preset sequence adjustment event and the preset sequence adjustment ending event for each piece of identification information.
6. A device for adjusting the sequence of webpage query conditions is used in the process of adjusting the webpage query conditions according to the sequence numbers from small to big, and comprises:
the webpage query condition sequence adjusting device comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving a webpage query condition sequence adjusting instruction, and the webpage query condition adjusting instruction carries identification information of webpage query conditions of a sequence to be adjusted;
the detection unit is used for detecting whether a preset sequence adjustment end event corresponding to the identification information is triggered or not;
the acquiring unit is used for acquiring webpage position information corresponding to a preset sequence adjustment end event if the detecting unit detects that the preset sequence adjustment end event corresponding to the identification information is triggered, wherein the webpage position information corresponding to the preset sequence adjustment end event is information of positions to be adjusted in all sequences of the webpage query conditions;
and the adjusting unit is used for acquiring and adjusting the adjusted sequence number corresponding to the webpage query condition according to the webpage position information and the webpage label width corresponding to the webpage query condition.
7. The apparatus for adjusting the order of web page query conditions as claimed in claim 6,
the acquiring unit is further configured to acquire a distance between a left boundary of the web label corresponding to the web page query condition and the origin of coordinates according to the web page position information corresponding to the web page query condition, the web label width, and preset origin of coordinates position information.
8. The apparatus for adjusting the order of web page query conditions as claimed in claim 7,
the adjusting unit is specifically configured to, when the web page query condition is adjusted according to a sequence number from small to large, and the web page query condition is adjusted from left to right, obtain an adjusted sequence number corresponding to the web page query condition according to a formula count = (lastX-x-width)/width + original sequence number, where the count is the adjusted sequence number and is an integer, the lastX is web page position information corresponding to a preset sequence adjustment end event, the x is a distance between a left boundary of a web page tag corresponding to the web page query condition and a coordinate origin, the width is a web page tag width corresponding to the web page query condition, and the web page tag width and height of each web page query condition are the same;
the adjusting unit is specifically further configured to adjust the webpage query condition to a webpage position corresponding to the sequence number.
9. The apparatus for adjusting webpage query condition order according to claim 6, wherein the receiving unit comprises:
the detection module is used for detecting whether a preset sequence adjustment event is triggered or not;
and the acquisition module is used for acquiring the identification information of the webpage query condition corresponding to the preset sequence adjustment event if the detection module detects that the preset sequence adjustment event is triggered.
10. The apparatus for adjusting query condition order of web pages according to any one of claims 6 to 9, further comprising:
the configuration unit is used for configuring corresponding identification information for each webpage query condition;
the configuration unit is further configured to configure the preset sequence adjustment event and the preset sequence adjustment end event for each piece of identification information.
11. A storage medium, characterized in that the storage medium comprises a stored program, wherein when the program runs, a device in which the storage medium is located is controlled to execute the method for adjusting the sequence of web page query conditions according to any one of claims 1 to 5.
12. A processor, configured to execute a program, wherein the program executes the method for adjusting the order of web page query conditions according to any one of claims 1 to 5.
CN201510707166.1A 2015-10-27 2015-10-27 Method and device for adjusting webpage query condition sequence Active CN106611014B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510707166.1A CN106611014B (en) 2015-10-27 2015-10-27 Method and device for adjusting webpage query condition sequence

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510707166.1A CN106611014B (en) 2015-10-27 2015-10-27 Method and device for adjusting webpage query condition sequence

Publications (2)

Publication Number Publication Date
CN106611014A CN106611014A (en) 2017-05-03
CN106611014B true CN106611014B (en) 2020-08-21

Family

ID=58614317

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510707166.1A Active CN106611014B (en) 2015-10-27 2015-10-27 Method and device for adjusting webpage query condition sequence

Country Status (1)

Country Link
CN (1) CN106611014B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109428919B (en) * 2017-08-28 2022-02-25 阿里巴巴集团控股有限公司 Webpage processing request processing method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080030196A (en) * 2006-09-29 2008-04-04 한지희 The way of internet web page tagging and tag search system
CN102662493A (en) * 2012-03-12 2012-09-12 深圳Tcl新技术有限公司 Method for positioning mouse cursor by using intelligent terminal and the intelligent terminal
CN103810206A (en) * 2012-11-13 2014-05-21 深圳市金蝶中间件有限公司 Webpage content dragging method and device
CN103955476A (en) * 2014-03-31 2014-07-30 北京奇虎科技有限公司 Method and device for drawing page tab head in browser and browser
CN104346463A (en) * 2014-11-07 2015-02-11 北京奇虎科技有限公司 Loading method and device of page label and browser client

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080030196A (en) * 2006-09-29 2008-04-04 한지희 The way of internet web page tagging and tag search system
CN102662493A (en) * 2012-03-12 2012-09-12 深圳Tcl新技术有限公司 Method for positioning mouse cursor by using intelligent terminal and the intelligent terminal
CN103810206A (en) * 2012-11-13 2014-05-21 深圳市金蝶中间件有限公司 Webpage content dragging method and device
CN103955476A (en) * 2014-03-31 2014-07-30 北京奇虎科技有限公司 Method and device for drawing page tab head in browser and browser
CN104346463A (en) * 2014-11-07 2015-02-11 北京奇虎科技有限公司 Loading method and device of page label and browser client

Also Published As

Publication number Publication date
CN106611014A (en) 2017-05-03

Similar Documents

Publication Publication Date Title
CN108270629B (en) Website visitor behavior monitoring method and device
CN106610774B (en) Webpage table editing method and device
CN105868166B (en) Regular expression generation method and system
US20150261805A1 (en) Multi-version concurrency control across row store and column store
CN105824830B (en) Method, client and equipment for displaying page
CN106909294B (en) Method and device for realizing data graph comparison on touch screen equipment
US9753625B2 (en) Image selection control
CN106648839B (en) Data processing method and device
CN109683773A (en) Corpus labeling method and device
CN108399025A (en) A kind of method, apparatus and terminal device for correcting identification deviation
CN109983459A (en) Method and apparatus for identifying the counting of the N-GRAM occurred in corpus
CN106611014B (en) Method and device for adjusting webpage query condition sequence
US9164978B2 (en) Identifying objects within a multidimensional array
CN108334335B (en) Method and device for determining software source code version
CN104657050A (en) Data operating apparatus and method
CN112966577B (en) Method and device for model training and information providing
CN106649374B (en) Navigation tag sequencing method and device
CN109977317B (en) Data query method and device
CN111368234B (en) Window adjusting method, device and storage medium
CN110019357B (en) Database query script generation method and device
CN111125087A (en) Data storage method and device
CN111475641B (en) Data extraction method and device, storage medium and equipment
CN109614386B (en) Data processing method, device, server and computer readable storage medium
CN108415656B (en) Display control method, device, medium and electronic equipment in virtual scene
CN110188748A (en) Picture material recognition methods, device and computer readable storage medium

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

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.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant