クリックした際に何番目のselect-videoタグか知りたい場合どうしてますか?
HTML
1<div id="select-video-wrapper" ref="uploadWrapper"> 2 <select-video each="{ selectVideoArr }"></select-video> 3</div>
HTML
1<select-video> 2 <div class="select-video" ref="test" onclick="{ changeEditVideo }"> 3 <div class="select-video-title">新規編集フォーム</div> 4 </div> 5 <script> 6 this.changeEditVideo = function(e) { 7 console.log(tag.parent.refs.uploadWrapper.index(tag)) 8 } 9 </script> 10</select-video>
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/02/28 02:32
2017/02/28 02:36
2017/02/28 02:39
2017/02/28 02:40
2017/02/28 02:41
2017/02/28 02:46