Unlock instant, AI-driven research and patent intelligence for your innovation.

Method for binding data to HTML webpage element

A technology for HTML webpages and elements, which is applied in the field of binding data and HTML webpage elements. It can solve problems such as global variable naming conflicts, troublesome webpage programming, and the inability to intuitively reflect the relationship between data and HTML webpage element objects, so as to avoid naming conflicts. Effect

Pending Publication Date: 2018-08-14
KOAL SOFTWARE CO LTD
View PDF1 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If global variables are directly used to record these information in JavaScript, the following problems will arise: 1. The relationship between data and HTML web page element objects cannot be intuitively reflected; 2. Global variables may have naming conflicts, which may cause unnecessary inconvenience to web page programming. trouble

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for binding data to HTML webpage element

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0017] In order to make the technical means, creative features, goals and effects achieved by the present invention easy to understand, the present invention will be further described below in conjunction with specific illustrations.

[0018] see figure 1 , shown in the figure is a method for binding data with HTML webpage elements of the present invention, comprising the following steps:

[0019] Step S1, creating an object for storing data when the HTML web page is initialized;

[0020] Step S2, generating a random character string as an identification character string, which is composed of a fixed character string and randomly generated random numbers;

[0021] Step S3, writing the generated identification string into the attribute of the HTML webpage element, so that the identification string is bound to the HTML webpage element. Specifically, writing the generated identification string into the attribute of the HTML webpage element refers to adding an additional attribu...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention discloses a method for binding data to an HTML webpage element. The method comprises the following steps: step S1, creating an object for storing data when the HTML webpage is initialized; step S2, generating a random character string as an identifier character string; step S3, writing the generated identifier character string into an attribute of the HTML webpage element, sothat the identifier character string is bound to the HTML webpage element; and step S4, taking the identifier character string as an index, and adding the to-be-bound data to the object. The method disclosed by the present invention has the beneficial effects that: the data is bound to the HTML webpage element, so that not only the relationship between the data and the HTML webpage element can bereflected, but also the problem of naming conflicts can be avoided.

Description

technical field [0001] The invention relates to the technical field of HTML web page design, in particular to a method for binding data with HTML web page elements. Background technique [0002] At present, the JavaScript in the HTML webpage operates very frequently on the HTML webpage. Some data are very closely related to the elements of HTML web pages in terms of business logic. Although the elements of the HTML web page can bind some information through custom attributes, the information is simple character information. If global variables are directly used to record these information in JavaScript, the following problems will arise: 1. The relationship between data and HTML web page element objects cannot be intuitively reflected; 2. Global variables may have naming conflicts, which may cause unnecessary inconvenience to web page programming. trouble. For this reason, the applicant has conducted useful explorations and attempts, and has found a solution to the above-...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30
CPCG06F16/986
Inventor 马晓东应哲峰叶寒
Owner KOAL SOFTWARE CO LTD