CN105320762A - Web page processing method and apparatus - Google Patents

Web page processing method and apparatus Download PDF

Info

Publication number
CN105320762A
CN105320762A CN201510689163.XA CN201510689163A CN105320762A CN 105320762 A CN105320762 A CN 105320762A CN 201510689163 A CN201510689163 A CN 201510689163A CN 105320762 A CN105320762 A CN 105320762A
Authority
CN
China
Prior art keywords
character string
specific field
webpage
statement
process statement
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
CN201510689163.XA
Other languages
Chinese (zh)
Other versions
CN105320762B (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.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Guangzhou Kugou Computer 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 Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN201510689163.XA priority Critical patent/CN105320762B/en
Publication of CN105320762A publication Critical patent/CN105320762A/en
Application granted granted Critical
Publication of CN105320762B publication Critical patent/CN105320762B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention discloses a web page processing method and apparatus and belongs to the technical field of computers. The web page processing method comprises the steps of acquiring a character string input in a specified input region on a web page; detecting whether the character string comprises a specified field; if the character string comprises the specified field, extracting a processing sentence behind the specified field in the character string; and according to the processing sentence, executing a corresponding processing operation on the web page. The web page processing method and apparatus, disclosed by the present invention, solve the problem that for certain web pages which cannot provide address bars, web page processing cannot be carried out by inputting corresponding parameters in the address bars; and the web page processing method and apparatus achieve the effect that the web page can be processed simply by inputting the processing character string in the specified input region of the web page, so that flexibility and practicality of web page processing are improved.

Description

Web page processing method and device
Technical field
The disclosure relates to field of computer technology, particularly a kind of web page processing method and device.
Background technology
Along with the diversified development of network service, network service not only can provide corresponding function for user, can also provide and control webpage function and carry out the processing capacity such as debugging to webpage logic.As shown dialog box window, regulating display box window and byte-sized etc.
In prior art, can by inputting relevant parameter, to realize the process to webpage in the address field on webpage.
Realizing in process of the present invention, inventor finds that aforesaid way at least exists following defect:
But cannot provide the webpage of address field for some, said method cannot be adopted to process, therefore, the dirigibility of said method and practicality are all poor.
Summary of the invention
Embodiments provide a kind of web page processing method and device.Described technical scheme is as follows:
First aspect, provides a kind of web page processing method, comprising:
Obtain on webpage, specify the character string inputted in input area;
Detect described character string and whether comprise specific field;
If described character string comprises described specific field, then extract the process statement below of specific field described in described character string;
According to described process statement, corresponding process operation is performed to described webpage.
In the first possible embodiment of first aspect, described appointment input area is interacting message region.
In the embodiment that the second of first aspect is possible, described specific field is made up of symbol and character.
In conjunction with the embodiment that the second of first aspect or first aspect is possible, in the embodiment that the third is possible, described specific field is->js:.
In the 4th kind of possible embodiment of first aspect, detect after whether described character string comprise specific field, described method also comprises:
If described character string comprises multiple specific field, then extract the process statement between every two specific fields in described character string, the appearance order in described character string according to the multiple process statement extracted and described multiple process statement, performs corresponding process operation to described webpage successively; Or,
If described character string comprises a specific field and multiple designated symbols, then extract the process statement between process statement between described specific field and first designated symbols and every two designated symbols, the appearance order in described character string according to the multiple process statement extracted and described multiple process statement, performs corresponding process operation to described webpage successively.
In the 5th kind of possible embodiment of first aspect, described according to described process statement, corresponding process operation is performed to described webpage and comprises:
Resolve described process statement, according to analysis result, corresponding process operation is performed to described webpage; Or,
Described process statement is sent to compiler, to make described compiler resolve described process statement, and returns analysis result, thus according to analysis result, corresponding process operation is performed to described webpage.
Second aspect, provides a kind of page processor, comprising:
Acquisition module, for obtaining the character string of specifying on webpage and inputting in input area;
Whether detection module, comprise specific field for detecting described character string;
Extraction module, when described character string comprises described specific field, for extracting the process statement after specific field described in described character string;
Execution module, for according to described process statement, performs corresponding process operation to described webpage.
In the first possible embodiment of second aspect, described appointment input area is interacting message region.
In the embodiment that the second of second aspect is possible, described specific field is made up of symbol and character.
In conjunction with the embodiment that the second of second aspect or second aspect is possible, in the embodiment that the third is possible, described specific field is->js:.
In the 4th kind of possible embodiment of second aspect, described extraction module also for:
When described character string comprises multiple specific field, extract the process statement between every two specific fields in described character string, the appearance order in described character string according to the multiple process statement extracted and described multiple process statement, performs corresponding process operation to described webpage successively; Or,
When described character string comprises a specific field and multiple designated symbols, extract the process statement between process statement between described specific field and first designated symbols and every two designated symbols, the appearance order in described character string according to the multiple process statement extracted and described multiple process statement, performs corresponding process operation to described webpage successively.
In the 5th kind of possible embodiment of second aspect, described execution module is used for:
Resolve described process statement, according to analysis result, corresponding process operation is performed to described webpage; Or,
Described process statement is sent to compiler, to make described compiler resolve described process statement, and returns analysis result, thus according to analysis result, corresponding process operation is performed to described webpage.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought comprises:
The character string in appointment input area on webpage is obtained by terminal, detect character string and whether comprise specific field, if character string comprises specific field, then extract specific field process statement below in character string, and according to this process statement, corresponding process operation is performed to webpage; Solve the webpage that address field cannot be provided for some, cannot by inputting the problem that relevant parameter carries out Web Page Processing in address field; Reach and only by input processing character string in the appointment input area of webpage, just need can realize the effect that webpage is processed, thus the dirigibility that improve Web Page Processing and practicality.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the present invention.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the process flow diagram of a kind of web page processing method according to an exemplary embodiment;
Fig. 2 is the process flow diagram of a kind of web page processing method according to another exemplary embodiment;
Fig. 3 is the block diagram of a kind of page processor according to an exemplary embodiment;
Fig. 4 is the structured flowchart of a kind of computing machine 400 according to an exemplary embodiment;
Fig. 5 is the structured flowchart of a kind of terminal 500 according to an exemplary embodiment.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the present invention.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present invention are consistent.
The web page processing method that the embodiment of the present invention provides is performed by terminal, and run the browser had for opening webpage or application program in terminal, wherein, webpage includes but not limited to the instant chat page, searched page and the net cast page etc.Terminal can be the equipment such as such as mobile phone, panel computer or computing machine.
Please refer to Fig. 1, it illustrates the process flow diagram of the web page processing method that one embodiment of the invention provides, the present embodiment to be performed by terminal with this web page processing method and illustrates.This web page processing method can include but not limited to following several step:
Step 101, obtains the character string of specifying on webpage and inputting in input area.
Step 102, detects character string and whether comprises specific field.
Step 103, if character string comprises specific field, then extracts specific field process statement below in character string.
Step 104, according to process statement, performs corresponding process operation to webpage.
In sum, the web page processing method that the present embodiment provides, the character string in appointment input area on webpage is obtained by terminal, detect character string and whether comprise specific field, if character string comprises specific field, then extract specific field process statement below in character string, and according to this process statement, corresponding process operation is performed to webpage; Solve the webpage that address field cannot be provided for some, cannot by inputting the problem that relevant parameter carries out Web Page Processing in address field; Reach and only by input processing character string in the appointment input area of webpage, just need can realize the effect that webpage is processed, thus the dirigibility that improve Web Page Processing and practicality.
Please refer to Fig. 2, it illustrates the process flow diagram of the web page processing method that another embodiment of the present invention provides, the present embodiment to be performed by terminal with this web page processing method and illustrates.This web page processing method can include but not limited to following several step:
Step 201, obtains the character string of specifying on webpage and inputting in input area.
Terminal obtains user on webpage, specifies input of character string in input area.Character string can comprise conventional language or computerese.Wherein, input area is specified to be in webpage, to perform the input area character string that user inputs being sent to terminal backstage or server, such as, input area is specified to be interacting message region, such as chat area, alternatively, specifies input area also can be search input area etc.
Step 202, detects character string and whether comprises specific field.
Terminal specifies all character strings inputted in input area to carry out Real-time Obtaining to user on webpage, and whether the character string detecting acquisition comprises specific field.Wherein, specific field can be made up of symbol and character, if specific field is->js:.Specific field is Web Page Processing instruction for the character string representing terminal and obtain.
It should be noted that, in the present embodiment, be only->js with specific field: be illustrated, in the embodiment that other is possible, specific field can be also other true-to-shape, and the present invention is not construed as limiting this.
Step 203, if character string comprises specific field, then extracts specific field process statement below in character string.
If terminal obtains character string comprise specific field, then illustrate that this character string is Web Page Processing instruction, then terminal extracts specific field process statement below in character string.Wherein, specific field process statement is below the computer statement that can perform corresponding process operation to webpage, and such as javascript statement etc., also can be the discernible specified type statements of end application, as station address IP etc.
In one example in which, input of character string->js:alert (0) in the appointment input area of user on webpage, terminal obtains this character string, and detect that this character string comprises specific field->js:, then extract specific field->js: process statement alert (0) below.
Step 204, dissection process statement, performs corresponding process operation according to analysis result to webpage.
Terminal directly resolves extracted process statement, and performs this process statement, thus is reached through the effect processing statement and realize processing the logical OR function in webpage.Be exemplified as example with above-mentioned, terminal parses also performs specific field->js: alert (0) statement below, webpage will eject dialog box.
Alternatively, this step 204 also can be replaced by following steps: process statement also can be sent to compiler by terminal, to make compiler dissection process statement, and returns analysis result, thus performs corresponding process operation according to analysis result to webpage.Wherein, compiler can be grammar compiler, for process statement is compiled into corresponding executable instruction.
In addition, in a kind of possible embodiment, if character string comprises multiple specific field, then extract the process statement in character string between every two specific fields, the appearance order in character string according to the multiple process statement extracted and multiple process statement, performs corresponding process operation to webpage successively.Such as, terminal obtains specifies the character string inputted in input area to be->js:alert (0)->js:resizeTo (200,100), then extract specific field->js successively: process statement alert (0) below and resizeTo (200,100), and resolve this process statement of execution, so, achieve successively and dialog box and adjustment window size extremely wide 200cm are ejected to webpage, the treatment effect of high 100cm.
In the embodiment that another kind is possible, if character string comprises a specific field and multiple designated symbols, process statement then between extraction specific field and first designated symbols and the process statement between every two designated symbols, the appearance order in character string according to the multiple process statement extracted and multiple process statement, performs corresponding process operation to webpage successively.Wherein, designated symbols is the discernible segmentation symbol of computing machine, can include but not limited to branch, comma or colon etc.Such as, terminal obtains and specifies the character string in input area to be->js:alert (0); ResizeTo (200,100); , then extract alert (0) and resizeTo (200,100) statement successively, and resolve this statement of execution, so, achieve successively and dialog box is ejected with adjustment window size to wide 200cm to webpage, the treatment effect of high 100cm.
Extract successively according to the appearance order of multiple process statement in character string in the present embodiment, resolve and perform multiple process statement, reach and processed continuously effect is carried out to multiple logical OR functions of webpage.
In sum, the web page processing method that the present embodiment provides, the character string in appointment input area on webpage is obtained by terminal, detect character string and whether comprise specific field, if character string comprises specific field, then extract specific field process statement below in character string, and according to this process statement, corresponding process operation is performed to webpage; Solve the webpage that address field cannot be provided for some, cannot by inputting the problem that relevant parameter carries out Web Page Processing in address field; Reach and only by input processing character string in the appointment input area of webpage, just need can realize the effect that webpage is processed, thus the dirigibility that improve Web Page Processing and practicality.Further, under this appointment input area is the scene in interacting message region, make can debug more efficiently webpage and page logic control, the simplification of the operation greatly improved.
Please refer to Fig. 3, it illustrates the block diagram of the page processor that one embodiment of the invention provides, this page processor includes but not limited to:
Acquisition module 310, for obtaining the character string of specifying on webpage and inputting in input area;
Whether detection module 320, comprise specific field for detecting described character string;
Extraction module 330, when described character string comprises described specific field, for extracting the process statement after specific field described in described character string;
Execution module 340, for according to described process statement, performs corresponding process operation to described webpage.
In sum, the page processor that the present embodiment provides, the character string in appointment input area on webpage is obtained by terminal, detect character string and whether comprise specific field, if character string comprises specific field, then extract specific field process statement below in character string, and according to this process statement, corresponding process operation is performed to webpage; Solve the webpage that address field cannot be provided for some, cannot by inputting the problem that relevant parameter carries out Web Page Processing in address field; Reach and only by input processing character string in the appointment input area of webpage, just need can realize the effect that webpage is processed, thus the dirigibility that improve Web Page Processing and practicality.
Based on the above-mentioned device embodiment provided, in one alternate embodiment, described appointment input area is interacting message region.
In another embodiment, described specific field is made up of symbol and character.
In another embodiment, described specific field is->js:.
In another embodiment, described extraction module 330 also for:
When described character string comprises multiple specific field, extract the process statement between every two specific fields in described character string, the appearance order in described character string according to the multiple process statement extracted and described multiple process statement, performs corresponding process operation to described webpage successively; Or,
When described character string comprises a specific field and multiple designated symbols, extract the process statement between process statement between described specific field and first designated symbols and every two designated symbols, the appearance order in described character string according to the multiple process statement extracted and described multiple process statement, performs corresponding process operation to described webpage successively.
In an also embodiment, described execution module 340 for:
Resolve described process statement, according to analysis result, corresponding process operation is performed to described webpage; Or,
Described process statement is sent to compiler, to make described compiler resolve described process statement, and returns analysis result, thus according to analysis result, corresponding process operation is performed to described webpage.
It should be noted that: the page processor that above-described embodiment provides is when Web Page Processing, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, inner structure by device is divided into different functional modules, to complete all or part of function described above.In addition, the embodiment of the page processor that above-described embodiment provides and web page processing method belongs to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
Please refer to Fig. 4, it illustrates the illustrative Computer Architecture of the computing machine 400 used in one embodiment of the present of invention.Described computing machine 400 is conventional desk-top computer or laptop, described computing machine 400 comprises CPU (central processing unit) (CPU) 401, comprises the system storage 404 of random access memory (RAM) 402 and ROM (read-only memory) (ROM) 403, and the system bus 405 of connected system storer 404 and CPU (central processing unit) 401.Described computing machine 400 also comprises the basic input/output (I/O system) 406 of transmission information between each device in help computing machine, and for storing the mass-memory unit 407 of operating system, application program and other program modules.
Described basic input/output 406 includes the input equipment 409 of the display 408 for showing information and the such as mouse, keyboard and so on for user's input information.Wherein said display 408 and input equipment 409 are all connected to CPU (central processing unit) 401 by the input/output control unit 410 being connected to system bus 405.Described basic input/output 406 can also comprise input/output control unit 410 for receiving and processing the input from other equipment multiple such as keyboard, mouse or electronic touch pens.Similarly, input/output control unit 410 also provides the output device outputting to display screen, printer or other types.
Described mass-memory unit 407 is connected to CPU (central processing unit) 401 by the bulk memory controller (not shown) being connected to system bus 405.Described mass-memory unit 407 and the computer-readable medium that is associated thereof provide non-volatile memories for computing machine 400.That is, described mass-memory unit 407 can comprise the computer-readable medium (not shown) of such as hard disk or CD-ROM drive and so on.
Without loss of generality, described computer-readable medium can comprise computer-readable storage medium and communication media.Computer-readable storage medium comprises the volatibility and non-volatile, removable and irremovable medium that realize for any method or technology that store the information such as such as computer-readable instruction, data structure, program module or other data.Computer-readable storage medium comprises RAM, ROM, EPROM, EEPROM, flash memory or its technology of other solid-state storage, CD-ROM, DVD or other optical memory, tape cassete, tape, disk storage or other magnetic storage apparatus.Certainly, the known described computer-readable storage medium of those skilled in the art is not limited to above-mentioned several.
According to various embodiments of the present invention, the remote computer that described computing machine 400 can also be connected on network by networks such as such as the Internets runs.Also namely computing machine 400 can be connected to network 412 by the network interface unit 411 be connected on described system bus 405, in other words, network interface unit 411 also can be used to be connected to network or the remote computer system (not shown) of other types.
Present embodiments provide a kind of terminal, this terminal may be used for performing the web page processing method provided in each embodiment above-mentioned.See Fig. 5, this terminal 500 comprises:
Terminal 500 can comprise RF (RadioFrequency, radio frequency) circuit 110, the storer 120 including one or more computer-readable recording mediums, input block 130, display unit 140, sensor 150, voicefrequency circuit 160, WiFi (WirelessFidelity, Wireless Fidelity) module 170, include the parts such as processor 180 and power supply 190 that more than or processes core.It will be understood by those skilled in the art that the restriction of the not structure paired terminal of the terminal structure shown in Fig. 5, the parts more more or less than diagram can be comprised, or combine some parts, or different parts are arranged.Wherein:
RF circuit 110 can be used for receiving and sending messages or in communication process, the reception of signal and transmission, especially, after being received by the downlink information of base station, transfer to more than one or one processor 180 to process; In addition, base station is sent to by relating to up data.Usually, RF circuit 110 includes but not limited to antenna, at least one amplifier, tuner, one or more oscillator, subscriber identity module (SIM) card, transceiver, coupling mechanism, LNA (LowNoiseAmplifier, low noise amplifier), diplexer etc.In addition, RF circuit 110 can also by radio communication and network and other devices communicatings.Described radio communication can use arbitrary communication standard or agreement, include but not limited to GSM (GlobalSystemofMobilecommunication, global system for mobile communications), GPRS (GeneralPacketRadioService, general packet radio service), CDMA (CodeDivisionMultipleAccess, CDMA), WCDMA (WidebandCodeDivisionMultipleAccess, Wideband Code Division Multiple Access (WCDMA)), LTE (LongTermEvolution, Long Term Evolution), Email, SMS (ShortMessagingService, Short Message Service) etc.
Storer 120 can be used for storing software program and module, and processor 180 is stored in software program and the module of storer 120 by running, thus performs the application of various function and data processing.Storer 120 mainly can comprise storage program district and store data field, and wherein, storage program district can store operating system, application program (such as sound-playing function, image player function etc.) etc. needed at least one function; Store data field and can store the data (such as voice data, phone directory etc.) etc. created according to the use of terminal 500.In addition, storer 120 can comprise high-speed random access memory, can also comprise nonvolatile memory, such as at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, storer 120 can also comprise Memory Controller, to provide the access of processor 180 and input block 130 pairs of storeies 120.
Input block 130 can be used for the numeral or the character information that receive input, and produces and to arrange with user and function controls relevant keyboard, mouse, control lever, optics or trace ball signal and inputs.Particularly, input block 130 can comprise Touch sensitive surface 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad, user can be collected or neighbouring touch operation (such as user uses any applicable object or the operations of annex on Touch sensitive surface 131 or near Touch sensitive surface 131 such as finger, stylus) thereon, and drive corresponding coupling arrangement according to the formula preset.Optionally, Touch sensitive surface 131 can comprise touch detecting apparatus and touch controller two parts.Wherein, touch detecting apparatus detects the touch orientation of user, and detects the signal that touch operation brings, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, then gives processor 180, and the order that energy receiving processor 180 is sent also is performed.In addition, the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave can be adopted to realize Touch sensitive surface 131.Except Touch sensitive surface 131, input block 130 can also comprise other input equipments 132.Particularly, other input equipments 132 can include but not limited to one or more in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, control lever etc.
Display unit 140 can be used for the various graphical user interface showing information or the information being supplied to user and the terminal 500 inputted by user, and these graphical user interface can be made up of figure, text, icon, video and its combination in any.Display unit 140 can comprise display panel 141, optionally, the form such as LCD (LiquidCrystalDisplay, liquid crystal display), OLED (OrganicLight-EmittingDiode, Organic Light Emitting Diode) can be adopted to configure display panel 141.Further, Touch sensitive surface 131 can cover display panel 141, when Touch sensitive surface 131 detects thereon or after neighbouring touch operation, send processor 180 to determine the type of touch event, on display panel 141, provide corresponding vision to export with preprocessor 180 according to the type of touch event.Although in Figure 5, Touch sensitive surface 131 and display panel 141 be as two independently parts realize input and input function, in certain embodiments, can by Touch sensitive surface 131 and display panel 141 integrated and realize input and output function.
Terminal 500 also can comprise at least one sensor 150, such as optical sensor, motion sensor and other sensors.Particularly, optical sensor can comprise ambient light sensor and proximity transducer, and wherein, ambient light sensor the light and shade of environmentally light can regulate the brightness of display panel 141, proximity transducer when terminal 500 moves in one's ear, can cut out display panel 141 and/or backlight.As the one of motion sensor, Gravity accelerometer can detect the size of all directions (are generally three axles) acceleration, size and the direction of gravity can be detected time static, can be used for identifying the application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of mobile phone attitude, Vibration identification correlation function (such as passometer, knock) etc.; As for terminal 500 also other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, do not repeat them here.
Voicefrequency circuit 160, loudspeaker 161, microphone 162 can provide the audio interface between user and terminal 500.Voicefrequency circuit 160 can by receive voice data conversion after electric signal, be transferred to loudspeaker 161, by loudspeaker 161 be converted to voice signal export; On the other hand, the voice signal of collection is converted to electric signal by microphone 162, voice data is converted to after being received by voicefrequency circuit 160, after again voice data output processor 180 being processed, through RF circuit 110 to send to such as another terminal, or export voice data to storer 120 to process further.Voicefrequency circuit 160 also may comprise earphone jack, to provide the communication of peripheral hardware earphone and terminal 500.
WiFi belongs to short range wireless transmission technology, and terminal 500 can help user to send and receive e-mail by WiFi module 170, browse webpage and access streaming video etc., and its broadband internet wireless for user provides is accessed.Although Fig. 5 shows WiFi module 170, be understandable that, it does not belong to must forming of terminal 500, can omit in the scope of essence not changing invention as required completely.
Processor 180 is control centers of terminal 500, utilize the various piece of various interface and the whole mobile phone of connection, software program in storer 120 and/or module is stored in by running or performing, and call the data be stored in storer 120, perform various function and the process data of terminal 500, thus integral monitoring is carried out to mobile phone.Optionally, processor 180 can comprise one or more process core; Preferably, processor 180 accessible site application processor and modem processor, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes radio communication.Be understandable that, above-mentioned modem processor also can not be integrated in processor 180.
Terminal 500 also comprises the power supply 190 (such as battery) of powering to all parts, preferably, power supply can be connected with processor 180 logic by power-supply management system, thus realizes the functions such as management charging, electric discharge and power managed by power-supply management system.Power supply 190 can also comprise one or more direct current or AC power, recharging system, power failure detection circuit, power supply changeover device or the random component such as inverter, power supply status indicator.
Although not shown, terminal 500 can also comprise camera, bluetooth module etc., does not repeat them here.Specifically in the present embodiment, the display unit of terminal is touch-screen display, and terminal also includes storer, and one or more than one program, one of them or more than one program are stored in storer, and are configured to be performed by more than one or one processor.Described more than one or one routine package is containing the instruction for performing above-mentioned Fig. 1 or middle end side operation embodiment illustrated in fig. 2.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (12)

1. a web page processing method, is characterized in that, comprising:
Obtain on webpage, specify the character string inputted in input area;
Detect described character string and whether comprise specific field;
If described character string comprises described specific field, then extract the process statement below of specific field described in described character string;
According to described process statement, corresponding process operation is performed to described webpage.
2. method according to claim 1, is characterized in that, described appointment input area is interacting message region.
3. method according to claim 1, is characterized in that, described specific field is made up of symbol and character.
4. the method according to claim 1 or 3, is characterized in that, described specific field is->js:.
5. method according to claim 1, is characterized in that, detect after whether described character string comprise specific field, described method also comprises:
If described character string comprises multiple specific field, then extract the process statement between every two specific fields in described character string, the appearance order in described character string according to the multiple process statement extracted and described multiple process statement, performs corresponding process operation to described webpage successively; Or,
If described character string comprises a specific field and multiple designated symbols, then extract the process statement between process statement between described specific field and first designated symbols and every two designated symbols, the appearance order in described character string according to the multiple process statement extracted and described multiple process statement, performs corresponding process operation to described webpage successively.
6. method according to claim 1, is characterized in that, described according to described process statement, performs corresponding process operation comprise described webpage:
Resolve described process statement, according to analysis result, corresponding process operation is performed to described webpage; Or,
Described process statement is sent to compiler, to make described compiler resolve described process statement, and returns analysis result, thus according to analysis result, corresponding process operation is performed to described webpage.
7. a page processor, is characterized in that, comprising:
Acquisition module, for obtaining the character string of specifying on webpage and inputting in input area;
Whether detection module, comprise specific field for detecting described character string;
Extraction module, when described character string comprises described specific field, for extracting the process statement after specific field described in described character string;
Execution module, for according to described process statement, performs corresponding process operation to described webpage.
8. device according to claim 7, is characterized in that, described appointment input area is interacting message region.
9. device according to claim 7, is characterized in that, described specific field is made up of symbol and character.
10. the device according to any one of claim 7-9, is characterized in that, described specific field is->js:.
11. devices according to claim 7, is characterized in that, described extraction module also for:
When described character string comprises multiple specific field, extract the process statement between every two specific fields in described character string, the appearance order in described character string according to the multiple process statement extracted and described multiple process statement, performs corresponding process operation to described webpage successively; Or,
When described character string comprises a specific field and multiple designated symbols, extract the process statement between process statement between described specific field and first designated symbols and every two designated symbols, the appearance order in described character string according to the multiple process statement extracted and described multiple process statement, performs corresponding process operation to described webpage successively.
12. devices according to claim 7, is characterized in that, described execution module is used for:
Resolve described process statement, according to analysis result, corresponding process operation is performed to described webpage; Or,
Described process statement is sent to compiler, to make described compiler resolve described process statement, and returns analysis result, thus according to analysis result, corresponding process operation is performed to described webpage.
CN201510689163.XA 2015-10-20 2015-10-20 Web page processing method and device Active CN105320762B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510689163.XA CN105320762B (en) 2015-10-20 2015-10-20 Web page processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510689163.XA CN105320762B (en) 2015-10-20 2015-10-20 Web page processing method and device

Publications (2)

Publication Number Publication Date
CN105320762A true CN105320762A (en) 2016-02-10
CN105320762B CN105320762B (en) 2019-11-26

Family

ID=55248148

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510689163.XA Active CN105320762B (en) 2015-10-20 2015-10-20 Web page processing method and device

Country Status (1)

Country Link
CN (1) CN105320762B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080243792A1 (en) * 2007-03-30 2008-10-02 Canon Kabushiki Kaisha Image processing apparatus and method for controlling image processing apparatus
CN103577402A (en) * 2012-07-18 2014-02-12 上海斐讯数据通信技术有限公司 Task adding, modifying and management method and task management system
CN103678646A (en) * 2013-12-20 2014-03-26 乐视网信息技术(北京)股份有限公司 Method and device for presenting pages
CN104598572A (en) * 2015-01-12 2015-05-06 百度在线网络技术(北京)有限公司 Content processing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080243792A1 (en) * 2007-03-30 2008-10-02 Canon Kabushiki Kaisha Image processing apparatus and method for controlling image processing apparatus
CN103577402A (en) * 2012-07-18 2014-02-12 上海斐讯数据通信技术有限公司 Task adding, modifying and management method and task management system
CN103678646A (en) * 2013-12-20 2014-03-26 乐视网信息技术(北京)股份有限公司 Method and device for presenting pages
CN104598572A (en) * 2015-01-12 2015-05-06 百度在线网络技术(北京)有限公司 Content processing method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ANDDY: "通过页面输入框,来控制页面字的样式", 《HTTPS://WWW.ITEYE.COM/PROBLEMS/38571》 *

Also Published As

Publication number Publication date
CN105320762B (en) 2019-11-26

Similar Documents

Publication Publication Date Title
CN105005909A (en) Method and device for predicting lost users
CN104978115A (en) Content display method and device
CN104238893A (en) Video preview image displaying method and device
CN104636047A (en) Method and device for operating objects in list and touch screen terminal
CN104978176A (en) Application program interface calling method and device
CN104281394A (en) Method and device for intelligently selecting words
CN104852885A (en) Method, device and system for verifying verification code
CN104850406A (en) Page switching method and device
CN104252341A (en) Method and device for resurfacing application program and client side device of application program
CN104134043B (en) Content is hidden, separates method, device and the terminal hidden
CN105302452A (en) Gesture interaction-based operation method and device
CN104915091A (en) Method and device for displaying status bar prompt message
CN104679381A (en) Method and device for switching chat box
CN104281600A (en) Method and device for intelligent selecting words
CN104679724A (en) Page noting method and device
CN104991699A (en) Video display control method and apparatus
CN104243394A (en) Multimedia file playing method and device
CN104063400A (en) Data search method and data search device
CN104391588B (en) A kind of method of input prompt and device
CN104951178A (en) Processing method, device and system for desktop data
CN103336677B (en) A kind of methods, devices and systems to display device output image
CN104254020B (en) The player method of media data, device and terminal
CN105095161A (en) Method and device for displaying rich text information
CN104424324A (en) Method and device for positioning list item in list component
CN105354067A (en) Interface configuration method and device

Legal Events

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

Address after: 510660 Guangzhou City, Guangzhou, Guangdong, Whampoa Avenue, No. 315, self - made 1-17

Applicant after: Guangzhou KuGou Networks Co., Ltd.

Address before: 510000 B1, building, No. 16, rhyme Road, Guangzhou, Guangdong, China 13F

Applicant before: Guangzhou KuGou Networks Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant