如何在下面的代码中获取方法中的值row.question_id
和值?我正在使用 Vue.js v2。option.AnswerMasterID
selectChange
<div v-if="row.answer_input_type === 'Dropdown'">
<template v-for="answer in answers">
<template v-if="answer.AnswerTypeID === row.answer_type_id">
<select class="dropdown_cl" v-bind:disabled="row.is_enabled == 1 ? false : true" @change="selectChange(row.question_id, answer.AnswerDescription)">
<option v-for="option in answer.AnswerDescription" v-bind:value="option.AnswerMasterID" >{{option.AnswerDescription}}</option>
</select>
<p v-for="option in answer.AnswerDescription">{{option.AnswerMasterID}}</p>
</template>
</template>
</div>
我的方法如下:
selectChange: function (question_id, ans_master_id) {
alert(question_id + " " + ans_master_id)
},
我想获取其值option.AnswerMasterID
在内部循环中。