Specific embodiment
It is specifically real below in conjunction with the application to make purpose, technical scheme and the advantage of the application clearer
Apply example and corresponding accompanying drawing is clearly and completely described to technical scheme.Obviously, it is described
Embodiment is only some embodiments of the present application, rather than the embodiment of whole.Based on the enforcement in the application
Example, the every other enforcement that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of the application protection.
With reference to Fig. 1, shown is the networked environment 100 that the application provides application embodiment.Networking ring
Border 100 includes network 101, of row data communication or many is coupled together, can entered via network 101
Individual mobile terminal 1 02 and Operation Server 103.Operation Server 103 can include, be integrated in operation and take
Computing environment 104 in business device 103, or independently of the computing environment 104 outside Operation Server 103.
Network 101 can include such as the Internet, wide area network (WAN), LAN (LAN), mobile communication
Network or other suitable networks, and any combinations of two or more this kind of networks.Implement in the application
The term " data " referred in example and " information ", can interchangeably herein based on referring to and may be present in
The information of text, image, audio frequency, video or any other form in calculation machine environment.
Mobile terminal 1 02 may refer to be provided with the network equipment of application program.Such network equipment is from hard
Tablet PC, smart phone, handheld computer, personal digital assistant (" PDA ") can be included on part,
Or the device that any other wired or wireless processor drives.Can be integrated with network from systems soft ware
The operating system of browser, or the operating system of vertical application is installed;Such operating system
In being operating system or (SuSE) Linux OS of windows series etc., or mobile platform
Android, IOS etc..
HTTP (HTTP) server available commercially can be included on Operation Server 103
Using such as http server, Internet Information Service (IIS) and/or other servers.
KOA (koajs) is to be devoted to less, richer performance by a of development teams exploitation of Express
Power, more healthy and stronger Web frameworks.Mobile terminal can start Operation Server by KOA.The application reality
The debugging exactly one of which for applying the page script being related in example is specifically applied.That is, debugging services
Device is the one kind in Operation Server 103.
User initiates registration request using mobile terminal 1 02 and by network 101 to Operation Server 103.
Now, Operation Server 103 can record the log-on message of the user, and according to registration request in operation clothes
The account of preset authority is opened up in business device 103.Follow-up user every time accesses operation clothes by mobile terminal 1 02
During the application program of business device 103, Operation Server 103 is based on the user included in information when accessing every time
The mark for showing user identity of ID etc, can know and record such access.Particularly, can be with
The access time of the user is recorded, it is selectable, it is also possible to IP address during record access, or adopted
The type of hardware of network equipment, or the operating system version that mobile terminal version/mobile terminal is based on
In the category information of sheet one or more.Particularly, for the access that specific operation occurs, for example, message is delivered
(delivering message in such as social network sites), when adding good friend, purchase virtual objects etc., Operation Server
103 can record the operational access, and it is special to give user after the corresponding internal or external process of execution
Fixed response.Usually, all operations request and general access, can stay in Operation Server
Respective record.Operation Server can respectively sort out all operations of different user according to ID.It is right
Interaction between the operation of interbehavior, such as different register users, it is also possible to according to above-mentioned ID
Classify and constitute set.
Above-mentioned user access information can be stored with data base 105.Additionally, can be with data base 105
The data of storage include such as application requirement data, business rules, the capacity data of mobile terminal 1 02, application
Marketing data, customer data etc..Application in data base 105 can be with the application program provided by developer
Correspondence.Using can include for example Mobile solution, HTML 5 (HTML5) application, desktop should
With and/or other application.
Computing environment 104 can include such as server computer or provide any other system of computing capability
System.Alternatively, one or more computing devices, the plurality of calculating can be adopted in computing environment 104
Equipment can be arranged to one or more server groups or calculate unit or other devices.For example, Duo Geji
Calculation equipment can collectively form cloud computing resources, grid computing resource and/or any other Distributed Calculation dress
Put.The various embodiments of following the application, can be configured with one or more calculating dresses of executable instruction
Perform under the control put.
According to various embodiments, can perform in computing environment 104 various application programs and/or other
Feature.The application program performed in computing environment 104 for example accesses data and introduces service, accesses data
Analysis Service, application data introduce service, application data Analysis Service and other not detailed herein
Using, service, process, system, engine or feature.
In addition, various data can be obtained by computing environment 104, for example, obtain from above-mentioned data base 105.
Such as scrutable, data base 105 can represent the set of multiple data bases.In being stored in data base 105
Data can be associated with the operation of various embodiments described below.
The flow chart of the page script adjustment method of the mobile terminal that Fig. 2 is provided for the embodiment of the present application, specifically
Comprise the following steps:
S100:Mobile terminal accessing debugging server.
Mobile terminal 1 02 accesses debugging server by network 101.Debugging server is above-mentioned operation clothes
One kind in business device 103.
Further, in the another embodiment that the application is provided, mobile terminal accessing debugging server, tool
Body includes:
Mobile terminal opens debugging port;
Mobile terminal accesses debugging server by debugging port.
Specifically, debugging server can provide a http service, for example, http://192.168.0.1:8000.
Mobile terminal 1 02 can be accessed by debugging port --- 8000 ports, and default routing rule
Address http://192.168.0.1:8000 debugging servers for pointing to.
S200:Debugging server loads revised resolution rules.
Further, in the another embodiment that the application is provided, debugging server loads revised parsing
Rule, specifically includes:
Debugging server loads revised resolution rules from high in the clouds.
That is, revised resolution rules can derive from the data base 105 of debugging server, also may be used
With from cloud storage space.
For the embodiment of the present application, revised resolution rules are to be used to parse net for web browser
The rewriting that the acquiescence resolution rules of page script are made.
S300:Mobile terminal to debugging server sends page script to be debugged.
Page script to be debugged can be the autoexec that finishes of editor, or it is interim generate batch at
Reason file.In the embodiment of the present application, script to be debugged can be that dynamic updates.
Webpack is a kind of resource loading tool, can provide through simple configuration and specifically apply work(
Energy.Page script to be debugged may reside in and be loaded by Webpack in the specific application program for being formed.
S400:Debugging server receives page script to be debugged, and is treated according to the process of revised resolution rules
Debugging page script generates Debugging message.
Further, in the another embodiment that the application is provided, debugging server is according to revised parsing
Rule treatments page script to be debugged generates Debugging message, specifically includes:
Debugging server selects the function in revised resolution rules, described in generating during debugging page script
The corresponding Debugging message of function according to.
Further, in the another embodiment that the application is provided, debugging server selects revised parsing
Function in rule, the corresponding Debugging message of the function, specifically includes during generating debugging page script:
Debugging server selects the log function in revised resolution rules, to generate log information;
Or, debugging server selects the information record function in revised resolution rules, general to generate
Information;
Or, debugging server select in revised resolution rules except wrong function, to generate debugging information;
Or, debugging server selects the warning function in revised resolution rules, to generate warning message;
Or, debugging server selects the error feedback function in revised resolution rules, with generation error
Feedback information;
Or, debugging server selects the window error function in revised resolution rules, to generate window
Error feedback information.
Further, in the another embodiment that the application is provided, debugging server selects revised parsing
Function in rule, the corresponding Debugging message of the function, specifically includes during generating debugging page script:
Debugging server selects the console.log functions in revised resolution rules, to generate daily record letter
Breath;
Or, debugging server selects the console.info functions in revised resolution rules, to generate
General information;
Or, debugging server selects the console.debug functions in revised resolution rules, with life
Into debugging information;
Or, debugging server selects the console.warn functions in revised resolution rules, to generate
Warning message;
Or, debugging server selects the console.error functions in revised resolution rules, to generate
Error feedback information;
Or, debugging server selects the window.onerror functions in revised resolution rules, with life
Into window error feedback information.
Specifically, debugging server can use the console.log functions in revised resolution rules to generate
Log information during debugging page script.Debugging server can be using in revised resolution rules
Console.info functions generate general information during debugging page script.After debugging server can be using rewriting
Resolution rules in console.debug functions generate debugging page script when debugging information.Debugging clothes
Business device can use the console.warn functions in revised resolution rules to generate when debugging page script
Warning message.Debugging server can use the console.error functions in revised resolution rules to generate
Error feedback information during debugging page script.Debugging server can be using in revised resolution rules
Window.onerror functions generate window error feedback information during debugging page script.
Further, in the another embodiment that the application is provided, methods described also includes:
Debugging server is stored in Debugging message with portion document.
Debugging message is stored in can quickly understand debugging webpage foot with portion document in order to webpage development personnel
All Debugging message of this generation.
Further, in the another embodiment that the application is provided, methods described also includes:
Mobile terminal is identified different types of Debugging message with different colors.
Specifically, for example, warning message when debugging page script is generated using console.warn functions can
To be identified with yellow, error feedback letter during debugging page script is generated using console.error functions
Breath and window error feedback information when debugging page script is generated using window.onerror functions, can be with
It is identified with redness, it is thus possible to be easy to developer to be carried out to certain types of Debugging message according to mark
Distinguish, improve the efficiency of page script debugging.
S500:Debugging server to mobile terminal sends Debugging message.
Debugging server sends Debugging message by network 101 to mobile terminal, consults for developer.
S600:Mobile terminal receives debugging server and processes the Debugging message that page script to be debugged is generated.
The embodiment of the present application provide mobile terminal page script adjustment method in, debugging server according to
Revised resolution rules process page script to be debugged and generate Debugging message, so as to, there is provided one kind is disobeyed
Rely the debugging plan of the mobile terminal page script supported in dedicated web pages browser, improve mobile terminal
The convenience of page script debugging.
A kind of concrete application scene of the embodiment of the present application is described below.
Whether mobile terminal enables debugging function according to locally configured parameter determination.When decision enables debugging function
When, mobile terminal accesses debugging server by KOA framework Start-up and Adjustments function.Now, mobile terminal
Debugging server is accessed by the port for opening up of debugging server.Specifically, for example, mobile terminal 1 02
Can be by debugging port --- 8000 ports, and default routing rule, reference address http:
//192.168.0.1:8000 debugging servers for pointing to.Debugging server is from the revised parsing rule of high in the clouds loading
Then, such as debug.js.Page script to be debugged may reside in the application program built by Webpack,
For example in app.js.Debugging server receives page script to be debugged, and according to revised resolution rules at
Manage page script to be debugged and generate Debugging message.For example, debugging server can use console.log functions
To generate log information during debugging page script.Furthermore, it is possible to by different types of Debugging message with difference
Mark make a distinction, to improve the debugging efficiency of page script.
It is more than the page script adjustment method of the mobile terminal that the embodiment of the present application is provided, debugging is described below
The page script adjustment method of server-side.Because the page script adjustment method of debugging server side exists
Above have been carried out describing in detail, for sake of simplicity, the follow-up part to repeating repeats no more.
Further, in the another embodiment that the application is provided, a kind of page script debugging of mobile terminal
Method, including:
Debugging server loads revised resolution rules;
Debugging server receives page script to be debugged, and according to revised resolution rules process net to be debugged
Page script generates Debugging message;
Debugging server to mobile terminal sends Debugging message;
Wherein, revised resolution rules are that the acquiescence for being used for analyzing web page script for web browser is parsed
The rewriting that rule is made.
Further, in the another embodiment that the application is provided, debugging server loads revised parsing
Rule, specifically includes:
Debugging server loads revised resolution rules from high in the clouds.
Further, in the another embodiment that the application is provided, debugging server is according to revised parsing
Rule treatments page script to be debugged generates Debugging message, specifically includes:
Debugging server selects the function in revised resolution rules, described in generating during debugging page script
The corresponding Debugging message of function according to.
Further, in the another embodiment that the application is provided, debugging server selects revised parsing
Function in rule, the corresponding Debugging message of the function, specifically includes during generating debugging page script:
Debugging server selects the log function in revised resolution rules, to generate log information;
Or, debugging server selects the information record function in revised resolution rules, general to generate
Information;
Or, debugging server select in revised resolution rules except wrong function, to generate debugging information;
Or, debugging server selects the warning function in revised resolution rules, to generate warning message;
Or, debugging server selects the error feedback function in revised resolution rules, with generation error
Feedback information;
Or, debugging server selects the window error function in revised resolution rules, to generate window
Error feedback information.
Further, in the another embodiment that the application is provided, debugging server selects revised parsing
Function in rule, the corresponding Debugging message of the function, specifically includes during generating debugging page script:
Debugging server selects the console.log functions in revised resolution rules, to generate daily record letter
Breath;
Or, debugging server selects the console.info functions in revised resolution rules, to generate
General information;
Or, debugging server selects the console.debug functions in revised resolution rules, with life
Into debugging information;
Or, debugging server selects the console.warn functions in revised resolution rules, to generate
Warning message;
Or, debugging server selects the console.error functions in revised resolution rules, to generate
Error feedback information;
Or, debugging server selects the window.onerror functions in revised resolution rules, with life
Into window error feedback information.
Further, in the another embodiment that the application is provided, debugging server is stored in Debugging message
With portion document.
It is more than the page script debugging side of the mobile terminal of the debugging server side that the embodiment of the present application is provided
Method, based on same thinking, refer to Fig. 3, and the application also provides a kind of page script of mobile terminal and adjusts
The system 1 of examination, including mobile terminal and debugging server.
Mobile terminal, is used for:
Access debugging server;
Page script to be debugged is sent to debugging server;
Receive debugging server and process the Debugging message that script to be debugged is generated.
Debugging server, is used for:
Load revised resolution rules;
Receive the debugging page script that mobile terminal sends;
Debugging message is generated according to revised resolution rules process page script to be debugged;
Debugging message is sent to mobile terminal;
Wherein, revised resolution rules are that the acquiescence for being used for analyzing web page script for web browser is parsed
The rewriting that rule is made.
Further, in the another embodiment that the application is provided, the mobile terminal, for accessing debugging
Server, specifically for:
Open debugging port;
Debugging server is accessed by debugging port.
Further, in the another embodiment that the application is provided, the debugging server changes for loading
Resolution rules after writing, specifically for:
Revised resolution rules are loaded from high in the clouds.
Further, in the another embodiment that the application is provided, the debugging server, after rewriting
Resolution rules process page script to be debugged and generate Debugging message, specifically for:
Debugging server selects the function in revised resolution rules, described in generating during debugging page script
The corresponding Debugging message of function according to.
Further, in the another embodiment that the application is provided, the debugging server, for selecting to change
The function in resolution rules after writing, the function corresponding Debugging message during generating debugging page script,
Specifically for:
The log function in revised resolution rules is selected, to generate log information;
Or, the information record function in revised resolution rules is selected, to generate general information;
Or, select in revised resolution rules except wrong function, to generate debugging information;
Or, the warning function in revised resolution rules is selected, to generate warning message;
Or, the error feedback function in revised resolution rules is selected, with generation error feedback information;
Or, the window error function in revised resolution rules is selected, to generate window error feedback letter
Breath.
Further, in the another embodiment that the application is provided, the debugging server, for selecting to change
The function in resolution rules after writing, the function corresponding Debugging message during generating debugging page script,
Specifically for:
The console.log functions in revised resolution rules are selected, to generate log information;
Or, the console.info functions in revised resolution rules are selected, to generate general information;
Or, the console.debug functions in revised resolution rules are selected, to generate debugging information;
Or, the console.warn functions in revised resolution rules are selected, to generate warning message;
Or, the console.error functions in revised resolution rules are selected, with generation error feedback letter
Breath;
Or, the window.onerror functions in revised resolution rules are selected, to generate window error
Feedback information.
Further, in the another embodiment that the application is provided, the debugging server is additionally operable to:
Debugging message is stored in portion document.
Further, in the another embodiment that the application is provided, the mobile terminal is additionally operable to:
Different types of Debugging message is identified with different colors.
Further, in the another embodiment that the application is provided, a kind of page script debugging of mobile terminal
System;
The debugging server, is used for:
Load revised resolution rules;
Receive the debugging page script that mobile terminal sends;
Debugging message is generated according to revised resolution rules process page script to be debugged;
Debugging message is sent to mobile terminal;
Wherein, revised resolution rules are that the acquiescence for being used for analyzing web page script for web browser is parsed
The rewriting that rule is made.
Further, in the another embodiment that the application is provided, the debugging server changes for loading
Resolution rules after writing, specifically for:
Revised resolution rules are loaded from high in the clouds.
Further, in the another embodiment that the application is provided, the debugging server, after rewriting
Resolution rules process page script to be debugged and generate Debugging message, specifically for:
Debugging server selects the function in revised resolution rules, described in generating during debugging page script
The corresponding Debugging message of function according to.
Further, in the another embodiment that the application is provided, the debugging server, for selecting to change
The function in resolution rules after writing, the function corresponding Debugging message during generating debugging page script,
Specifically for:
The log function in revised resolution rules is selected, to generate log information;
Or, the information record function in revised resolution rules is selected, to generate general information;
Or, select in revised resolution rules except wrong function, to generate debugging information;
Or, the warning function in revised resolution rules is selected, to generate warning message;
Or, the error feedback function in revised resolution rules is selected, with generation error feedback information;
Or, the window error function in revised resolution rules is selected, to generate window error feedback letter
Breath.
Further, in the another embodiment that the application is provided, the debugging server, for selecting to change
The function in resolution rules after writing, the function corresponding Debugging message during generating debugging page script,
Specifically for:
The console.log functions in revised resolution rules are selected, to generate log information;
Or, the console.info functions in revised resolution rules are selected, to generate general information;
Or, the console.debug functions in revised resolution rules are selected, to generate debugging information;
Or, the console.warn functions in revised resolution rules are selected, to generate warning message;
Or, the console.error functions in revised resolution rules are selected, with generation error feedback letter
Breath;
Or, the window.onerror functions in revised resolution rules are selected, to generate window error
Feedback information.
Further, in the another embodiment that the application is provided, the debugging server is additionally operable to:
Debugging message is stored in portion document.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as system, system or meter
Calculation machine program product.Therefore, the present invention can be using complete hardware embodiment, complete software embodiment or knot
Close the form of the embodiment in terms of software and hardware.And, the present invention can be adopted and wherein wrapped at one or more
Computer-usable storage medium containing computer usable program code (including but not limited to disk memory,
CD-ROM, optical memory etc.) on implement computer program form.
The present invention is produced with reference to system according to embodiments of the present invention, equipment (system) and computer program
The flow chart and/or block diagram of product is describing.It should be understood that can by computer program instructions flowchart and
/ or block diagram in each flow process and/or square frame and flow chart and/or the flow process in block diagram and/
Or the combination of square frame.These computer program instructions can be provided to general purpose computer, special-purpose computer, embedded
The processor of formula datatron or other programmable numerical value processing equipments is producing a machine so that by calculating
The instruction of the computing device of machine or other programmable numerical value processing equipments is produced for realizing in flow chart one
The device of the function of specifying in individual flow process or one square frame of multiple flow processs and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or other programmable numerical value to process and set
In the standby computer-readable memory for working in a specific way so that in being stored in the computer-readable memory
Instruction produce and include the manufacture of command device, command device realization is in one flow process or multiple of flow chart
The function of specifying in one square frame of flow process and/or block diagram or multiple square frames.
These computer program instructions also can be loaded in computer or other programmable numerical value processing equipments, made
Obtain and series of operation steps is performed on computer or other programmable devices to produce computer implemented place
Reason, so as to the instruction performed on computer or other programmable devices is provided for realizing in flow chart one
The step of function of specifying in flow process or one square frame of multiple flow processs and/or block diagram or multiple square frames.
In a typical configuration, computing device includes one or more processors (CPU), input/defeated
Outgoing interface, network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory
And/or the form, such as read only memory (ROM) or flash memory (flash such as Nonvolatile memory (RAM)
RAM).Internal memory is the example of computer-readable medium.
Computer-readable medium includes that permanent and non-permanent, removable and non-removable media can be by appointing
What subsystem or technology is realizing information Store.Information can be computer-readable instruction, value structure, program
Module or other numerical value.The example of the storage medium of computer includes, but are not limited to phase transition internal memory
(PRAM), static RAM (SRAM), dynamic random access memory (DRAM), its
The random access memory (RAM) of his type, read only memory (ROM), electrically erasable are read-only
Memorizer (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read only memory
(CD-ROM), digital versatile disc (DVD) or other optical storages, magnetic cassette tape, tape magnetic
Disk storage or other magnetic storage apparatus or any other non-transmission medium, can be used for storage can be calculated
The information that equipment is accessed.Define according to herein, computer-readable medium does not include temporary computer-readable matchmaker
The numerical signal and carrier wave of body (transitory media), such as modulation.
Also, it should be noted that term " including ", "comprising" or its any other variant are intended to non-row
His property is included, so that a series of process, system, commodity or equipment including key elements not only includes
Those key elements, but also including other key elements being not expressly set out, or also include for this process,
The intrinsic key element of system, commodity or equipment.In the absence of more restrictions, by sentence " including
One ... " key element that limits, it is not excluded that in including the process of key element, system, commodity or equipment
Also there is other identical element.
It will be understood by those skilled in the art that embodiments herein can be provided as system, system or computer journey
Sequence product.Therefore, the application can using complete hardware embodiment, complete software embodiment or with reference to software and
The form of the embodiment of hardware aspect.And, the application can be adopted and wherein include calculating at one or more
Machine usable program code computer-usable storage medium (including but not limited to disk memory, CD-ROM,
Optical memory etc.) on implement computer program form.
Embodiments herein is these are only, the application is not limited to.For people in the art
For member, the application can have various modifications and variations.It is all to be made within spirit herein and principle
Any modification, equivalent substitution and improvements etc., within the scope of should be included in claims hereof.