什么是数据绑定? [英] What is a data binding?

查看:190
本文介绍了什么是数据绑定?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是数据绑定?

解决方案

绑定一般是指一件事与另一件事的映射 - 即数据源演示对象。通常可以将数据库或类似的源(XML文件,Web服务等)的绑定数据引用到桌面软件中的HTML,组合框或数据网格中的表示控件或元素 - 思想列表或表格。



您通常必须将表示元素绑定到数据源,而不是其他方式。这将涉及某种映射 - 即数据源中哪些字段要显示在输出中。



有关几种环境中的更多信息,请参阅: p>


What is a data binding?

解决方案

Binding generally refers to a mapping of one thing to another - i.e. a datasource to a presentation object. It can typically refer to binding data from a database, or similar source (XML file, web service etc) to a presentation control or element - think list or table in HTML, combo box or data grid in desktop software.

You generally have to bind the presentation element to the datasource, not the other way around. This would involve some kind of mapping - i.e. which fields from the datasource do you want to appear in the output.

For more information in a couple of environments see:

这篇关于什么是数据绑定?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆