阅读背景:

jQuery attr()方法来创建数据dash属性

来源:互联网 

I'm trying to figure out why when adding a data-attribute to (Let's say an image) requires the attribute name to be put into quotes. I know that it needs to be done, but if a student asked me I wouldn't have the exact answer why. So take the two examples below. I'm trying to figure out why when adding a data




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: