Method and system for generating browser page and terminal device
A technology for browser pages and terminal devices, applied in the field of data processing, can solve problems such as increased maintenance costs, inconvenience, and inflexible description methods, and achieve the effects of reducing maintenance costs, saving execution time, and improving execution efficiency.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
example 1
[0062] Example 1: Evaluating expressions using if / else logic
[0063] Adopt the description mode of the inventive method:
[0064]
[0065] The above code is briefly explained as follows: the id of the template is gridCellColumnTemplate, and the type is a template.
[0066]
[0067] If the exist variable in the Json data is true, it will output exist, otherwise it will output empty. For example, if exit is ture, the output content is: otherwise: .
[0068] Using the description of the existing WinJS method:
[0069]
[0070] The above code is briefly explained as follows: id is tplGridBodyCell, data-win-control is the data binding template of WinJS.
[0071]
[0072] The data binding object is className, the binding content is the Json variable exist, and the user callback processing method is: HistoryGridData.getBodyCellExistClass.
[0073] Logical operations also need to be additionally described as:
[0074]
example 2
[0075] Example 2: Using template nesting to describe expressions
[0076] If the main template wants to describe the information of each column in the two-dimensional table, and the sub-template wants to describe the information of the cells in each column, in the example of the present invention, the following association description can be performed by using template nested description expressions:
[0077]
[0078] This example solves the problem that the WinJS template engine cannot describe the associated information of the nested template, and the user does not need to write code to illustrate the associated relationship between the main template and the sub-template.
[0079] In order to clearly illustrate the characteristics of this example, the following is an example if the prior art separation description method is used for description:
[0080] Description of column template:
[0081]
[0082]
[0083] Description of cell templates in col...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com