`
wang_peng1
  • 浏览: 3954650 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

data attribute

    博客分类:
  • JQM
 
阅读更多
 http://html5doctor.com/html5-custom-data-attributes/ http://api.jquery.com/data/

<input type="range" class="mtslide" name="slider1" id="slider1" min="0" max="10" value="0" data-price="20.00" data-id="1">
<input type="range" class="mtslide" name="slider2" id="slider2" min="0" max="10" value="0" data-price="30.00" data-id="2">
<input type="range" class="mtslide" name="slider3" id="slider3" min="0" max="10" value="0"  data-price="50.00" data-id="3">


$('.mtslide').each(function (index, Element) {
    var obj = {
        id:  $(Element).data("price"),
        price: $(Element).data("price"),
        number: $(Element).val()
    };
    arr.push(obj);
});

 

分享到:
评论

相关推荐

    thymeleaf-extras-data-attribute-1.2.zip

    标题中的"thymeleaf-extras-data-attribute-1.2.zip"是一个Thymeleaf扩展库的压缩包,主要用于增强HTML模板中的数据属性处理。Thymeleaf是一款流行的Java模板引擎,它允许开发者在静态HTML中添加逻辑,用于前端和...

    JS无限级菜单

    使用js编写的一个菜单,js代码与html没有分开,阅读时可能稍有困难,需要...//绑定项目结果 PopMenu.DataAttribute = "childs";//子菜单的数据 xx.BindData(json);//绑定数据源 xx.Show();//显示菜单

    JQuery_1.4_API开发手册

    (Bug) Changing an HTML5 data attribute after calling .data(‘foo’) no longer causes .data(‘foo’) to also change (#7223) (Bug) Fixed a bug where Opera didn’t give height/width of display: none ...

    jQuery最新1.4.4精简版+1.4中文手册

    (Bug) Changing an HTML5 data attribute after calling .data(‘foo’) no longer causes .data(‘foo’) to also change (#7223) (Bug) Fixed a bug where Opera didn’t give height/width of display: none ...

    Python Natural Language Processing

    Understand corpus analysis and different types of data attribute. Learn NLP using Python libraries such as NLTK, Polyglot, SpaCy, Standford CoreNLP and so on Learn about Features Extraction and ...

    数据集DATASET介绍实用教案.pptx

    它是一个由数据(DATA)或数据属性(DataAttribute)组成的有序集合,目的是方便客户端(client)操作。在逻辑节点(LOGICAL-NODE)中,数据集扮演着关键角色,它包括了如LOGICAL-NODE类属性名、LNName、LNRef、Data...

    pytorch 单机多GPU训练RNN遇到的问题

    如图示,会出现如AttributeError: ‘DataParallel’ object has no attribute ‘xxx’的错误。 原因:在使用net = torch.nn.DataParallel(net)之后,原来的net会被封装为新的net的module属性里。 解决方案:所有在...

    coredata 存文字图片 增删查

    - 图片通常以二进制数据形式存储,可以定义一个二进制数据属性(Binary Data Attribute),如`imageData`。 - 可以使用`UIImageJPEGRepresentation`或`UIImagePNGRepresentation`将图片转换为二进制数据,然后存储...

    IEC61850 SCL(文件编辑工具)

    每个逻辑节点都有独特的标识(如 LLN0,代表“基本逻辑节点”),并包含一组数据对象(Data Object, DO)和数据属性(Data Attribute, DA)。 2. **数据对象(Data Objects, DO)**:DO 是LN内部的具体测量值或控制...

    开源的lib61850库源码资料

    2. 对象模型(Object Model):根据IEC 61850标准,库定义了逻辑节点(Logical Node)、数据对象(Data Object)和数据属性(Data Attribute),构成了变电站设备的逻辑结构。 3. 服务器和客户端(Server and Client...

    61850模型及报文分析

    数据 DO(Data Object)及数据属性 DA(Data Attribute)是指智能电网中的数据对象和数据属性,用于描述设备的数据信息。数据集是指智能电网中的数据集合,用于描述设备的数据信息。DOI/DIA 是指智能电网中的数据...

    电力IEC61850通讯示例代码.7z

    1. **数据模型**:定义了变电站设备的数据结构和命名规则,如逻辑节点(Logical Node, LN)、数据对象(Data Object, DO)和数据属性(Data Attribute, DA)。这些元素构成了变电站设备的配置信息和实时运行数据。 ...

    iec61850-7-3

    6公共数据属性级别(Common Data Attribute Classes)..............................................................................5 7公共数据级别规范(Common Data Class Specifications)…………………………...

    81850模型建模分析

    每个DO都有一个数据属性(Data Attribute, DA),比如品质(Quality)、时间戳(Timestamp)等。 4. **数据集(DataSet, DS)**:数据集是一组相关的DO,用于同步传输。例如,一个数据集可能包含一组测量值,用于...

    jQuery实现的复选框勾选

    这时,可以使用类选择器(class selector)或者数据属性(data attribute)来操作多个复选框。假设我们有多个类名为"checkbox-group"的复选框: ```javascript $('.checkbox-group').on('change', function() { ...

    html5的data-role的属性

    对于按钮,jQuery Mobile还支持一系列其他相关的`data-*`属性,如`data-icon`用于指定按钮上的图标(例如`home`, `delete`, `plus`等),`data-iconpos`控制图标的定位(如`left`, `right`, `top`, `bottom`等),`...

    NTFS解析工程C++代码

    5. **Data Attribute**:存储实际文件内容。 `build.bat`和`build.sh`可能是构建脚本,分别用于Windows和Unix-like系统的编译指令。在Windows上,可能使用MSVC或MinGW等编译器,而在Linux或MacOS上,可能会用到GCC...

Global site tag (gtag.js) - Google Analytics