The function in @click(function()) in vue accepts the value returned from data

The function in @click (function ()) in vue accepts the value returned from data The function in @click(function()) in vue accepts the value returned from data V U E in @ C L I C K ( F U n- C T I O n- ( ) ) in F U n- C T I O n- contact by coming from D A T A are returned back to the value

@click="Video(dataset.introduction_video_url)"
  <el-col :span="8">
    <div class="content">
        <h1 style="font-size:35px" >{
    
    {
    
    dataset.name}}</h1>
        <br>
        {
    
    {
    
    dataset.introduction}}
    </div>
  </el-col>
</el-row>
<br>
<br>
<!-- 2.各类按钮 -->
<el-row :gutter="20">
  <el-col :span="5"  :offset="2"><el-button type="primary" @click="Download(dataset.download_url)">数据集下载</el-button></el-col>
  <el-col :span="5"><el-button type="primary" @click="Evaluate">评测</el-button></el-col>
  <el-col :span="5"><el-button type="primary" @click="Video(dataset.introduction_video_url)">视频讲解</el-button></el-col>
  <el-col :span="5"><el-button type="primary" @click="Donate">贡献同类数据集</el-button></el-col>
</el-row>

Insert picture description here
Insert picture description here

Guess you like

Origin blog.csdn.net/qq_41375318/article/details/115281731