这是什么意思:data-component-bound =" true&quot ;? [英] What does this mean: data-component-bound="true"?

查看:232
本文介绍了这是什么意思:data-component-bound =" true&quot ;?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

data-component-bound =true是什么意思?

What does data-component-bound="true" mean?

我在折叠的元素中找到了这个,但是调整值不会做任何事情。我试图在Stack Overflow和Google上查找属性data-component-bound,但它指向一组有限的各种jquery文章,这些文章在我的头上,并且是理所当然的。

I've found this within a collapsed element but adjusting the value doesn't do anything. I've tried looking for the attribute "data-component-bound" on Stack Overflow and on Google but it points to a limited set of various jquery articles which are over my head and which take it for granted.

啊,我现在看到我应该一直在搜索数据来解决这个问题。在这种情况下,我发现这篇有用的文章可以帮助下一个人: http:// www.sitepoint.com/use-html5-data-attributes/

Ahh, I see now that i should have been searching for "data-" to solve this. In so doing, I found this useful article which could help the next person: http://www.sitepoint.com/use-html5-data-attributes/

推荐答案

数据 - 属性是可扩展的:代码的作者可以组成他们喜欢的任何数据属性。在这种情况下,从一个快速的看,似乎它被用于网站的内部工作,知道组件(即DOM元素)何时绑定的东西 - 事件,交互等。

data- attributes are extensible: the author of the code can make up any data attribute they like. In this case, from a quick look, it seems it is used for the internal workings of websites to know when the 'component' (i.e. DOM element) is 'bound' to something - an event, an interaction, etc.

通常, data - 属性用于:data。它们存储任何数据,因此通常用于替换否则将在验证程序中标记的非标准属性。

In general, data- attributes are used for that: data. They store any data, so are often used to substitute non-standard attributes that would otherwise flag up in a validator.

这篇关于这是什么意思:data-component-bound =" true&quot ;?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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