CN108628900B - Data format obtaining method and related device - Google Patents

Data format obtaining method and related device Download PDF

Info

Publication number
CN108628900B
CN108628900B CN201710178164.7A CN201710178164A CN108628900B CN 108628900 B CN108628900 B CN 108628900B CN 201710178164 A CN201710178164 A CN 201710178164A CN 108628900 B CN108628900 B CN 108628900B
Authority
CN
China
Prior art keywords
information
conversion
conversion information
data
html5
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
CN201710178164.7A
Other languages
Chinese (zh)
Other versions
CN108628900A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201710178164.7A priority Critical patent/CN108628900B/en
Publication of CN108628900A publication Critical patent/CN108628900A/en
Application granted granted Critical
Publication of CN108628900B publication Critical patent/CN108628900B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention discloses a method for acquiring a data format, which comprises the following steps: acquiring HTML5 data of a fifth version of a hypertext markup language of a service; extracting first conversion information from the HTML5 data; processing the first conversion information according to a preset isomorphic processing rule and obtaining second conversion information, wherein the preset isomorphic processing rule is used for indicating that the first conversion information and the second conversion information have a mapping relation; and acquiring the native response RN data according to the second conversion information. The invention also provides a data format acquisition device. According to the invention, HTML5 data can be converted into RN data through isomorphic processing, and the RN data does not need to be re-developed, so that the greater development cost and labor cost are saved, and the development efficiency is improved.

Description

Data format obtaining method and related device
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a data format conversion method and a related apparatus.
Background
Nowadays, the cross-terminal technology mainly includes the fifth revision of hypertext Markup Language (html 5) and the Native Response (RN), both of which can implement a set of codes for different platforms. At present, most of services of internet companies are constructed by using HTML5, however, actually, RN is superior to HTML5 in terms of service performance and user experience.
In the prior art, in order to improve the performance and user experience of a service, an internet company may develop an RN project while retaining an HTML5 project.
However, redevelopment of a set of RN projects can improve service performance and user experience, but it needs to consume a large development cost and labor cost, and also wastes a large amount of development time, resulting in low development efficiency.
Disclosure of Invention
Embodiments of the present invention provide a method and a related apparatus for obtaining a data format, which can convert HTML5 data into RN data through isomorphic processing, and need not to redevelop the RN data, thereby saving a large development cost and a large labor cost, and thus improving development efficiency.
In view of this, a first aspect of the present invention provides a method for acquiring a data format, including:
acquiring HTML5 data of a fifth version of a hypertext markup language of a service;
extracting first conversion information from the HTML5 data;
processing the first conversion information according to a preset isomorphic processing rule and obtaining second conversion information, wherein the preset isomorphic processing rule is used for indicating that the first conversion information and the second conversion information have a mapping relation;
and acquiring the native response RN data according to the second conversion information.
A second aspect of the present invention provides a data format obtaining apparatus, including:
the first acquisition module is used for acquiring HTML5 data of a fifth version of the hypertext markup language of the service;
the extraction module is used for extracting first conversion information from the HTML5 data acquired by the first acquisition module;
the processing module is used for processing the first conversion information extracted by the extraction module according to a preset isomorphic processing rule and obtaining second conversion information, wherein the preset isomorphic processing rule is used for indicating that the first conversion information and the second conversion information have a mapping relation;
and the second acquisition module is used for acquiring the native response RN data according to the second conversion information obtained after the processing module processes the native response RN data.
According to the technical scheme, the embodiment of the invention has the following advantages:
the embodiment of the invention provides a method for acquiring a data format, which comprises the steps of firstly acquiring HTML5 data of a fifth version of a hypertext markup language of a service, then extracting first conversion information from the HTML5 data, then processing the first conversion information according to a preset isomorphic processing rule, and obtaining second conversion information, wherein the preset isomorphic processing rule is used for indicating that the first conversion information and the second conversion information have a mapping relation, and finally acquiring native response RN data according to the second conversion information. Through the mode, the HTML5 data can be converted into the RN data through isomorphic processing, and the RN data does not need to be re-developed, so that the greater development cost and labor cost are saved, and the development efficiency is improved.
Drawings
FIG. 1 is an architecture diagram of an embodiment of the present invention for obtaining data formats;
FIG. 2 is a diagram of an embodiment of a method for obtaining a data format according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating the conversion of document object model information according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an embodiment of a data format obtaining apparatus according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of another embodiment of a data format obtaining apparatus according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of another embodiment of a data format obtaining apparatus according to an embodiment of the present invention;
fig. 7 is a schematic diagram of another embodiment of the data format obtaining apparatus in the embodiment of the present invention;
FIG. 8 is a schematic diagram of another embodiment of a data format obtaining apparatus according to an embodiment of the present invention;
fig. 9 is a schematic diagram of another embodiment of the data format obtaining apparatus in the embodiment of the present invention;
fig. 10 is a schematic diagram of another embodiment of the data format obtaining apparatus in the embodiment of the present invention;
fig. 11 is a schematic structural diagram of a data format obtaining apparatus according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention provide a data format obtaining method and a related apparatus, which can convert HTML5 data into RN data through isomorphic processing, and need not to redevelop the RN data, thereby saving a relatively large development cost and labor cost, and thus improving development efficiency.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that the present invention can be applied to a client and a server, and the present invention converts an HTML5 item into an RN item from five aspects of Document Object Model (DOM), cascading Style Sheets (CSS), event response, common components and interface communication, and in practical applications, may also convert an RN item into an HTML5 item from the above five aspects, but since the RN item is better than the HTML5 item from smoothness of operation to user experience, the present invention will be described by taking how to convert the RN item into the HTML5 item as an example.
Referring to fig. 1, fig. 1 is an architecture diagram of acquiring a data format in an embodiment of the present invention, as shown in the figure, a code of HTML5 needs to be acquired first, and then DOM information, CSS style information, time response information, common component information, and communication interface information are extracted. After the information of the five parts is extracted, isomorphic processing is respectively carried out. After all the information completes isomorphic processing, the conversion from the HTML5 item to the RN item is completed.
Where isomorphism is a type of mapping defined between objects that reveals the relationships that exist between the properties and operations of those objects. Two objects are said to be isomorphic if there is an isomorphic mapping between the two objects. The isomorphism between the HTML5 item and the RN item is that the HTML5 item is constructed into the RN item according to the mapping relations of the DOM information, the CSS style information, the time response information, the common component information and the communication interface information, so that the isomorphism from the HTML5 item to the RN is realized.
Referring to fig. 2, a method for obtaining a data format according to an embodiment of the present invention is described as follows:
201. acquiring HTML5 data of a fifth version of a hypertext markup language of a service;
in this embodiment, first, the data format obtaining device obtains HTML5 data of a certain service, specifically, the service may be an application program, and the HTML5 data is an HTML5 code.
HTML5 is a result of cooperation between World Wide Web Consortium (W3C) and Web Hypertext Application Technology Working Group (WHATWG), and is a cross-platform language compatible with various mainstream platforms such as Personal Computer (PC), apple computer (Mac), apple cell Phone (iPhone ), apple tablet computer (apple, iPad), android (Android), and microsoft cell Phone (Windows Phone). The existing HTML5 front-end development technology can realize that a set of codes is used for development at an apple operating System (IOS) and an android terminal, so that the development cost is saved, and the defect that version iteration is needed for application program development is overcome.
202. Extracting first conversion information from HTML5 data;
in this embodiment, the data format obtaining device then extracts the first conversion information that needs to be isomorphic processed from the HTML5 data.
203. Processing the first conversion information according to a preset isomorphic processing rule and obtaining second conversion information, wherein the preset isomorphic processing rule is used for indicating that the first conversion information and the second conversion information have a mapping relation;
in this embodiment, the data format obtaining apparatus processes the first conversion information according to the preset isomorphic processing rule, that is, maps the first conversion information into the second conversion information by using the preset isomorphic processing rule, where the first conversion information is applicable to the HTML5 project and the second conversion information is applicable to the RN project.
204. And acquiring the native response RN data according to the second conversion information.
In this embodiment, RN data can be constructed through the second conversion information, and the conversion from the HTML5 item to the RN item is also completed.
The RN project is constructed based on React and interpreted scripting language (JavaScript). Fact is an open source JavaScript library for constructing a user interface, and the method reduces interaction with the DOM to the maximum extent through the simulation of the DOM, so that the method has higher performance. React provides a model for programmers that sub-components cannot directly affect outer components, HTML documents are effectively updated when data changes, and component codes are easily multiplexed through React construction, so that HTML5 projects are often constructed using React.
The embodiment of the invention provides a method for acquiring a data format, which comprises the steps of firstly acquiring HTML5 data of a fifth version of a hypertext markup language of a service, then extracting first conversion information from the HTML5 data, then processing the first conversion information according to isomorphic processing, and obtaining second conversion information, wherein a preset isomorphic processing rule is used for indicating that the first conversion information and the second conversion information have a mapping relation, and finally acquiring native response RN data according to the second conversion information. Through the mode, HTML5 data can be converted into RN data through the preset isomorphic processing rule, and the RN data does not need to be re-developed, so that the greater development cost and labor cost are saved, and the development efficiency is improved.
Optionally, on the basis of the embodiment corresponding to fig. 2, in a first optional embodiment of the method for acquiring a data format according to the embodiment of the present invention, the first conversion information is at least one of document object model DOM information, cascading style sheet CSS style information, event response information, common component information, and communication interface information;
the DOM information is used for rendering HTML5 data;
the CSS style information is used for representing a CSS naming mode of HTML5 data;
the event response information is used for representing the response event of the HTML5 data;
the public component information is used for monitoring and reporting the application state of HTML5 data;
the communication interface information is used for indicating a communication mode of the HTML5 data and the client.
In this embodiment, the first conversion information may be at least one of DOM information, CSS style information, event response information, common component information, and communication interface information, which will be described below separately for each item of information.
In particular, the DOM information can be used to render the HTML5 data and reconstruct the entire HTML document, such as adding, removing, changing, or rearranging the HTML document. JavaScript is adopted to act on the webpage so as to achieve a certain functional effect. And JavaScript calls many DOM-defined controls and methods. For example, sometimes we get a tag (a) through JavaScript and use the following code: document. Getelementsbytagname ("a").
The CSS style information is mainly used to indicate a naming method of a CSS computer language, and the CSS is a computer language used to represent file styles such as HTML. The CSS can not only statically modify the web page, but also dynamically format elements of the web page in coordination with various scripting languages.
The event response information is used to indicate a response event on the page corresponding to the HTML5 data, for example, the user triggers a "submit" button on the HTML5 page, i.e., triggers a certain event, or the user closes a certain message on the HTML5 page, i.e., triggers another event.
The public component information is used for monitoring and reporting the application state of HTML5 data, namely, on-line HTML5 items need to monitor and report the conditions of page response speed, click rate, loading errors and the like, so that when the on-line HTML5 items have on-line problems, error positioning can be carried out for the first time according to the monitoring and reporting information. However, the common components for monitoring and reporting the HTML5 online system cannot be completely reused in the RN project.
The communication interface information is used for indicating a communication mode of the HTML5 data and the client, namely the interface communication mode between the HTML5 data and different clients is to transmit some parameters and methods by adopting a JavaScript interaction (jsBridge) pseudo protocol. If in the RN project, a Native Module (Native Module) is adopted for communication between the RN data and the client.
Secondly, in the embodiment of the present invention, the first conversion information is specifically described, for example, the first conversion information may be at least one of DOM information, CSS style information, event response information, common component information, and communication interface information, and then the at least one information is converted into the second conversion information, so that the RN item may be constructed, thereby improving the practicability and feasibility of the scheme.
Optionally, on the basis of the first embodiment corresponding to fig. 2, in a second optional embodiment of the method for acquiring a data format according to the embodiment of the present invention, the first conversion information is DOM information;
processing the first conversion information according to a preset isomorphic processing rule, and obtaining second conversion information, may include:
converting a block-level DIV tag in the DOM information into a first tag;
converting an inline SPAN tag in the DOM information into a second tag;
and determining second conversion information according to the first tag and the second tag, wherein the second conversion information is target DOM information.
In this embodiment, the first conversion information is DOM information, and the second conversion information is target DOM information, where the DOM information in HTML5 includes block-level DIV tags and inline SPAN tags, that is, < DIV > and < SPAN >.
Specifically, referring to fig. 3, fig. 3 is a flowchart illustrating a process of converting document object model information according to an embodiment of the present invention, in step 301, HTML5 mutually embeds rendering DOM information using structures such as < div > and < span >, so that in step 302, < div > of HTML5 data is converted into < View >, and in step 304, < span > of HTML5 data is converted into < Text >. Thus, in step 306, the converted < View > and < Text > are taken as second conversion information, i.e., target DOM information.
Where the < div > element in HTML5 is a block level element, a container for combining other HTML elements. The < div > element has no specific meaning. In addition to this, since it belongs to a block level element, the browser will display the fold line before and after it, if used with CSS, the < div > element can be used to set the style property for large blocks of content. Another common use of the < div > element is for document layout. The < span > element in HTML5 is an inline element that can be used as a container for text, nor does the < span > element have a special meaning, which can be used to set style properties for portions of text when used with CSS. The < View > in the RN is the most basic component of the user interface, is a container supporting some touch processing and some barrier-free functions, can be placed in other views, and can have any number of sub-views of any type. The < Text > in RN takes the form of a Text layout, meaning that internal elements may be folded at the end of a line.
In the embodiment of the present invention, when the first conversion information is DOM information, how to perform isomorphic processing on DOM information in the HTML5 data is described, and the DIV tag and the SPAN tag in the HTML5 data may be converted to obtain second conversion information, so as to construct RN data. Through the mode, isomorphism of DOM information in an HTML5 project can be achieved, manual compiling of the DOM information in RN data is not needed, and therefore development efficiency is improved to a certain extent.
Optionally, on the basis of the first embodiment corresponding to fig. 2, in a third optional embodiment of the method for acquiring a data format according to the embodiment of the present invention, the first conversion information is CSS style information;
processing the first conversion information according to a preset isomorphic processing rule, and obtaining second conversion information, may include:
and updating the CSS style information into second conversion information by adopting a regular matching rule, wherein the second conversion information is target CSS style information.
In this embodiment, first conversion information, that is, CSS style information, is first acquired, and then is updated to second conversion information, that is, target CSS style information, by using a regular matching rule. Unlike the CSS style information style.css file format in HTML5, the CSS style information in RN uses a common JavaScript object style.js. But CSS style conversion between RN and HTML5 is also regularly cyclable.
Specifically, based on the naming rule of the RN style name, the "-" may be removed, and the first letter after the "-" is automatically changed into capital, for example, "background-color" may be rewritten into "background color", and then the style.
For convenience of understanding, the following may describe in detail the process of CSS style information conversion in the present invention with a specific code, specifically:
Figure BDA0001252915330000081
the codes are regular expression functions processed in a hump mode, but there are many places to be processed for completely converting a CSS file into a style file available for RN, such as "bird-bottom: 1pxsolid red; "convert to" borderBottom:1solid red; "there are many details to be processed, such as removing" px ", where we have performed corresponding processing on places with less compatible styles by a component, such as using the following code to achieve compatibility:
Figure BDA0001252915330000082
Figure BDA0001252915330000091
it should be noted that the two code segments are only illustrative and should not be construed as limiting the invention.
In the embodiment of the present invention, when the first conversion information is CSS style information, how to perform isomorphic processing on the CSS style information in the HTML5 data is described, and the CSS style information may be directly updated to the second conversion information by using a regular matching rule, where the second conversion information is target CSS style information. By the mode, isomorphism of the CSS style information in the HTML5 project can be achieved, and the CSS style information in the RN data does not need to be manually written, so that the development efficiency is improved to a certain extent.
Optionally, on the basis of the third embodiment corresponding to fig. 2, in a fourth optional embodiment of the method for acquiring a data format provided in the embodiment of the present invention, updating the CSS style information to the second conversion information by using a regular matching rule may include:
and updating the CSS style information into target CSS style information by adopting a hump type naming rule.
In this embodiment, the regular matching rule adopted by the data format obtaining device may specifically be a hump-type naming rule. The hump-type naming rule is also called hump naming method, and is a set of naming rules when a computer program is written. As its name implies, refers to the name of variables and functions that are made using mixed upper and lower case letters. Hump naming convention is when a variable or function name is a unique identifying word formed by one or more words joined together, the first word starting with a lower case letter and the first letter of the second word capitalizing or the first letter of each word capitalizing, for example: myFirstName or myLastName, which looks like a camel peak in its root mean square volts. The naming convention of the hump naming convention can be considered as a convention and is not absolute or mandatory in order to increase recognition and readability.
It should be noted that, in practical application, a small hump type naming rule or a large hump type naming rule may be adopted, which is not limited herein.
In the small hump-type naming convention, variables are typically identified using a small hump method. Hump means: except for the first word, the first letters of the other words are capitalized. For example, in "int myStudentCount", the variable "myStudentCount" is all lower case first, followed by a higher case first.
In the large hump naming convention, the first letter of the first word is also capitalized. Commonly used for class names, function names, attributes, and namespaces. For example, in "public class DataBaseUse", the variable "DataBaseUse" is the first word in all capitals, with the first letter of the preceding word in lowercase.
Further, in the embodiment of the present invention, the regular matching rule may be a hump-type naming rule, that is, the target CSS style information is updated by using the hump-type naming rule. By the method, the CSS style in the HTML5 data can be updated more accurately, so that the feasibility and the operability of the scheme are improved.
Optionally, on the basis of the first embodiment corresponding to fig. 2, in a fifth optional embodiment of the method for acquiring a data format according to the embodiment of the present invention, the first conversion information is event response information;
processing the first conversion information according to a preset isomorphic processing rule, and obtaining second conversion information, may include:
acquiring a view layer and an event response layer according to the event response information;
nesting an event response layer outside the view layer, and determining second conversion information, wherein the second conversion information is target event response information, and the view layer and the target event response information have a binding relationship.
In this embodiment, when the first conversion information is event response information of HTML5, the data format obtaining device may first obtain, according to the event response information, a View layer < View > and an event response layer < touch hidden access > in the HTML5, then the event response of the RN needs to nest an event response layer outside the View layer of the bound event, and then bind the event response method to the event response layer, so as to obtain second conversion information, where the second conversion information is target event response information, and the View layer and the target event response information have a binding relationship, so as to implement isomorphism of the event response information between the RN and the HTML5.
Unlike the way in which the RN binds the target event response information, the HTML5 only needs to directly bind the event response layer to the DOM information.
In the embodiment of the present invention, when the first conversion information is event response information, how to perform isomorphic processing on event response information in HTML5 data is described, a view layer and an event response layer may be obtained according to the event response information, then the event response layer is nested outside the view layer, and second conversion information is determined, where the second conversion information is target event response information, and the view layer and the target event response information have a binding relationship. By the mode, isomorphism of the event response information in the HTML5 project can be achieved, the event response information in RN data does not need to be manually written, and therefore development efficiency is improved to a certain extent.
Optionally, on the basis of the first embodiment corresponding to fig. 2, in a sixth optional embodiment of the method for acquiring a data format according to the embodiment of the present invention, the first conversion information is common component information;
processing the first conversion information according to a preset isomorphic processing rule, and obtaining second conversion information, may include:
acquiring a second object corresponding to the RN data and file information of the first object according to the first object in the public component information;
and writing the file information of the first object into the second object, and determining second conversion information.
In this embodiment, the online HTML5 item needs to monitor and report the page response speed, the click rate, and the loading error condition, so that it can be ensured that the online HTML5 item can perform error location for the first time according to the monitoring report information when an online problem occurs. However, the common component information monitored and reported by the HTML5 online system cannot be completely reused in the RN item, because there is no first object, i.e. global object, such as window, image and location in the RN. The global object is a predefined object that acts as a placeholder for global functions and global properties of the JavaScript. All other predefined objects, functions and attributes can be accessed by using the global object.
In order to realize the isomorphism of the public component information between the RN and the HTML5, a second object, namely a public object, having the same function as the window, image and location first object in the HTML5 needs to be acquired, and then the file information window.
For the sake of understanding, the following describes how to implement an Image global object having the same function as that in HTML5 in the RN, taking a specific piece of code as an example, as follows:
Figure BDA0001252915330000111
Figure BDA0001252915330000121
in the embodiment of the present invention, when the first conversion information is the common component information, how to perform isomorphic processing on the common component information in the HTML5 data is described, the second object corresponding to the RN data and the file information of the first object may be obtained according to the first object in the common component information, and then the file information of the first object is written into the second object to determine the second conversion information, so as to achieve the purpose that the common component information in the HTML5 item is also applicable in the RN item. Through the mode, isomorphism of the public component information in the HTML5 project can be achieved, the public component information in RN data does not need to be manually written, and therefore development efficiency is improved to a certain extent.
Optionally, on the basis of the first embodiment corresponding to fig. 2, in a seventh optional embodiment of the method for acquiring a data format according to the embodiment of the present invention, the first conversion information is communication interface information;
processing the first conversion information according to a preset isomorphic processing rule, and obtaining second conversion information, may include:
acquiring a target protocol according to the communication interface information;
and determining second conversion information according to the target protocol, wherein the second conversion information is target communication interface information written by the target protocol, and the target communication interface information is used for indicating a communication mode between RN data and the client.
In this embodiment, the first conversion information is communication interface information, and the second conversion information is target communication interface information written by using a target protocol, where the communication interface information in HTML5 is used to indicate that the interface communication mode between HTML5 data and the IOS and Android clients is that a jsBridge pseudo protocol is used to transfer some parameters and methods. However, the interface communication mode between the RN data and the IOS and Android client is to use Native Module for communication.
Specifically, the data format obtaining device determines a target protocol according to the communication interface information of the HTML5 data, where the target protocol may be a jsBridge pseudo protocol, and then encapsulates the native module with the jsBridge pseudo protocol, so as to implement the isomorphism of interface communication between the HTML5 item and the RN item.
In the embodiment of the present invention, when the first conversion information is the communication interface information, how to perform isomorphic processing on the communication interface information in the HTML5 data is described, a target protocol may be obtained according to the communication interface information, where the target protocol is adopted by the HTML5 project, and then the second conversion information is determined according to the target protocol, where the second conversion information is the target communication interface information written by the target protocol, that is, the target protocol can be used to perform add, delete, modify, and check on the target communication interface information in the RN project. By the mode, isomorphism of DOM information in an HTML5 project can be achieved, and communication interface information in RN data does not need to be written manually, so that development efficiency is improved to a certain extent.
Referring to fig. 4, a data format obtaining apparatus 40 according to an embodiment of the present invention includes:
a first obtaining module 401, configured to obtain HTML5 data of a fifth version of a hypertext markup language of a service;
an extracting module 402, configured to extract first conversion information from the HTML5 data acquired by the first acquiring module 401;
a processing module 403, configured to process the first conversion information extracted by the extracting module 402 according to a preset isomorphic processing rule, and obtain second conversion information, where the preset isomorphic processing rule is used to indicate that the first conversion information and the second conversion information have a mapping relationship;
a second obtaining module 404, configured to obtain the native response RN data according to the second conversion information obtained after the processing module 403 processes.
In this embodiment, a first obtaining module 401 obtains HTML5 data of a fifth version of a hypertext markup language of a service, an extracting module 402 extracts first conversion information from the HTML5 data obtained by the first obtaining module 401, a processing module 403 processes the first conversion information extracted by the extracting module 402 according to a preset isomorphic processing rule, and obtains second conversion information, where the preset isomorphic processing rule is used to indicate that the first conversion information and the second conversion information have a mapping relationship, and a second obtaining module 404 obtains RN data of a native response according to the second conversion information obtained after processing by the processing module 403.
The embodiment of the invention provides a data format acquisition device, which is characterized by firstly acquiring HTML5 data of a fifth version of a hypertext markup language of a service, then extracting first conversion information from the HTML5 data, then processing the first conversion information according to a preset isomorphic processing rule to obtain second conversion information, wherein the preset isomorphic processing rule is used for indicating that the first conversion information and the second conversion information have a mapping relation, and finally acquiring native response RN data according to the second conversion information. Through the mode, HTML5 data can be converted into RN data through isomorphic processing, and the RN data does not need to be re-developed, so that the great development cost and labor cost are saved, and the development efficiency is improved.
Optionally, on the basis of the embodiment corresponding to fig. 4, in another embodiment of the data format obtaining apparatus according to the embodiment of the present invention, the first conversion information is at least one of document object model DOM information, cascading style sheet CSS style information, event response information, common component information, and communication interface information;
wherein the DOM information is used for rendering the HTML5 data;
the CSS style information is used for representing a CSS naming mode of the HTML5 data;
the event response information is used for representing a response event of the HTML5 data;
the public component information is used for monitoring and reporting the application state of the HTML5 data;
the communication interface information is used for indicating a communication mode of the HTML5 data and the client.
Secondly, in the embodiment of the present invention, the first conversion information is specifically described, for example, the first conversion information may be at least one of DOM information, CSS style information, event response information, common component information, and communication interface information, and then the at least one information is converted into the second conversion information, so that the RN item may be constructed, thereby improving the practicability and feasibility of the scheme.
Optionally, on the basis of the embodiment corresponding to fig. 4, please refer to fig. 5, in another embodiment of the data format obtaining apparatus 40 according to the embodiment of the present invention, the first conversion information is the DOM information;
the processing module 403 includes:
a first conversion unit 4031, configured to convert a block-level DIV tag in the DOM information into a first tag;
a second conversion unit 4032, configured to convert the inline SPAN tag in the DOM information into a second tag;
a first determining unit 4033, configured to determine the second conversion information according to the first tag obtained through conversion by the first conversion unit 4031 and the second tag obtained through conversion by the second conversion unit 4032, where the second conversion information is target DOM information.
In the embodiment of the present invention, when the first conversion information is DOM information, how to perform isomorphic processing on DOM information in the HTML5 data is described, and the DIV tag and the SPAN tag in the HTML5 data may be converted to obtain the second conversion information, so as to construct RN data. Through the mode, isomorphism of DOM information in an HTML5 project can be achieved, manual compiling of the DOM information in RN data is not needed, and therefore development efficiency is improved to a certain extent.
Optionally, on the basis of the embodiment corresponding to fig. 4, referring to fig. 6, in another embodiment of the data format obtaining apparatus according to the embodiment of the present invention, the first conversion information is the CSS style information;
the processing module 403 comprises:
an updating unit 4034, configured to update the CSS style information to the second conversion information by using a regular matching rule, where the second conversion information is target CSS style information.
In the embodiment of the present invention, when the first conversion information is CSS style information, how to perform isomorphic processing on the CSS style information in the HTML5 data is described, and the CSS style information may be directly updated to the second conversion information by using a regular matching rule, where the second conversion information is target CSS style information. By the mode, isomorphism of the CSS style information in the HTML5 project can be achieved, and the CSS style information in the RN data does not need to be manually written, so that the development efficiency is improved to a certain extent.
Alternatively, on the basis of the embodiment corresponding to fig. 6, referring to fig. 7, in another embodiment of the data format obtaining apparatus provided in the embodiment of the present invention,
the update unit 4034 includes:
an updating subunit 40341, configured to update the CSS style information to the target CSS style information using a hump-type naming rule.
Further, in the embodiment of the present invention, the regular matching rule may be a hump-type naming rule, that is, the target CSS style information is updated by using the hump-type naming rule. By the method, the CSS style in the HTML5 data can be updated more accurately, so that the feasibility and the operability of the scheme are improved.
Optionally, on the basis of the embodiment corresponding to fig. 4, please refer to fig. 8, in another embodiment of the data format obtaining apparatus according to the embodiment of the present invention, the first conversion information is the event response information;
the processing module 403 comprises:
a first obtaining unit 4035, configured to obtain a view layer and an event response layer according to the event response information;
a second determining unit 4036, configured to nest the event response layer obtained by the first obtaining unit 4035 outside the view layer obtained by the first obtaining unit 4035, and determine second conversion information, where the second conversion information is target event response information, and the view layer and the target event response information have a binding relationship.
In the embodiment of the present invention, when the first conversion information is event response information, how to perform isomorphic processing on event response information in HTML5 data is described, a view layer and an event response layer may be obtained according to the event response information, then the event response layer is nested outside the view layer, and second conversion information is determined, where the second conversion information is target event response information, and the view layer and the target event response information have a binding relationship. By the mode, isomorphism of the event response information in the HTML5 project can be achieved, the event response information in RN data does not need to be manually written, and therefore development efficiency is improved to a certain extent.
Optionally, on the basis of the embodiment corresponding to fig. 4, referring to fig. 9, in another embodiment of the data format obtaining apparatus according to the embodiment of the present invention, the first conversion information is the common component information;
the processing module 403 includes:
a second obtaining unit 4037, configured to obtain, according to a first object in the common component information, a second object corresponding to the RN data and file information of the first object;
a third determining unit 4038, configured to write the file information of the first object acquired by the second acquiring unit 4037 into the second object, and determine the second conversion information.
In the embodiment of the present invention, when the first conversion information is the common component information, how to perform isomorphic processing on the common component information in the HTML5 data is described, the second object corresponding to the RN data and the file information of the first object may be obtained according to the first object in the common component information, and then the file information of the first object is written into the second object to determine the second conversion information, so as to achieve the purpose that the common component information in the HTML5 item is also applicable in the RN item. Through the mode, isomorphism of the public component information in the HTML5 project can be achieved, the public component information in RN data does not need to be manually written, and therefore development efficiency is improved to a certain extent.
Optionally, referring to fig. 10 on the basis of the embodiment corresponding to fig. 4, in another embodiment of the data format obtaining apparatus according to the embodiment of the present invention, the first conversion information is the communication interface information;
the processing module 403 includes:
a third obtaining unit 4039A, configured to obtain a target protocol according to the communication interface information;
a fourth determining unit 4039B, configured to determine the second conversion information according to the target protocol acquired by the third acquiring unit 4039A, where the second conversion information is target communication interface information written by using the target protocol, and the target communication interface information is used to indicate a communication mode between the RN data and a client.
In the embodiment of the present invention, when the first conversion information is the communication interface information, how to perform isomorphic processing on the communication interface information in the HTML5 data is described, a target protocol may be obtained according to the communication interface information, where the target protocol is adopted by the HTML5 project, and then the second conversion information is determined according to the target protocol, where the second conversion information is the target communication interface information written by the target protocol, that is, the target protocol can be used to perform add, delete, modify, and check on the target communication interface information in the RN project. By the mode, isomorphism of DOM information in an HTML5 project can be achieved, and communication interface information in RN data does not need to be written manually, so that development efficiency is improved to a certain extent.
Another data format obtaining apparatus is further provided in the embodiment of the present invention, as shown in fig. 11, for convenience of description, only the parts related to the embodiment of the present invention are shown, and specific technical details are not disclosed, please refer to the method part in the embodiment of the present invention. The terminal may be any terminal device including a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), a Point of Sales (POS), a vehicle-mounted computer, and the like, taking the terminal as the mobile phone as an example:
fig. 11 is a block diagram showing a partial structure of a mobile phone related to a terminal provided in an embodiment of the present invention. Referring to fig. 11, the cellular phone includes: radio Frequency (RF) circuit 510, memory 520, input unit 530, display unit 540, sensor 550, audio circuit 560, wireless fidelity (WiFi) module 570, processor 580, and power supply 590. Those skilled in the art will appreciate that the handset configuration shown in fig. 11 is not intended to be limiting and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
The following specifically describes each component of the mobile phone with reference to fig. 11:
RF circuit 510 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, for processing downlink information of a base station after receiving the downlink information to processor 580; in addition, the data for designing uplink is transmitted to the base station. In general, RF circuit 510 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, RF circuit 510 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), general Packet Radio Service (GPRS), code Division Multiple Access (CDMA), wideband Code Division Multiple Access (WCDMA), long Term Evolution (LTE), email, short Messaging Service (SMS), and the like.
The memory 520 may be used to store software programs and modules, and the processor 580 executes various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 520. The memory 520 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, etc. Further, memory 520 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 530 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 530 may include a touch panel 531 and other input devices 532. The touch panel 531, also called a touch screen, can collect touch operations of a user (such as operations of the user on the touch panel 531 or near the touch panel 531 by using a finger, a stylus pen or any other suitable object or accessory) thereon or nearby, and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 531 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, and sends the touch point coordinates to the processor 580, and can receive and execute commands sent by the processor 580. In addition, the touch panel 531 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 530 may include other input devices 532 in addition to the touch panel 531. In particular, other input devices 532 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 540 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The Display unit 540 may include a Display panel 541, and optionally, the Display panel 541 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 531 may cover the display panel 541, and when the touch panel 531 detects a touch operation on or near the touch panel 531, the touch panel is transmitted to the processor 580 to determine the type of the touch event, and then the processor 580 provides a corresponding visual output on the display panel 541 according to the type of the touch event. Although the touch panel 531 and the display panel 541 are shown as two separate components in fig. 11 to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 531 and the display panel 541 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 550, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 541 according to the brightness of ambient light, and the proximity sensor may turn off the display panel 541 and/or the backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the gesture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 560, speaker 561, and microphone 562 may provide an audio interface between a user and a cell phone. The audio circuit 560 may transmit the electrical signal converted from the received audio data to the speaker 561, and convert the electrical signal into a sound signal by the speaker 561 for output; on the other hand, the microphone 562 converts the collected sound signals into electrical signals, which are received by the audio circuit 560 and converted into audio data, which are then processed by the audio data output processor 580, and then passed through the RF circuit 510 to be sent to, for example, another cellular phone, or output to the memory 520 for further processing.
WiFi belongs to short distance wireless transmission technology, and the mobile phone can help the user to send and receive e-mail, browse web pages, access streaming media, etc. through the WiFi module 570, which provides wireless broadband internet access for the user. Although fig. 11 shows the WiFi module 570, it is understood that it does not belong to the essential constitution of the handset, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 580 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 520 and calling data stored in the memory 520, thereby performing overall monitoring of the mobile phone. Alternatively, processor 580 may include one or more processing units; optionally, the processor 580 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 580.
The handset also includes a power supply 590 (e.g., a battery) for powering the various components, which may optionally be logically connected to the processor 580 via a power management system, such that the power management system may be used to manage charging, discharging, and power consumption.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which will not be described herein.
In the embodiment of the present invention, the processor 580 included in the terminal further has the following functions:
acquiring HTML5 data of a fifth version of a hypertext markup language of a service;
extracting first conversion information from the HTML5 data;
processing the first conversion information according to a preset isomorphic processing rule to obtain second conversion information, wherein the preset isomorphic processing rule is used for indicating that the first conversion information and the second conversion information have a mapping relation;
and acquiring the native response RN data according to the second conversion information.
Optionally, the processor 580 is specifically configured to perform the following steps:
converting the block-level DIV tag in the DOM information into a first tag;
converting an inline SPAN tag in the DOM information into a second tag;
and determining the second conversion information according to the first tag and the second tag, wherein the second conversion information is target DOM information.
Optionally, the processor 580 is specifically configured to perform the following steps:
and updating the CSS style information into second conversion information by adopting a regular matching rule, wherein the second conversion information is target CSS style information.
Optionally, the processor 580 is specifically configured to perform the following steps:
and updating the CSS style information into the target CSS style information by adopting a hump type naming rule.
Optionally, the processor 580 is specifically configured to perform the following steps:
acquiring a view layer and an event response layer according to the event response information;
nesting the event response layer outside the view layer, and determining second conversion information, wherein the second conversion information is target event response information, and the view layer and the target event response information have a binding relationship.
Optionally, processor 580 is specifically configured to perform the following steps:
acquiring a second object corresponding to the RN data and file information of the first object according to the first object in the public component information;
and writing the file information of the first object into the second object, and determining the second conversion information.
Optionally, the processor 580 is specifically configured to perform the following steps:
acquiring a target protocol according to the communication interface information;
and determining the second conversion information according to the target protocol, wherein the second conversion information is target communication interface information written by the target protocol, and the target communication interface information is used for indicating a communication mode between the RN data and a client.
It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may also be implemented in the form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (15)

1. A method for data format acquisition, comprising:
acquiring HTML5 data of a fifth version of a hypertext markup language of a service;
extracting first conversion information from the HTML5 data;
processing the first conversion information according to a preset isomorphic processing rule and obtaining second conversion information, wherein the preset isomorphic processing rule is used for indicating that the first conversion information and the second conversion information have a mapping relation;
and acquiring the native response RN data according to the second conversion information.
2. The method according to claim 1, wherein the first conversion information is at least one of Document Object Model (DOM) information, cascading Style Sheets (CSS) style information, event response information, common component information, and communication interface information;
wherein the DOM information is used for rendering the HTML5 data;
the CSS style information is used for representing a CSS naming mode of the HTML5 data;
the event response information is used for representing a response event of the HTML5 data;
the public component information is used for monitoring and reporting the application state of the HTML5 data;
the communication interface information is used for indicating a communication mode of the HTML5 data and the client.
3. The method of claim 2, wherein the first transformation information is the DOM information;
the processing the first conversion information according to a preset isomorphic processing rule to obtain second conversion information includes:
converting the block-level DIV tag in the DOM information into a first tag;
converting the inline SPAN tag in the DOM information into a second tag;
and determining the second conversion information according to the first tag and the second tag, wherein the second conversion information is target DOM information.
4. The method according to claim 2, wherein the first conversion information is the CSS style information;
the processing the first conversion information according to a preset isomorphic processing rule to obtain second conversion information includes:
and updating the CSS style information into second conversion information by adopting a regular matching rule, wherein the second conversion information is target CSS style information.
5. The method of claim 4, wherein the updating the CSS style information to the second conversion information using a regular matching rule comprises:
and updating the CSS style information into the target CSS style information by adopting a hump type naming rule.
6. The method of claim 2, wherein the first conversion information is the event response information;
the processing the first conversion information according to a preset isomorphic processing rule to obtain second conversion information includes:
acquiring a view layer and an event response layer according to the event response information;
nesting the event response layer outside the view layer, and determining second conversion information, wherein the second conversion information is target event response information, and the view layer and the target event response information have a binding relationship.
7. The method of claim 2, wherein the first translation information is the common component information;
the processing the first conversion information according to a preset isomorphic processing rule to obtain second conversion information includes:
acquiring a second object corresponding to the RN data and file information of the first object according to the first object in the public component information;
and writing the file information of the first object into the second object, and determining the second conversion information.
8. The method of claim 2, wherein the first conversion information is the communication interface information;
the processing the first conversion information according to a preset isomorphic processing rule to obtain second conversion information includes:
acquiring a target protocol according to the communication interface information;
and determining the second conversion information according to the target protocol, wherein the second conversion information is target communication interface information written by the target protocol, and the target communication interface information is used for indicating a communication mode between the RN data and a client.
9. A data format acquisition apparatus, comprising:
the first acquisition module is used for acquiring HTML5 data of a fifth version of the hypertext markup language of the service;
the extraction module is used for extracting first conversion information from the HTML5 data acquired by the first acquisition module;
the processing module is used for processing the first conversion information extracted by the extraction module according to a preset isomorphic processing rule and obtaining second conversion information, wherein the preset isomorphic processing rule is used for indicating that the first conversion information and the second conversion information have a mapping relation;
and the second acquisition module is used for acquiring the native response RN data according to the second conversion information obtained after the processing of the processing module.
10. The apparatus according to claim 9, wherein the first conversion information is at least one of Document Object Model (DOM) information, cascading Style Sheets (CSS) style information, event response information, common component information, and communication interface information;
wherein the DOM information is used for rendering the HTML5 data;
the CSS style information is used for representing a CSS naming mode of the HTML5 data;
the event response information is used for representing a response event of the HTML5 data;
the public component information is used for monitoring and reporting the application state of the HTML5 data;
the communication interface information is used for indicating a communication mode of the HTML5 data and the client.
11. The apparatus of claim 10, wherein the first transformation information is the DOM information;
the processing module comprises:
the first conversion unit is used for converting the block-level DIV tags in the DOM information into first tags;
the second conversion unit is used for converting the inline SPAN tag in the DOM information into a second tag;
and the first determining unit is used for determining the second conversion information according to the first label obtained by conversion by the first converting unit and the second label obtained by conversion by the second converting unit, wherein the second conversion information is target DOM information.
12. The apparatus of claim 10, wherein the first conversion information is the CSS style information;
the processing module comprises:
and an updating unit, configured to update the CSS style information to the second conversion information by using a regular matching rule, where the second conversion information is target CSS style information.
13. The apparatus of claim 12, wherein the updating unit comprises:
and the updating subunit is used for updating the CSS style information into the target CSS style information by adopting a hump type naming rule.
14. The apparatus of claim 10, wherein the first conversion information is the event response information;
the processing module comprises:
the first acquisition unit is used for acquiring a view layer and an event response layer according to the event response information;
a second determining unit, configured to nest the event response layer acquired by the first acquiring unit outside the view layer acquired by the first acquiring unit, and determine second conversion information, where the second conversion information is target event response information, and the view layer and the target event response information have a binding relationship.
15. The apparatus of claim 10, wherein the first translation information is the common component information;
the processing module comprises:
a second obtaining unit, configured to obtain, according to a first object in the common component information, a second object corresponding to the RN data and file information of the first object;
and a third determining unit configured to write the file information of the first object acquired by the second acquiring unit into the second object, and determine the second conversion information.
CN201710178164.7A 2017-03-23 2017-03-23 Data format obtaining method and related device Active CN108628900B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710178164.7A CN108628900B (en) 2017-03-23 2017-03-23 Data format obtaining method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710178164.7A CN108628900B (en) 2017-03-23 2017-03-23 Data format obtaining method and related device

Publications (2)

Publication Number Publication Date
CN108628900A CN108628900A (en) 2018-10-09
CN108628900B true CN108628900B (en) 2022-11-11

Family

ID=63707430

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710178164.7A Active CN108628900B (en) 2017-03-23 2017-03-23 Data format obtaining method and related device

Country Status (1)

Country Link
CN (1) CN108628900B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109799988B (en) * 2018-12-13 2022-03-15 深圳壹账通智能科技有限公司 iOS page layout method, terminal device and computer readable storage medium
CN111580812B (en) * 2019-02-18 2023-07-21 阿里巴巴集团控股有限公司 Data visualization component communication method, system, electronic device and storage medium
CN113157276A (en) * 2021-04-09 2021-07-23 北京沃东天骏信息技术有限公司 Layout file conversion method, device, electronic equipment and computer readable medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005098665A1 (en) * 2004-04-08 2005-10-20 Justsystems Corporation Apparatus for processing documents that use a mark up language
WO2006137530A1 (en) * 2005-06-24 2006-12-28 Justsystems Corporation Document processing apparatus
CN102469065A (en) * 2010-11-02 2012-05-23 腾讯科技(深圳)有限公司 Method and system for interacting data with hypertext markup language (HTML)5 browser
CN102868712A (en) * 2011-07-06 2013-01-09 阿里巴巴集团控股有限公司 Method and system for data transmission
CN103294416A (en) * 2012-02-01 2013-09-11 株式会社理光 Information processing apparatus, information processing system, and data conversion method
CN103853806A (en) * 2013-09-26 2014-06-11 深圳海联讯科技股份有限公司 Method and device for converting table
WO2015058516A1 (en) * 2013-10-22 2015-04-30 Tencent Technology (Shenzhen) Company Limited Data processing method, apparatus and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4846832B2 (en) * 2009-08-07 2011-12-28 株式会社日立製作所 Web page display method, computer system, and program

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005098665A1 (en) * 2004-04-08 2005-10-20 Justsystems Corporation Apparatus for processing documents that use a mark up language
WO2006137530A1 (en) * 2005-06-24 2006-12-28 Justsystems Corporation Document processing apparatus
CN102469065A (en) * 2010-11-02 2012-05-23 腾讯科技(深圳)有限公司 Method and system for interacting data with hypertext markup language (HTML)5 browser
CN102868712A (en) * 2011-07-06 2013-01-09 阿里巴巴集团控股有限公司 Method and system for data transmission
CN103294416A (en) * 2012-02-01 2013-09-11 株式会社理光 Information processing apparatus, information processing system, and data conversion method
CN103853806A (en) * 2013-09-26 2014-06-11 深圳海联讯科技股份有限公司 Method and device for converting table
WO2015058516A1 (en) * 2013-10-22 2015-04-30 Tencent Technology (Shenzhen) Company Limited Data processing method, apparatus and system

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
[转] 三步将你的 React Native 项目运行在 Web 浏览器上面;weixin_34393428转载;《https://blog.csdn.net/weixin_34393428/article/details/93693737?》;20160321;全文 *
一种基于ReactNative的代码压缩与动态加载的实现方法;金昱东;《软件》;20160229;第81-84页 *
基于移动开发现状探讨React Native;严新巧;《电脑知识与技术》;20161130;第76-77+82页 *
基于语义DOM的WEB信息抽取;莫卓颖;《中国优秀硕士学位论文全文数据库 信息科技辑》;20121015;I138-3137 *

Also Published As

Publication number Publication date
CN108628900A (en) 2018-10-09

Similar Documents

Publication Publication Date Title
CN107632826B (en) Compiling method of source code and client
CN106168978B (en) Method and device for processing popup in webpage
JP6203401B2 (en) Two-dimensional code recognition method and apparatus
CN106970790B (en) Application program creating method, related equipment and system
CN106775637B (en) Page display method and device for application program
CN102123195A (en) Apparatus and method for providing bookmark service in communication terminal
CN103455582A (en) Display method of navigation page of browser and mobile terminal
CN109656510B (en) Method and terminal for voice input in webpage
CN106295353B (en) Engine vulnerability detection method and detection device
CN103702297A (en) Short message enhancement method, device and system
CN108628900B (en) Data format obtaining method and related device
CN104281568B (en) Paraphrasing display method and paraphrasing display device
CN103262020A (en) Virtual input/output device for printers
CN104216929A (en) Method and device for intercepting page elements
CN104516886A (en) Method, mobile terminal and server for displaying data analysis result
CN104978183A (en) Icon construction method, and terminal equipment
CN111580815A (en) Editing method of page elements and related equipment
CN110378107A (en) A kind of method and relevant apparatus of installation kit detection
CN108052356A (en) A kind of method and terminal device for starting calculator
CN106202422B (en) The treating method and apparatus of Web page icon
CN105740242A (en) Information search device and method based on two-dimension code, and mobile terminal
CN101778362A (en) Method, equipment and system for monitoring data of mobile terminal
CN116644716A (en) Method, device, equipment and storage medium for formatting ppt document
CN106230919B (en) File uploading method and device
CN110928539B (en) Code engineering generation method and device, electronic equipment and 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