Below I will share with you an angularJs table addition, deletion and modification query method. It has a good reference value and I hope it will be helpful to everyone.
looks like this:
Title
Id | 用户名 | 密码 | 年龄 | 性别 | 操作 |
---|---|---|---|---|---|
{{$index+1}} | {{item.name}} | {{item.password}} | {{item.age}} | {{item.sex}} |
用户名:
密 码:
年 龄:
性 别:
用户名:
旧密码:
新密码:
确认密码:
css
*{ margin: 0; padding: 0; } .inner{ margin: 20px auto; text-align: center; } table{ margin: 10px auto; text-align: center; } tr{ border-collapse: collapse; } tr th,td{ border:1px solid #000000; width: 60px; } .conner{ width: 600px; height: 300px; background: #ffe7e0; margin: 0 auto; } .add{ margin: 10px auto; padding-top: 20px; width: 260px; height: 120px; border: 2px solid #e42112; } .update{ width: 280px; height: 120px; border: 2px solid #e42112; text-align: center; margin: 10px auto; padding-top: 20px; }
above I compiled it for everyone. I hope it will be helpful to everyone in the future.
Related articles:
How to download images in node.js
How to use eventBus in vue to implement sibling components Communication
How to implement a custom pie chart (Echarts) component in vue2.0
The above is the detailed content of How to add, delete, modify query methods through tables in angularJs. For more information, please follow other related articles on the PHP Chinese website!