Data binding method and device, storage medium and equipment

A technology of data binding and attribute data, applied in the network field, can solve problems such as low development efficiency, and achieve the effect of improving development efficiency and reducing code redundancy.

Active Publication Date: 2018-11-20
TENCENT TECH (SHENZHEN) CO LTD
View PDF8 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The embodiment of the present invention provides a data binding method, device, storage medium and equipment, which solves the problem of low development efficiency in related technologies

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
  • Data binding method and device, storage medium and equipment
  • Data binding method and device, storage medium and equipment
  • Data binding method and device, storage medium and equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0051] Before explaining the embodiments of the present invention in detail, some terms involved in the embodiments of the present invention will be explained first.

[0052] Data Binding: It is a general technique for associating providers with consumers and synchronizing their data. Among them, data binding is divided into one-way binding and two-way binding. In the UI field, one-way binding: changes in the data model can change the view in real time, that is, one-way binding is when the update of the data model triggers the update of the view. For example, when the data model is updated with JavaScript code, the view will be automatically updated.

[0053] Two-way binding: changes in the view can change the data model in real time,...

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 invention discloses a data binding method and device, a storage medium and equipment, belonging to the technical field of network. The method includes the steps of obtaining at least one monitoredobject of the first software component, wherein the first software component is a view or a data model, and the monitored object is a data parameter of the view element or the data model; determiningthe condition that at least one monitored object is associated with the same function, and binding the at least one monitored object to the same monitored object; determining that the monitored object whose attribute data is updated exists in the at least one monitored object, and sending a notification message to the monitored object, wherein the notification message carries the updated attribute data; and invoking the monitored object to synchronously update a second software component logically associated with the first software component based on the updated attribute data. The inventionbinds a plurality of monitored objects to the same monitored object, realizes unified monitoring, effectively reduces code redundancy in code realization, and greatly improves development efficiency.

Description

technical field [0001] The present invention relates to the field of network technology, in particular to a data binding method, device, storage medium and equipment. Background technique [0002] Data Binding is a technology that associates providers with consumers and synchronizes their data. In the field of UI (User Interface, user interface), providers and consumers involve views (View) and data models (Model). Taking two-way binding as an example, views and data models are both providers and consumers, namely In two-way binding, changes in the view can change the data model in real time, and changes in the data model can also change the view in real time. [0003] Taking the view change to make the data model change synchronously as an example, when related technologies implement two-way binding in the UI field, it usually monitors the property changes of each monitored object of the view separately, that is, one monitored object binds one monitored object , when the ...

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): G06F9/451
CPCG06F9/451
Inventor 郑钦洪
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products