CN106598830A - Mobile terminal webpage script debugging method and system - Google Patents

Mobile terminal webpage script debugging method and system Download PDF

Info

Publication number
CN106598830A
CN106598830A CN201510672994.6A CN201510672994A CN106598830A CN 106598830 A CN106598830 A CN 106598830A CN 201510672994 A CN201510672994 A CN 201510672994A CN 106598830 A CN106598830 A CN 106598830A
Authority
CN
China
Prior art keywords
debugging
resolution rules
revised
function
page script
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
CN201510672994.6A
Other languages
Chinese (zh)
Other versions
CN106598830B (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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201510672994.6A priority Critical patent/CN106598830B/en
Publication of CN106598830A publication Critical patent/CN106598830A/en
Application granted granted Critical
Publication of CN106598830B publication Critical patent/CN106598830B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The application discloses a mobile terminal webpage script debugging method and system. The method comprises the steps that a mobile terminal accesses a debugging server; the debugging server loads rewritten parsing rules; the mobile terminal sends a to-be-debugged webpage script to the debugging server; the debugging server receives the to-be-debugged webpage script, and processes the to-be-debugged webpage script according to the rewritten parsing rules so as to generate debugging information; the debugging server sends the debugging information to the mobile terminal; and the mobile terminal receives the debugging information generated in processing of the to-be-debugged webpage script by the debugging server, wherein the rewritten parsing rules are rewritten based on default parsing rules for webpage script parsing by a webpage browser. The debugging server processes the to-be-debugged webpage script according to the rewritten parsing rules so as to generate the debugging information, so that the mobile terminal webpage script debugging method does not rely on a dedicated webpage browser, and the mobile terminal webpage script is debugged more conveniently.

Description

The page script adjustment method of mobile terminal and system
Technical field
The application is related to Internet technical field, more particularly to a kind of page script adjustment method of mobile terminal And system.
Background technology
In prior art, the technology for accessing the Internet by computer is quite ripe.With mobile interchange The arriving in net epoch, increasing user carries out the access of webpage by mobile terminal.These mobile terminals Including but not limited to mobile phone, panel computer.
Traditional web page access technology adopts html language, and the web page access technology of mobile terminal is usual WML language can be adopted.When WEB platform and its language is changed, on developer website not easy to identify Webpage whether can encounter problems when using new WEB platform.Therefore, developer have to read with regard to The document of new platform simultaneously manually tracks code change and assesses webpage between different platform using new language Compatibility and interoperability issue.So as to, developer operation of having to is performed respectively on different platforms The expression of source code to source code being analyzed.That is, developer needs to transport on different platforms Row page script to page script carrying out Adaptability Analysis.
When page script is debugged on the mobile terminal of Fructus Mali pumilae platform, need clear by the Safari of Apple Device of looking at accesses the server of Apple.And page script is on the mobile terminal of Android platform when debugging, only Can be realized by the mobile-terminal simulator of server.
During prior art is realized, inventor has found that at least there are the following problems in prior art:
Adaptability debugging of the page script to mobile terminal needs the support of special web browser, so as to net Adaptability debugging inconvenience of the page script to mobile terminal.
The content of the invention
The embodiment of the present application provides a kind of mobile terminal webpage foot for not relying on the support of dedicated web pages browser This debugging plan, and improve the convenience of the page script debugging of mobile terminal.Specifically, it is a kind of The page script adjustment method of mobile terminal, including:
Mobile terminal accessing debugging server;
Debugging server loads revised resolution rules;
Mobile terminal to debugging server sends page script to be debugged;
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;
Mobile terminal receives debugging server and processes the Debugging message that page script to be debugged is generated;
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.
The embodiment of the present application also provides a kind of page script adjustment method of mobile terminal, 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.
The embodiment of the present application also provides a kind of page script debugging system of mobile terminal, including:
Including mobile terminal and debugging server;
The 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;
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.
The embodiment of the present application also provides a kind of page script debugging system of mobile terminal, including:
Including debugging server;
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.
The method and system of the page script debugging of the mobile terminal that the embodiment of the present application is provided, at least with such as Lower beneficial effect:
Debugging server generates Debugging message according to revised resolution rules process page script to be debugged, from And, there is provided a kind of debugging side of the mobile terminal page script for not relying on the support of dedicated web pages browser Case, improves the convenience of the page script debugging of mobile terminal.
Description of the drawings
Accompanying drawing described herein is used for providing further understanding of the present application, constitutes of the application Point, the schematic description and description of the application is used to explain the application, does not constitute to the application not Work as restriction.In the accompanying drawings:
The networked environment schematic diagram that Fig. 1 is provided for the embodiment of the present application.
The page script adjustment method flow chart of the mobile terminal that Fig. 2 is provided for the embodiment of the present application.
The structural representation of the page script debugging system of the mobile terminal that Fig. 3 is provided for the embodiment of the present application.
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.

Claims (18)

1. the page script adjustment method of a kind of mobile terminal, it is characterised in that include:
Mobile terminal accessing debugging server;
Debugging server loads revised resolution rules;
Mobile terminal to debugging server sends page script to be debugged;
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;
Mobile terminal receives debugging server and processes the Debugging message that page script to be debugged is generated;
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.
2. the method for claim 1, it is characterised in that mobile terminal accessing debugging server, Specifically include:
Mobile terminal opens debugging port;
Mobile terminal accesses debugging server by debugging port.
3. the method for claim 1, it is characterised in that debugging server loads revised solution Analysis rule, specifically includes:
Debugging server loads revised resolution rules from high in the clouds.
4. the method for claim 1, it is characterised in that debugging server is according to revised solution Analysis 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.
5. method as claimed in claim 4, it is characterised in that debugging server selects revised solution Function in analysis 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.
6. method as claimed in claim 5, it is characterised in that debugging server selects revised solution Function in analysis 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.
7. method as claimed in claim 6, it is characterised in that methods described also includes:
Debugging server is stored in Debugging message with portion document.
8. method as claimed in claim 7, it is characterised in that methods described also includes:
Mobile terminal is identified different types of Debugging message with different colors.
9. the page script adjustment method of a kind of mobile terminal, it is characterised in that include:
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.
10. method as claimed in claim 9, it is characterised in that debugging server is according to revised solution Analysis 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.
11. methods as claimed in claim 10, it is characterised in that debugging server selects revised Function in resolution rules, the function corresponding Debugging message during generating debugging page script, concrete bag Include:
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.
12. methods as claimed in claim 11, it is characterised in that debugging server selects revised Function in resolution rules, the function corresponding Debugging message during generating debugging page script, concrete bag Include:
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.
The page script debugging system of 13. a kind of mobile terminals, it is characterised in that including mobile terminal and tune Examination server;
The 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;
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.
14. systems as claimed in claim 13, it is characterised in that the debugging server, for adding Revised resolution rules are carried, specifically for:
Revised resolution rules are loaded from high in the clouds.
15. systems as claimed in claim 13, it is characterised in that the debugging server, for changing Resolution rules after writing 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.
16. systems as claimed in claim 15, it is characterised in that the debugging server, for selecting The function in revised resolution rules is selected, the function is corresponding during generating debugging page script debugs letter Breath, 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.
17. systems as claimed in claim 16, it is characterised in that the debugging server, for selecting The function in revised resolution rules is selected, the function is corresponding during generating debugging page script debugs letter Breath, 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.
The page script debugging system of 18. a kind of mobile terminals, it is characterised in that including debugging server;
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.
CN201510672994.6A 2015-10-16 2015-10-16 The page script adjustment method and system of mobile terminal Active CN106598830B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510672994.6A CN106598830B (en) 2015-10-16 2015-10-16 The page script adjustment method and system of mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510672994.6A CN106598830B (en) 2015-10-16 2015-10-16 The page script adjustment method and system of mobile terminal

Publications (2)

Publication Number Publication Date
CN106598830A true CN106598830A (en) 2017-04-26
CN106598830B CN106598830B (en) 2019-06-07

Family

ID=58553870

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510672994.6A Active CN106598830B (en) 2015-10-16 2015-10-16 The page script adjustment method and system of mobile terminal

Country Status (1)

Country Link
CN (1) CN106598830B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111061627A (en) * 2019-11-20 2020-04-24 北京达佳互联信息技术有限公司 Webpage point burying method and device, electronic equipment and storage medium
CN111124874A (en) * 2018-10-31 2020-05-08 阿里巴巴集团控股有限公司 Method for debugging webpage, debugging server and main control equipment
CN111666199A (en) * 2019-03-05 2020-09-15 中国银联股份有限公司 Debugging method executed on intelligent terminal and software debugger
CN113220571A (en) * 2021-05-11 2021-08-06 北京百度网讯科技有限公司 Debugging method, system, equipment and storage medium of mobile webpage
CN113220571B (en) * 2021-05-11 2024-04-19 北京百度网讯科技有限公司 Method, system, equipment and storage medium for debugging mobile webpage

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110704262A (en) * 2019-09-17 2020-01-17 广州市玄武无线科技股份有限公司 Dynamic service logic debugging method, system, storage medium and intelligent device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040202015A1 (en) * 2003-01-21 2004-10-14 C-Guys, Inc. SDIO card development system
CN101035025A (en) * 2007-03-30 2007-09-12 华为技术有限公司 Network device management method and system
CN103077112A (en) * 2012-10-16 2013-05-01 中兴通讯股份有限公司 Software debugging method and system
CN103107895A (en) * 2013-01-10 2013-05-15 昆山百润科技有限公司 Billing business rule engine combined system based on configuration analysis application rules and method thereof
CN103324567A (en) * 2012-03-22 2013-09-25 百度在线网络技术(北京)有限公司 App engine debugging method and debugging system
CN104077225A (en) * 2014-07-04 2014-10-01 用友软件股份有限公司 Script debugging method and script debugging device both based on JavaScript

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040202015A1 (en) * 2003-01-21 2004-10-14 C-Guys, Inc. SDIO card development system
CN101035025A (en) * 2007-03-30 2007-09-12 华为技术有限公司 Network device management method and system
CN103324567A (en) * 2012-03-22 2013-09-25 百度在线网络技术(北京)有限公司 App engine debugging method and debugging system
CN103077112A (en) * 2012-10-16 2013-05-01 中兴通讯股份有限公司 Software debugging method and system
CN103107895A (en) * 2013-01-10 2013-05-15 昆山百润科技有限公司 Billing business rule engine combined system based on configuration analysis application rules and method thereof
CN104077225A (en) * 2014-07-04 2014-10-01 用友软件股份有限公司 Script debugging method and script debugging device both based on JavaScript

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
循序渐进0010: "javascript和jq的调试用console.log()函数", 《HTTPS://BLOG .CSDN.NET/U011341352/ARTICLE/DETAILS/48524823》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111124874A (en) * 2018-10-31 2020-05-08 阿里巴巴集团控股有限公司 Method for debugging webpage, debugging server and main control equipment
CN111124874B (en) * 2018-10-31 2024-04-05 阿里巴巴集团控股有限公司 Method for debugging webpage, debugging server and main control equipment
CN111666199A (en) * 2019-03-05 2020-09-15 中国银联股份有限公司 Debugging method executed on intelligent terminal and software debugger
CN111666199B (en) * 2019-03-05 2022-01-11 中国银联股份有限公司 Debugging method executed on intelligent terminal and software debugger
CN111061627A (en) * 2019-11-20 2020-04-24 北京达佳互联信息技术有限公司 Webpage point burying method and device, electronic equipment and storage medium
CN111061627B (en) * 2019-11-20 2023-10-03 北京达佳互联信息技术有限公司 Webpage embedding method and device, electronic equipment and storage medium
CN113220571A (en) * 2021-05-11 2021-08-06 北京百度网讯科技有限公司 Debugging method, system, equipment and storage medium of mobile webpage
CN113220571B (en) * 2021-05-11 2024-04-19 北京百度网讯科技有限公司 Method, system, equipment and storage medium for debugging mobile webpage

Also Published As

Publication number Publication date
CN106598830B (en) 2019-06-07

Similar Documents

Publication Publication Date Title
US11915016B2 (en) System and method for identifying, indexing, and navigating to deep states of mobile applications
US20180067790A1 (en) Flexible scripting platform for troubleshooting
US9954746B2 (en) Automatically generating service documentation based on actual usage
CN106648826B (en) For the method and apparatus of thermophoresis virtual machine
CN111177618B (en) Website construction method, device, equipment and computer readable storage medium
CN106598830A (en) Mobile terminal webpage script debugging method and system
CN107704393B (en) Data test method, apparatus and electronic equipment
CN103838558B (en) Website build a station system and method, access website method and webpage adaptation system
CN104298591A (en) WebApp remote debugging method and system
US9535727B1 (en) Identifying virtual machines that perform inconsistent with a profile
CN107104924B (en) Verification method and device for website backdoor file
US20190108222A1 (en) Real-time translation evaluation services for integrated development environments
CN106569786A (en) Development method of service application and system
CN105022619A (en) Code processing method and device
CN105354485B (en) A kind of portable set data processing method
CN105141632A (en) Method and device used for checking pages
Jovanović et al. Network simulation tools and spectral graph theory in teaching computer network
CN106371994B (en) Dynamic mobile APP test methods based on natural language processing
CN108984202B (en) Electronic resource sharing method and device and storage medium
CN104598554B (en) Webpage loading method and device
US20160070564A1 (en) Dynamically schematized log messages for software applications
CN106161501A (en) The data sharing method of virtual desktop and device
US20220214958A1 (en) Programming assist system and programming assist method
CN111651191B (en) Single application packaging method and system applied to microservice framework
CN114764330A (en) Data blood margin analysis method and device, electronic equipment 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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200925

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Patentee after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Patentee before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200925

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Patentee after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Patentee before: Alibaba Group Holding Ltd.