CN108052573A - source file operation method and system - Google Patents

source file operation method and system Download PDF

Info

Publication number
CN108052573A
CN108052573A CN201711290568.1A CN201711290568A CN108052573A CN 108052573 A CN108052573 A CN 108052573A CN 201711290568 A CN201711290568 A CN 201711290568A CN 108052573 A CN108052573 A CN 108052573A
Authority
CN
China
Prior art keywords
browser
source file
run
supportive information
present disclosure
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.)
Pending
Application number
CN201711290568.1A
Other languages
Chinese (zh)
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201711290568.1A priority Critical patent/CN108052573A/en
Publication of CN108052573A publication Critical patent/CN108052573A/en
Pending legal-status Critical Current

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/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/76Adapting program code to run in a different environment; Porting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • G06F9/45529Embedded in an application, e.g. JavaScript in a Web browser

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Stored Programmes (AREA)

Abstract

Present disclose provides a source file operation method, including:The supportive information of browser is obtained, the supportive information of the browser is used to determine whether one or more of source file part matches with the browser to be run;And in the case that at least one portion in one or more of parts of source file matches with the browser to be run, described at least one portion is run according to pre-defined rule corresponding with the browser to be run.The disclosure additionally provides a source file runtime.

Description

Source file operation method and system
Technical field
This disclosure relates to a source file operation method and system.
Background technology
With the development of computer industry, a variety of browsers come into being.At present, the display content of browser dependent on pair The operation of source file, and source file has whether being compatible with for the operation of browser.Therefore, when running source file, To judge whether content therein matches with the browser-safe to be run, then the browsing to be run should be determined first Which kind of browser device is.At present, determine that the browser to be run for which kind of browser is by agreement (protocol) or uniformly Extensible Firmware Interface (Unified Extensible Firmware Interface, UEFI) records when into browser, Static source file is become into the source file data of C dynamic synthesis for subsequently parsing again, process complexity is cumbersome, is unfavorable for source document The operation of part in a browser.
The content of the invention
An aspect of this disclosure provides a source file operation method.The described method includes:Browser is obtained to support Property information, the supportive information of the browser for determine one or more of described source file part whether with to be run it is clear Device of looking at matches;And at least one portion in one or more of parts of the source file to be run with described In the case that browser matches, run according to pre-defined rule corresponding with the browser to be run described at least one Part.
Optionally, the source file operation method further includes:In one or more of parts of the source file In the case that at least one portion is not matched that with the browser to be run, described at least one portion is arranged to invalid Default value.
Optionally, the supportive information of the browser includes globally unique identifier and identification name.
Optionally, the supportive information of the browser has multiple, is respectively used to determine multiple portions in the source file Divide and whether match with the browser to be run;Wherein, the supportive information of multiple browsers includes the identical overall situation only One identifier.
Optionally, the source file for example may include VFR (Visual Forms Representation) source file, institute Stating browser for example may include forms browser.
Another aspect of the disclosure provides a source file runtime.The source file runtime includes obtaining Module and processing module.Wherein described acquisition module is used to obtain the supportive information of browser, the supportive information of browser For determining whether one or more of described source file part matches with the browser to be run.Wherein described processing mould Block is at least one portion in one or more of parts of the source file and the browser phase to be run In the case of matched, described at least one portion is run according to pre-defined rule corresponding with the browser to be run.
Optionally, the processing module is additionally operable at least one in one or more of parts of the source file In the case that part is not matched that with the browser to be run, described at least one portion is arranged to invalid default value.
Optionally, the browser identification information includes globally unique identifier and identification name.
Optionally, the supportive information of the browser has multiple, is respectively used to determine multiple portions in the source file Divide and whether match with the browser to be run;Wherein, the supportive information of the multiple browser includes identical globally unique Identifier.
Optionally, the source file for example may include VFR (Visual Forms Representation) source file, institute Stating browser for example may include forms browser.
Another aspect of the disclosure provides a kind of non-volatile memory medium, is stored with computer executable instructions, Described instruction is used to implement method as described above when executed.
Another aspect of the present disclosure provides a kind of computer program, and the computer program can perform finger including computer Order, described instruction are used to implement method as described above when executed.
Description of the drawings
In order to which the disclosure and its advantage is more fully understood, referring now to being described below with reference to attached drawing, wherein:
Fig. 1 diagrammatically illustrates source file operation method and systematic difference scene in accordance with an embodiment of the present disclosure;
Fig. 2 diagrammatically illustrates the flow chart of source file operation method in accordance with an embodiment of the present disclosure;
Fig. 3 diagrammatically illustrates the flow chart of the source file operation method according to another embodiment of the disclosure;
Fig. 4 diagrammatically illustrates the block diagram of source file runtime in accordance with an embodiment of the present disclosure;
Fig. 5 diagrammatically illustrates the block diagram of source file runtime according to another embodiment of the present disclosure.
Specific embodiment
Hereinafter, it will be described with reference to the accompanying drawings embodiment of the disclosure.However, it should be understood that these descriptions are simply exemplary , and it is not intended to limit the scope of the present disclosure.In addition, in the following description, the description to known features and technology is omitted, with Avoid unnecessarily obscuring the concept of the disclosure.
Term as used herein is not intended to limit the disclosure just for the sake of description specific embodiment.It uses herein Term " comprising ", "comprising" etc. show the presence of the feature, step, operation and/or component, but it is not excluded that in the presence of Or other one or more features of addition, step, operation or component.
All terms (including technical and scientific term) as used herein have what those skilled in the art were generally understood Meaning, unless otherwise defined.It should be noted that term used herein should be interpreted that with consistent with the context of this specification Meaning, without should by idealization or it is excessively mechanical in a manner of explain.
It, in general should be according to this in the case where using similar to " in A, B and C etc. at least one " such statement Field technology personnel are generally understood the meaning of the statement to make an explanation (for example, " having system at least one in A, B and C " Should include but not limited to individually with A, individually with B, individually with C, with A and B, with A and C, with B and C, and/or System with A, B, C etc.).In the case where using similar to " in A, B or C etc. at least one " such statement, it is general come Say be generally understood the meaning of the statement to make an explanation (for example, " having in A, B or C at least according to those skilled in the art The system of one " should include but not limited to individually with A, individually with B, individually with C, with A and B, with A and C, with B and C, and/or the system etc. with A, B, C).It should also be understood by those skilled in the art that substantially arbitrarily represent two or more The adversative conjunction and/or phrase of optional project, either in specification, claims or attached drawing, shall be construed as It gives including one of these projects, the possibility of these projects either one or two projects.For example, phrase " A or B " should It is understood to include the possibility of " A " or " B " or " A and B ".
Shown in the drawings of some block diagrams and/or flow chart.It is to be understood that some sides in block diagram and/or flow chart Frame or its combination can be realized by computer program instructions.These computer program instructions can be supplied to all-purpose computer, The processor of special purpose computer or other programmable data processing units, so as to which these instructions can be with when being performed by the processor Create the device for being used to implement these block diagrams and/or function/operation illustrated in flow chart.
Therefore, the technology of the disclosure can be realized in the form of hardware and/or software (including firmware, microcode etc.).Separately Outside, the technology of the disclosure can take the form of the computer program product on the computer-readable medium for being stored with instruction, should Computer program product uses for instruction execution system or combined command performs system and uses.In the context of the disclosure In, computer-readable medium can be the arbitrary medium that can include, store, transmit, propagate or transmit instruction.For example, it calculates Machine readable medium can include but is not limited to electricity, magnetic, optical, electromagnetic, infrared or semiconductor system, device, device or propagation medium. The specific example of computer-readable medium includes:Magnetic memory apparatus, such as tape or hard disk (HDD);Light storage device, such as CD (CD-ROM);Memory, such as random access memory (RAM) or flash memory;And/or wire/wireless communication link.
Embodiment of the disclosure provides a source file operation method and system.This method includes obtaining browser support Property information, according to the supportive information of the browser determine one or more of described source file part whether with to be run it is clear Device of looking at matches;And at least one portion in one or more of parts of the source file to be run with described In the case that browser matches, run according to pre-defined rule corresponding with the browser to be run described at least one Part.Wherein, whether the supportive information of the browser is used to determine one or more of described source file part with to transport Capable browser matches.
By this method, in accordance with an embodiment of the present disclosure, during into browser, due to the supportive information of browser It is matched one by one with browser, therefore can one or more of source file part be determined according to the supportive information of browsing property Whether match with the browser to be run.Whether i.e. by the matching of the supportive information of the browser and browser, it can recognize that Go out the browser type currently to be run, and the source document is run according to pre-defined rule corresponding with the browser of successful match Part, so that source file can be adapted for different browsers.
According to some embodiments of the present disclosure, the source file operation method and system can also be at one or more of source file In the case that at least one portion in a part is not matched that with the browser to be run, at least one portion is arranged to nothing Imitate default value.
In this way so that developer can be easily known in source file during source file foundation Where partly there is a situation where in one or more parts is incompatible, is not supported by browser, so as to building for follow-up source file Vertical and adjustment provides reference.
Fig. 1 diagrammatically illustrates source file operation method and systematic difference scene in accordance with an embodiment of the present disclosure.It needs It should be noted that it is only the example for the application scenarios that can apply the embodiment of the present disclosure shown in Fig. 1, to help people in the art Member understand the technology contents of the disclosure, but be not meant to the embodiment of the present disclosure may not be usable for other equipment, system, environment or Scene.
As shown in Figure 1, it can be included eventually according to the source file operation method of the embodiment of the present disclosure and systematic difference scene End equipment.
The terminal device can be the various electronic equipments that can run source file.
The terminal device for example can have display screen, such as Desktop PC, tablet personal computer (PC), PC on knee, Netbook computer or tablet computer etc., it is including but not limited to desk-top with reference to the terminal device in application scenarios shown in FIG. 1 PC 101-1, tablet computer 101-2 and laptop 101-3.
According to the embodiment of the present disclosure, for above-mentioned display screen for example available for display according to the browser of source file operation, this is clear Device of looking at needs dependence source file to be run to show the browsing of information such as may include forms browser, web browser Device.
Terminal device can for example be equipped with it is above-mentioned according to source file run browser, the browser for example may include but It is not limited to the forms of the forms browser (SETUP Browser) 102 and/or graphic form with reference to textual form shown in FIG. 1 Browser (SETUP Browser) 103.
It can be stored in the terminal device and run the source file.
The source file operation method that the embodiment of the present disclosure is provided can be performed by the terminal device 101.Correspondingly, originally The source file runtime that open embodiment is provided can be the terminal device.
It should be understood that the type of the number of terminal device in Fig. 1, type and/or browser is only schematical.Root It factually now needs, can have arbitrary number and terminal device and any type of browser of type.
Fig. 2 diagrammatically illustrates the flow chart of source file operation method in accordance with an embodiment of the present disclosure.
As shown in Fig. 2, source file operation method in accordance with an embodiment of the present disclosure includes operation S210~S220.
In operation S210, the supportive information of browser is obtained, the supportive information of the browser is used to determine in source file Whether one or more parts match with the browser to be run.
In accordance with an embodiment of the present disclosure, source file for example may include VFR (Visual Forms Representation) source File specifically may include UEFI VFR source files.The method of the embodiment of the present disclosure is for example available for the reality for completing UEFI VFR It is existing;Wherein, VFR source files are the source code file of VFR forms, for developer to be made to create the use with different data and problem Family interface.Such as the text document VFR source files that this is write by VFR language syntaxes can be converted to by IFR by compiler (Internal Forms Representation).The VFR source files are applied to extended firmware structure more at present In (Extensible Firmware Interface, EFI), to be used for running user setup interface, i.e., common BIOS SETUP UTILITY.It should be noted that the embodiment of the present disclosure is not defined the type of source file, it is every being capable of root The source file run according to the method for the embodiment of the present disclosure belongs to the protection domain of the disclosure, the VFR that the embodiment of the present disclosure is enumerated Source file is only used to understand the disclosure as example.
In accordance with an embodiment of the present disclosure, the browser to be run for example may include forms browser (browser), specifically It may include SETUP Browser, which for example may include two kinds of display formats:Textual form (Text Mode) and Graphic model (Graphic Mode).Therefore, according to it is acquiring, for determine one or more of source file part be The no supportive information of browser to match with the browser to be run, it may be determined that the forms browser currently to be run is text The browser of this form or browser of graphic model.It should be noted that the embodiment of the present disclosure not to browser and The type of source file is defined, every browser run by source file and the source for browser execution to be supported to show File.
In accordance with an embodiment of the present disclosure, the supportive information of the browser may be, for example, developer in VFR source files Statement extended firmware structure variable memory (extensible firmware interface variable store, ) or the variable store (variable store, varstore) stated in VFR source files of developer efivarstore.
In accordance with an embodiment of the present disclosure, the supportive information of browser is for example including globally unique identifier (GUID) and mark Name, wherein, globally unique identifier is the numeric identifier that a kind of binary length by algorithm generation is 128, specific Form for example can also be the 16 system numbers of 32.Due to the length long enough of the globally unique identifier, in preferable feelings Under condition, any computer and computer cluster will not all generate two identical GUID, therefore the browser of the embodiment of the present disclosure Supportive information include globally unique identifier, at least can part the supportive information of browser for avoiding the embodiment of the present disclosure With the overlapping conflict of other information.It is understood that embodiment of the disclosure uses the browsing for including globally unique identifier The supportive information of device is only used for understanding the disclosure, and the disclosure is not limited thereto, every to can be used in unique mark different viewing The forms of identifier of the supportive information of browser of device.
In accordance with an embodiment of the present disclosure, the supportive information of browser is for example with multiple, the plurality of supportive letter of browser Breath is respectively used to determine whether the multiple portions in source file match with the browser to be run, wherein, a browser branch Holding property information can be used for determining whether one or more of source file part matches with the browser to be run.
In accordance with an embodiment of the present disclosure, the supportive information of multiple browsers can for example have identical globally unique identifier Symbol, and with different identification names, then the different identification names that the supportive information of the plurality of browser can have according to it are real The unique mark of one or more of existing source file part.
In accordance with an embodiment of the present disclosure, the supportive information of each browser is for example available for one determined in source file Or whether multiple portions match with the browser to be run, the wherein any portion in one or more of source file part A kind of function can be all represented, such as the function of identification browser behavior can be represented, browser is supported to show certain section of word, some figure Piece, some button, some is linked or the function of some keyword.
In operation S220, at least one portion and the browser phase to be run in one or more parts of source file In the case of matched, described at least one portion is run according to pre-defined rule corresponding with the browser to be run.
In accordance with an embodiment of the present disclosure, it is above-mentioned match for example including:The browser to be run can identify the source document The situation of one or more parts representated by the supportive information of browser described in part.Then, the supportive information of the browser One or more parts of the representative source file can be by the browser execution to be run, so that the browsing to be run Display and the information of the one or more partial response after device operation.
In accordance with an embodiment of the present disclosure, at least one portion in one or more parts of above-mentioned source file is with that will run Browser situation about matching for example may include:SETUP Browser are supported with it according to its agreement (Spec) One or more parts of efivarstore or varstore storages match.
In accordance with an embodiment of the present disclosure, at least one portion in one or more parts of source file and to be run In the case that browser matches, according to the corresponding pre-defined rule of the browser to be run, be source file it is described at least Variable in one part returns to the value to match with the browser, then according to the value to match with browser of the return, Browser can run described at least one portion in the source file, so as to show and at least one portion in source file The matched content of split-phase.
In accordance with an embodiment of the present disclosure, in the case where matching, such as executable following operation:SETUP Browser According to its agreement (Spec), the efivarstore or varstore supported it is acted on behalf of, and is generated according to its pre-defined rule Correct value returns to VFR processing routines.
In accordance with an embodiment of the present disclosure, the correct value refers to, SETUP Browser support efivarstore or The value for the real variable that one or more parts include, the value and SETUP of the real variable in the source file that varstore is represented The pre-defined rule of Browser matches.For example, if the pre-defined rule according to the SETUP Browser, red to display, then Value for the variable color of setpoint color should be (0,0,255), then returns to the color variance color's of VFR processing routines Correctly value is (0,0,255), and if according to the pre-defined rule of the SETUP Browser, it is red to display, then for setting The value of the variable color of color should be (255,0,0), then returns to the correct value of the color variance color of VFR processing routines For (255,0,0).
Fig. 3 diagrammatically illustrates the flow chart of source file operation method according to another embodiment of the present disclosure.
As shown in figure 3, source file operation method in accordance with an embodiment of the present disclosure is in addition to operating S210~operation S220, It may also include operation S230~S240.
In operation S230, at least one portion in one or more parts of source file and the browser to be run are determined Whether match.
In accordance with an embodiment of the present disclosure, according to the supportive information of the browser, judge that the supportive information of the browser is The no browser to be run is supported, if the supportive information of the browser is supported by the browser to be run, then it represents that this is clear One or more of the source file that the supportive information of device of looking at represents part is matched with the browser to be run;If the browser branch Holding property information is not supported by the browser to be run, then it represents that one in the source file that the supportive information of the browser represents Or multiple portions are not matched that with the browser to be run.
In operation S240, at least one portion and the browser to be run in one or more parts of source file are not In the case of matching, at least one portion is arranged to invalid default value.
In accordance with an embodiment of the present disclosure, it is above-mentioned do not match that for example including:The browser to be run can not identify described The situation of one or more parts representated by the supportive information of browser described in source file.Then, the browser is supportive One or more parts of the source file representated by information for example can be not via the browser execution to be run.
In accordance with an embodiment of the present disclosure, at least one portion in one or more parts of above-mentioned source file is with that will run Browser situation about not matching that for example may include:SETUP Browser are not supported according to its agreement (Spec) Efivarstore or varstore, therefore one or more portion in the source file represented with the efivarstore or varstore Divide and do not match that.
In accordance with an embodiment of the present disclosure, before S220~operation S240 is operated, such as following operation is further included:It sets pre- The value of the variable first stored is invalid default value, which includes corresponding with the supportive information of the browser Variable, which can for example be pre-stored in nonvolatile ram (NVRAM).
In accordance with an embodiment of the present disclosure, in the feelings for the operation that the value including setting pre-stored variable is invalid default value Under condition, operation S240 for example may particularly include:SETUP Browser are according to its agreement (Spec), to what is do not supported Efivarstore reads the value with the corresponding variable of the supportive information of the browser from NVRAM, is back to VFR processing journeys Sequence.
In accordance with an embodiment of the present disclosure, read from NVRAM with the corresponding variable of the supportive information of the browser Value be invalid default value;It will then read from NVRAM and returned with the value of the corresponding variable of the supportive information of the browser It is specific to be to VFR processing routines:The invalid default value of corresponding variable is returned into the browser supportive information generation The real variable that one or more parts include in the source file of table.
In accordance with an embodiment of the present disclosure, operation S240 for example may particularly include:SETUP Browser are according to its agreement (Spec), to the varstore not supported, generation default value (unsupported), and the default value is back to VFR processing journeys Sequence.There is no need to prestore the variable with the supportive information match of browser, so there is no need to additionally set NVRAM, so as to drop The operating cost of low source file simplifies the system of operation source file.
In accordance with an embodiment of the present disclosure, the invalid default value includes but not limited to be 0 or false, specific invalid Default value can be set by developer according to its use habit, and the embodiment of the present disclosure is limited not to this.
Therefore, aforesaid operations S240 is passed through so that developer is during the foundation of source file, according to the invalid of return Default value can easily know in one or more of source file part which partly there are it is incompatible, do not supported by browser Situation, so as to for the foundation and adjustment of follow-up source file provide reference.
Fig. 4 diagrammatically illustrates the block diagram of source file runtime in accordance with an embodiment of the present disclosure.
As shown in figure 4, acquisition module 410 and processing mould are included according to the source file runtime 400 of the embodiment of the present disclosure Block 420.The source file runtime 400 can perform above with reference to Fig. 2~with reference to figure 3 describe method, to realize source file Operation.
Acquisition module 410 is used to obtain the supportive information of browser.Wherein the supportive information of the browser is used to determine source Whether one or more of file part matches with the browser to be run.Specifically for example available for performing above-mentioned reference chart 2~with reference to the operation S210 in figure 3, details are not described herein again.
In accordance with an embodiment of the present disclosure, the supportive information of the browser can include globally unique identifier and identification name.
In accordance with an embodiment of the present disclosure, the supportive information of the browser can for example have multiple, be respectively used to determine source document Whether the multiple portions in part match with the browser to be run, wherein, the supportive information of multiple browsers is for example It may include identical globally unique identifier, including different mark names.
Processing module 420 is at least one portion in one or more parts of source file and the browsing to be run In the case that device matches, described at least one portion is run according to pre-defined rule corresponding with the browser to be run.Tool Body is for example available for above-mentioned reference chart 2~with reference to the operation S220 in figure 3 is performed, and details are not described herein again.
According to the source file runtime 400 of the embodiment of the present disclosure, during user enters browser, due to browsing The supportive information of device be it is matched one by one with browser, therefore processing module 420 can be acquired according to acquisition module 410 it is clear The supportive information of looking at property determines whether one or more of source file part matches with the browser to be run, i.e., by this Whether the matching of the supportive information of browser and browser, you can identify the browser type currently to be run, and according to Successful match, the corresponding pre-defined rule of the browser to be run run the source file so that source file can fit For different browsers.
In accordance with an embodiment of the present disclosure, the processing module 420 in the source file runtime 400 is for example additionally operable in source document In the case that at least one portion in one or more parts of part is not matched that with the browser to be run, by described at least One part is arranged to invalid default value.Specifically for example available for the operation S230~operation S240 performed in above-mentioned reference chart 3, Details are not described herein again.
It is understood that acquisition module 410 and processing module 420 may be incorporated in a module realize or Any one module therein can be split into multiple modules.Alternatively, one or more of these modules module is at least Partial function can be combined at least part function of other modules, and be realized in a module.Reality according to the present invention Apply example, at least one in acquisition module 410 and processing module 420 can at least be implemented partly as hardware circuit, example As on field programmable gate array (FPGA), programmable logic array (PLA), system on chip, substrate system, in encapsulation be System, application-specific integrated circuit (ASIC) or can be to carry out the hardware such as any other rational method that is integrated or encapsulating to circuit Or firmware is realized or realized with software, the appropriately combined of hardware and firmware three kinds of realization methods.Alternatively, acquisition module 410 and processing module 420 in it is at least one can at least be implemented partly as computer program module, when the program quilt When computer is run, the function of corresponding module can be performed.
Fig. 5 diagrammatically illustrates the block diagram of source file runtime according to another embodiment of the present disclosure.
As shown in figure 5, source file runtime 500 according to another embodiment of the present disclosure include processor 510 and Computer readable storage medium 520.The source file runtime 500 can perform above with reference to Fig. 2~with reference to figure 3 describe side Method, to realize the operation of source file.
Specifically, processor 510 can for example include general purpose microprocessor, instruction set processor and/or related chip group And/or special microprocessor (for example, application-specific integrated circuit (ASIC)), etc..Processor 510 can also include using for caching The onboard storage device on way.Processor 510 can be performed for reference to figure 2~with reference to figure 3 describe according to the embodiment of the present disclosure Method flow different actions single treatment units either multiple processing units.
Computer readable storage medium 520, such as can include, store, transmit, propagate or transmit appointing for instruction Meaning medium.For example, readable storage medium storing program for executing can include but is not limited to electricity, magnetic, optical, electromagnetic, infrared or semiconductor system, device, Device or propagation medium.The specific example of readable storage medium storing program for executing includes:Magnetic memory apparatus, such as tape or hard disk (HDD);Optical storage Device, such as CD (CD-ROM);Memory, such as random access memory (RAM) or flash memory;And/or wire/wireless communication chain Road.
Computer readable storage medium 520 can include computer program 521, which can include generation Code/computer executable instructions, when being performed by processor 510 so that processor 510 is performed for example above with reference to Fig. 2~ginseng Examine the described method flows of Fig. 3 and its any deformation.
Computer program 521 can be configured with such as computer program code including computer program module.Example Such as, in the exemplary embodiment, the code in computer program 521 can include one or more program modules, such as including 521A, module 521B ....It should be noted that the dividing mode and number of module are not fixed, those skilled in the art can To be combined according to actual conditions using suitable program module or program module, when these program modules are combined by processor 510 During execution so that processor 510 can be performed for example above with reference to Fig. 2~with reference to 3 described method flow of figure and its any Deformation.
According to an embodiment of the invention, at least one in acquisition module 410 and processing module 420 can be implemented as joining The computer program module of Fig. 5 descriptions is examined, when being performed by processor 510, can realize corresponding operating described above.
It will be understood by those skilled in the art that the feature described in each embodiment and/or claim of the disclosure can To carry out multiple combinations or/or combination, even if such combination or combination are not expressly recited in the disclosure.Particularly, exist In the case of not departing from disclosure spirit or teaching, the feature described in each embodiment and/or claim of the disclosure can To carry out multiple combinations and/or combination.All these combinations and/or combination each fall within the scope of the present disclosure.
Although the disclosure, art technology has shown and described in the certain exemplary embodiments with reference to the disclosure Personnel it should be understood that in the case of the spirit and scope of the present disclosure limited without departing substantially from the following claims and their equivalents, A variety of changes in form and details can be carried out to the disclosure.Therefore, the scope of the present disclosure should not necessarily be limited by above-described embodiment, But should be not only determined by appended claims, also it is defined by the equivalent of appended claims.

Claims (10)

1. a source file operation method, including:
The supportive information of browser is obtained, the supportive information of browser is used to determine one or more of described source file Whether part matches with the browser to be run;And
At least one portion and the browser phase to be run in one or more of parts of the source file In the case of matching somebody with somebody, described at least one portion is run according to pre-defined rule corresponding with the browser to be run.
2. it according to the method described in claim 1, further includes:
At least one portion in one or more of parts of the source file and the browser to be run not phase In the case of matched, described at least one portion is arranged to invalid default value.
3. according to the method described in claim 1, wherein, the supportive information of browser includes globally unique identifier and mark Know name.
4. according to the method described in claim 3, wherein:
The supportive information of browser have it is multiple, be respectively used to determine the source file in multiple portions whether with to transport Capable browser matches;
The multiple supportive information of browser includes identical globally unique identifier.
5. according to the method described in claim 1, wherein, the source file includes VFR source files, the browser includes forms Browser.
6. a source file runtime, including:
Acquisition module, for obtaining the supportive information of browser, the supportive information of browser is used to determine the source file One or more of part whether match with the browser to be run;
Processing module will be run at least one portion in one or more of parts of the source file with described Browser match in the case of, according to pre-defined rule corresponding with the browser to be run operation described at least one A part.
7. system according to claim 6, wherein:
The processing module, be additionally operable at least one portion in one or more of parts of the source file with it is described In the case that the browser to be run does not match that, described at least one portion is arranged to invalid default value.
8. system according to claim 6, wherein, the supportive information of browser includes globally unique identifier and mark Know name.
9. system according to claim 6, wherein:
The supportive information of browser have it is multiple, be respectively used to determine the source file in multiple portions whether with to transport Capable browser matches;
The multiple supportive information of browser includes identical globally unique identifier.
10. system according to claim 6, wherein, the source file includes VFR source files, and the browser includes window Body browser.
CN201711290568.1A 2017-12-07 2017-12-07 source file operation method and system Pending CN108052573A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711290568.1A CN108052573A (en) 2017-12-07 2017-12-07 source file operation method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711290568.1A CN108052573A (en) 2017-12-07 2017-12-07 source file operation method and system

Publications (1)

Publication Number Publication Date
CN108052573A true CN108052573A (en) 2018-05-18

Family

ID=62123448

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711290568.1A Pending CN108052573A (en) 2017-12-07 2017-12-07 source file operation method and system

Country Status (1)

Country Link
CN (1) CN108052573A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101546310A (en) * 2008-03-28 2009-09-30 纬创资通股份有限公司 Method for improving web page compatibility as well as correlative electronic device and web page access system
CN102567422A (en) * 2010-12-27 2012-07-11 北大方正集团有限公司 Page display method and equipment
CN104021081A (en) * 2014-06-16 2014-09-03 贝壳网际(北京)安全技术有限公司 Debugging method and device for browser

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101546310A (en) * 2008-03-28 2009-09-30 纬创资通股份有限公司 Method for improving web page compatibility as well as correlative electronic device and web page access system
CN102567422A (en) * 2010-12-27 2012-07-11 北大方正集团有限公司 Page display method and equipment
CN104021081A (en) * 2014-06-16 2014-09-03 贝壳网际(北京)安全技术有限公司 Debugging method and device for browser

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
至尊宝聂: "几行代码完全解决HTML5在低版本浏览器中兼容性问题", 《HTTP://BLOG.SINA.COM.CN/S/BLOG_4A2DEFCA010191XV.HTML》 *

Similar Documents

Publication Publication Date Title
TWI581188B (en) The way to load the driver and the embedded device
US8887135B2 (en) Generating test cases for functional testing of a software application
KR102224759B1 (en) Techniques for language translation localization for computer applications
US20100180194A1 (en) Method and apparatus for solving ui style conflicts in web application composition
US10268628B2 (en) Method for extracting BIOS attributes for BIOS management and system therefor
US20120192058A1 (en) Method for internationalization technology
US10152539B2 (en) Webpage searching method and browser
RU2595524C2 (en) Device and method for processing content of web resource in browser
US10902508B2 (en) Methods for extracting and adapting information to generate custom widgets and devices thereof
EP1890235A1 (en) Test case management
US9195567B1 (en) Debugging data format conversion
US9996512B2 (en) Customized processing of DOM objects
US11544469B2 (en) Electronic apparatus and control method thereof
US20130042200A1 (en) System and method for annotating graphical user interface
CN111880813B (en) Method for realizing android card UI (user interface) and storage medium
CN111159215A (en) Mapping method and device of Java class and relational database and computing equipment
TW201610713A (en) Identifying and surfacing relevant report artifacts in documents
JP6440895B2 (en) Software analysis apparatus and software analysis method
US9208142B2 (en) Analyzing documents corresponding to demographics
US20130097487A1 (en) Single view representation of an xls transformation
US20160103815A1 (en) Generating mobile web browser views for applications
CN106874173A (en) The method of testing and device of Page Template
CN108052573A (en) source file operation method and system
US10416858B2 (en) Electronic device and method of processing information in electronic device
US10185706B2 (en) Generating web browser views for applications

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