Home  >  Article  >  Web Front-end  >  vue gets the row id of the table

vue gets the row id of the table

php中世界最好的语言
php中世界最好的语言Original
2018-04-11 15:33:374686browse

This time I will bring you Vue to get the row ID of the table. What are the precautions for Vue to get the row ID of the table? The following is a practical case, let's take a look.

As follows:

1. Write slot-scope="scope"

on the template 2. Then on the tag inside the template, scope.row.id

I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to php Other related articles on the Chinese website!

Recommended reading:

How to deal with the sub-routes not showing in the bottom navigation bar of vue.js

How to reload AngularJS Routing page

How to extend string concatenation in JS


The above is the detailed content of vue gets the row id of the table. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn