我有一个与自定义参数相关的问题 [英] i have a question related to customized parameter

查看:76
本文介绍了我有一个与自定义参数相关的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在.html中有这个代码



i have this code in .html

<tr data-index='{{index}}'>
         <td> {{firstName}} </td>
         <td>{{lastName}} </td>
         <td><button type=\"button\"   class=\"btn btn-info viewuser\">View User </button></td>
     </tr>







我需要渲染一个表每个raw都有自定义参数,比如

data-index = 1

data-index = 2



i需要一篇文章或教程来阅读有关自定义参数的更多信息,以及如何使用它们




where i have to render a table each raw has customized parameter like
data-index=1
data-index=2

i need an article or tutorial to read more about custom parameter , and how to use them

推荐答案

您可以在这里更多地阅读HTML5 data- *属性: -



- jQuery.data()jQuery API文档 [ ^ ]

- .data()jQuery API文档 [ ^ ]



希望它有所帮助!
You can read about HTML5 data-* attributes more here:-

- jQuery.data() jQuery API Documentation[^]
- .data() jQuery API Documentation[^]

Hope it helps!


这篇关于我有一个与自定义参数相关的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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