CN104407907B - A kind of method and system that web tab is converted into different application platforms code - Google Patents

A kind of method and system that web tab is converted into different application platforms code Download PDF

Info

Publication number
CN104407907B
CN104407907B CN201410602334.6A CN201410602334A CN104407907B CN 104407907 B CN104407907 B CN 104407907B CN 201410602334 A CN201410602334 A CN 201410602334A CN 104407907 B CN104407907 B CN 104407907B
Authority
CN
China
Prior art keywords
label
code
father
system platform
type
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410602334.6A
Other languages
Chinese (zh)
Other versions
CN104407907A (en
Inventor
张宝库
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Si Tech Information Technology Co Ltd
Original Assignee
Beijing Si Tech Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Si Tech Information Technology Co Ltd filed Critical Beijing Si Tech Information Technology Co Ltd
Priority to CN201410602334.6A priority Critical patent/CN104407907B/en
Publication of CN104407907A publication Critical patent/CN104407907A/en
Application granted granted Critical
Publication of CN104407907B publication Critical patent/CN104407907B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The present invention relates to a kind of method and system that web tab is converted into different application platforms code, comprise the following steps:Each event in web interface is respectively configured as a label, for the code of different application platforms is respectively configured in each label;Each label is rewritten, each label is made to communicate;It, will be nested with father's label progress of outer layer positioned at the subtab of internal layer when connection setup success;When any father's label receives the render request of client transmission, the information of the type of system platform of father's label according to belonging to the client carried in render request generates the code identical with the type of the system platform using all subtabs of nested inside.The present invention can make the more reasonable when piecing together of the label on interface, since the closure demand service logic for realizing label finishes, by rewriteeing the method for label body of jstl labels realize the output of Android and ios platform codes.

Description

A kind of method and system that web tab is converted into different application platforms code
Technical field
It is more particularly to a kind of that web tab is converted into different application platforms generation the present invention relates to a kind of code conversion method The method and system of code.
Background technology
Nowadays smart mobile phone has captured the absolute share of mobile phone market.IOS, Android are substantially at respectively all over the world State, each company all developing the corresponding product of oneself, but whether it is certain to be that IOS or Android exist Drawback.Such as:The fragmentation problem of Android due to increasing income property of Android, causes each and every one manufacturer all customizing oneself ROM, and the screen size of Android is numerous.
And the developer of deposit corresponding platform in exploitation, is required for, and needs the equipment for being equipped with specialty.So Requirement just to developer is higher while development cost is higher, and management cost is also higher.
The content of the invention
The technical problems to be solved by the invention be to provide a kind of automatic realization different system platform code conversion by web The label converting method and system for different application platforms code.
The technical solution that the present invention solves above-mentioned technical problem is as follows:It is a kind of that web tab is converted into different application platforms The method of code, comprises the following steps:
Step 1:Each event in web interface is respectively configured as a label, to be respectively configured not in each label With the code of application platform;
Step 2:Each label is rewritten, each label is made to communicate;
Step 3:It, will be nested with father's label progress of outer layer positioned at the subtab of internal layer when connection setup success;
Step 4:When any father's label receives the render request of client transmission, father's label is taken according in render request The information of the type of system platform belonging to the client of band utilizes the generation of all subtabs and the system platform of nested inside The identical code of type.
The beneficial effects of the invention are as follows:It can make the more reasonable when piecing together of the label on interface, due to realizing The closure demand service logic of label finishes, and Android and ios are realized by rewriteeing the method for label body of jstl labels The output of platform code.
Based on the above technical solutions, the present invention can also be improved as follows.
Further, several transition branch flows, each transition branch stream are included respectively in each subtab and father's label Journey corresponds to a system platform respectively.
Further, the species of the system platform includes:Android system platform, IOS system platforms and PC test systems The code of platform.
Further, the subtab and father's label are jstl labels.
Further, further included in the step 4, system of father's label according to belonging to the client carried in transfer request is put down The information of type of architecture in platform is identical with the type of architecture in the system platform using all subtabs generation of nested inside Code.
Further, a kind of system that web tab is converted into different application platforms code including configuration module, rewrites mould Block, nested WFTA module and generation module;
The configuration module is in each label for each event in web interface to be respectively configured as a label The code of different application platforms is respectively configured;
The rewriting module for rewriteeing each label, makes each label communicate;
The nested WFTA module, for when connection setup success when, by positioned at father's label of the subtab of internal layer and outer layer into Row is nested;
The generation module, for when any father's label receive client transmission render request when, father's label according to The information of the type of the system platform belonging to client carried in render request is generated using all subtabs of nested inside The code identical with the type of the system platform.
Further, several transition branch flows, each transition branch stream are included respectively in each subtab and father's label Journey corresponds to a system platform respectively.
Further, the species of the system platform includes:Android system platform, IOS system platforms and PC test systems The code of platform.
Further, the subtab and father's label are jstl labels.
Further, it is additionally operable in the generation module, father's label is according to belonging to the client carried in transfer request The information of type of architecture in system platform, all subtabs generation for utilizing nested inside and the type of architecture in the system platform Identical code.
Description of the drawings
Fig. 1 is the method for the present invention flow chart of steps;
Fig. 2 is present system structure chart.
In attached drawing, parts list represented by the reference numerals is as follows:
1st, configuration module, 2, rewriting module, 3, nested WFTA module, 4, generation module.
Specific embodiment
The principle and features of the present invention will be described below with reference to the accompanying drawings, and the given examples are served only to explain the present invention, and It is non-to be used to limit the scope of the present invention.
As shown in Figure 1, it is the method for the present invention flow chart of steps;Fig. 2 is present system structure chart.
Embodiment 1
A kind of method that web tab is converted into different application platforms code, comprises the following steps:
Step 1:Each event in web interface is respectively configured as a label, to be respectively configured not in each label With the code of application platform;
Step 2:Each label is rewritten, each label is made to communicate;
Step 3:It, will be nested with father's label progress of outer layer positioned at the subtab of internal layer when connection setup success;
Step 4:When any father's label receives the render request of client transmission, father's label is taken according in render request The information of the type of system platform belonging to the client of band utilizes the generation of all subtabs and the system platform of nested inside The identical code of type.
Several transition branch flows are included respectively in each subtab and father's label, and each transition branch flow is right respectively Answer a system platform.
The species of the system platform includes:Android system platform, IOS system platforms and PC testing system platforms Code.
The subtab and father's label are jstl labels.
It is further included in the step 4, in system platform of father's label according to belonging to the client carried in transfer request The information of type of architecture generates the generation identical with the type of architecture in the system platform using all subtabs of nested inside Code.
A kind of system that web tab is converted into different application platforms code, including configuration module 1, rewriting module 2 is embedding Set of modules 3 and generation module 4;
The configuration module 1 is each label for each event in web interface to be respectively configured as a label In the codes of different application platforms is respectively configured;
The rewriting module 2 for rewriteeing each label, makes each label communicate;
The nested WFTA module 3, for when connection setup success when, by positioned at father's label of the subtab of internal layer and outer layer into Row is nested;
The generation module 4, for when any father's label receive client transmission render request when, father's label according to The information of the type of the system platform belonging to client carried in render request is generated using all subtabs of nested inside The code identical with the type of the system platform.
Several transition branch flows are included respectively in each subtab and father's label, and each transition branch flow is right respectively Answer a system platform.
The species of the system platform includes:Android system platform, IOS system platforms and PC testing system platforms Code.
The subtab and father's label are jstl labels.
It is additionally operable in the generation module 4, system platform of father's label according to belonging to the client carried in transfer request In type of architecture information, using nested inside all subtabs generation it is identical with the type of architecture in the system platform Code.
The present invention can realize the communication between the judgement for realizing Platform Type, the sub- father of realization.
1st, the judgement of Platform Type is realized
The parameter of Platform Type is just carried when client sends and asks, is sentenced in jstl labels after acquirement type Disconnected platform is Android platform, Ios platforms or pc beta versions.
Judge the type of the current framework to be translated again after the type of corresponding platform is specified
It is primary framework (application developed using the primary api of corresponding platform) or mixed architecture (is based on webview The application of exploitation, the interface of application are completed by html5, and terminal loads locally or remotely web interface by webview, The communication of interface and corresponding platform is completed by the way that method is tied on webview)
2nd, the communication between sub- father is realized
The communication of sub- father's label obtains the object of father's label by subtab, can facilitate after father's label object is taken The attribute in father's label is operated.Label can be nested after sub- father's communication is realized, with the business mould of a completion Block is a unit, can be put into the label for completing a function in one outermost label,
The finishing of one label just indicates finishing for service logic.It is so just become apparent from interface, also more Meet service logic.After more crucially sub- father's communication is realized, it is possible to realize the electrodeless nesting of label, this is most critical Technology is realized.
3rd, the realization of the code conversion of corresponding platform is as follows:
The judgement and differentiation of platform code are exactly that there are three judge branch altogether by following mode.
That terminal platform first determined whether is, for example, Android, ios or pc test.After platform is determined again really Determining framework is primary or mixes.
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all the present invention spirit and Within principle, any modifications, equivalent replacements and improvements are made should all be included in the protection scope of the present invention.

Claims (6)

  1. A kind of 1. method that web tab is converted into different application platforms code, which is characterized in that comprise the following steps:
    Step 1:Each event in web interface is respectively configured as a label, for different answer is respectively configured in each label With the code of platform;
    Step 2:Each label is rewritten, each label is made to communicate;
    Step 3:It, will be nested with father's label progress of outer layer positioned at the subtab of internal layer when connection setup success;
    Step 4:When any father's label receives the render request of client transmission, father's label in render request according to carrying The information of the type of system platform belonging to client utilizes all subtabs generation of nested inside and the class of the system platform The identical code of type, wherein respectively comprising several transition branch flows, each transition branch in each subtab and father's label Flow corresponds to a system platform respectively, wherein being further included in the step 4, father's label is according to the client carried in transfer request The information of the type of architecture in system platform belonging to end, using in all subtabs generation of nested inside and the system platform The identical code of type of architecture.
  2. 2. the method according to claim 1 that web tab is converted into different application platforms code, which is characterized in that institute Stating the species of system platform includes:The code of android system platform, IOS system platforms and PC testing system platforms.
  3. 3. the method according to claim 1 that web tab is converted into different application platforms code, it is characterised in that:Institute It is jstl labels to state subtab and father's label.
  4. 4. a kind of system that web tab is converted into different application platforms code, it is characterised in that:Including configuration module (1), weight Writing module (2), nested WFTA module (3) and generation module (4);
    The configuration module (1) is in each label for each event in web interface to be respectively configured as a label The code of different application platforms is respectively configured;
    The rewriting module (2), for rewriteeing each label, makes each label communicate;
    The nested WFTA module (3), for that when connection setup is successful, will be carried out positioned at father's label of the subtab of internal layer and outer layer It is nested;
    The generation module (4), for when any father's label receive client transmission render request when, father's label according to turn Translate the information of the type of the system platform in request belonging to the client that carries, using nested inside the generation of all subtabs with The identical code of the type of the system platform, wherein including several transition branch streams in each subtab and father's label respectively Journey, each transition branch flow corresponds to a system platform respectively, wherein being additionally operable in the generation module (4), father's label root According to the information of the type of architecture in the system platform belonging to the client carried in transfer request, all sons of nested inside are utilized Label generates the code identical with the type of architecture in the system platform.
  5. 5. the system according to claim 4 that web tab is converted into different application platforms code, which is characterized in that institute Stating the species of system platform includes:The code of android system platform, IOS system platforms and PC testing system platforms.
  6. 6. the system according to claim 4 that web tab is converted into different application platforms code, it is characterised in that:Institute It is jstl labels to state subtab and father's label.
CN201410602334.6A 2014-10-31 2014-10-31 A kind of method and system that web tab is converted into different application platforms code Active CN104407907B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410602334.6A CN104407907B (en) 2014-10-31 2014-10-31 A kind of method and system that web tab is converted into different application platforms code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410602334.6A CN104407907B (en) 2014-10-31 2014-10-31 A kind of method and system that web tab is converted into different application platforms code

Publications (2)

Publication Number Publication Date
CN104407907A CN104407907A (en) 2015-03-11
CN104407907B true CN104407907B (en) 2018-05-25

Family

ID=52645540

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410602334.6A Active CN104407907B (en) 2014-10-31 2014-10-31 A kind of method and system that web tab is converted into different application platforms code

Country Status (1)

Country Link
CN (1) CN104407907B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107203404B (en) * 2017-05-27 2020-08-04 北京思特奇信息技术股份有限公司 Code conversion method and system based on web
CN111522582B (en) * 2020-04-23 2023-08-22 北京思特奇信息技术股份有限公司 Method and system for generating codes of different application platforms

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102306163A (en) * 2011-08-01 2012-01-04 烟台杰瑞网络商贸有限公司 Dynamic integration technology based on B2B (business to business) platform
CN102541533A (en) * 2010-12-27 2012-07-04 北大方正集团有限公司 Method and equipment for page display
CN103500098A (en) * 2013-09-29 2014-01-08 迈普通信技术股份有限公司 Method and system for packing low label assembly of JSP page

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070234285A1 (en) * 2006-02-28 2007-10-04 Mendoza Alfredo V Determining the portability of an application program from a source platform to a target platform

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102541533A (en) * 2010-12-27 2012-07-04 北大方正集团有限公司 Method and equipment for page display
CN102306163A (en) * 2011-08-01 2012-01-04 烟台杰瑞网络商贸有限公司 Dynamic integration technology based on B2B (business to business) platform
CN103500098A (en) * 2013-09-29 2014-01-08 迈普通信技术股份有限公司 Method and system for packing low label assembly of JSP page

Also Published As

Publication number Publication date
CN104407907A (en) 2015-03-11

Similar Documents

Publication Publication Date Title
Fitz et al. A metamodel for cyber-physical systems
CN108023952A (en) A kind of modularization Internet of Things application rapid build platform combined based on cloud and mist
CN103517385B (en) The method of attachment of the AP of Android system Wi-Fi and system
CN102129639B (en) Method and system for sharing application procedure
CN103716308A (en) Multiprotocol platform communication method and multiprotocol platform
CN104298512B (en) A kind of functional unit formula integrated development system based on OSGi standards
CN105703863B (en) The playback method and system of a kind of emergent broadcast
CN104407907B (en) A kind of method and system that web tab is converted into different application platforms code
CN102520936A (en) Method for realizing sharing of Socket communication service on Android platform
CN109426510A (en) Software processing method, device, electronic equipment and computer readable storage medium
CN102830799B (en) Method for carrying out induction on induction device based on intelligent terminal and intelligent terminal
CN104333587B (en) A kind of method and system that multi-platform event is uniformly processed
CN103902539A (en) Method and device for analyzing extensible markup language data
CN104750468B (en) A kind of server-side topological data conversion method and conversion equipment
CN104363517B (en) Method for switching languages and system based on tv scene and voice assistant
CN105141776A (en) Remote control debugging method and system based on Android equipment
CN105472462A (en) Television function processing method and system
CN102111910A (en) ZigBee wireless transmission network system configuration method and system based on service oriented architecture (SOA)
CN110187953A (en) A kind of operation method and device of application program
CN110069321A (en) Business containerization operation method, equipment, storage medium and device
CN102567083B (en) Object transmission method, object transmission device and object transmission system applying RPC (remote procedure call)
CN102262527B (en) The method and system of generating network service
CN106156081A (en) A kind of list verifying method and equipment
CN105930474A (en) Database technology-based dynamic model construction method
CN104331286B (en) A kind of method and system that application and development is carried out using browser

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant