\r\n\r\n```","answerCount":2,"upvoteCount":0,"datePublished":"2017-02-27T12:25:10.390Z","dateModified":"2017-02-27T12:25:10.390Z","acceptedAnswer":{"@type":"Answer","text":"eachで入れるデータにインデックスを加えておけばいい話でした。","dateModified":"2017-02-27T12:33:45.561Z","datePublished":"2017-02-27T12:33:45.561Z","upvoteCount":0,"url":"https://teratail.com/questions/67369#reply-106543"},"suggestedAnswer":[{"@type":"Answer","text":"すでにクローズ済みですが、`each=\"{item, index in selectVideoArr}\"`のようにすれば、配列の添字も`index`として取得できます([リファレンス](http://riotjs.com/ja/guide/#ループ))。","dateModified":"2017-02-28T01:02:06.473Z","datePublished":"2017-02-28T01:02:06.473Z","upvoteCount":0,"url":"https://teratail.com/questions/67369#reply-106587","comment":[{"@type":"Comment","text":"\r\n上記のように書きましたが、this.iで取得できません。","datePublished":"2017-02-28T02:32:38.122Z","dateModified":"2017-02-28T02:32:38.122Z"},{"@type":"Comment","text":"thisなしの「i」「value」で取ります。","datePublished":"2017-02-28T02:36:13.557Z","dateModified":"2017-02-28T02:36:13.557Z"},{"@type":"Comment","text":"リファレンスだと普通のタグですが、カスタムタグ内でも「i」だけで取得できるんですか?","datePublished":"2017-02-28T02:39:29.153Z","dateModified":"2017-02-28T02:39:29.153Z"},{"@type":"Comment","text":"not defined になりますが\r\nthis.on('mount', function() {\r\n console.log(i)\r\n })","datePublished":"2017-02-28T02:40:57.963Z","dateModified":"2017-02-28T02:40:57.963Z"},{"@type":"Comment","text":"タグの中のJavaScriptからですか…opts.iあたりに来ていませんか?","datePublished":"2017-02-28T02:41:54.655Z","dateModified":"2017-02-28T02:41:54.655Z"},{"@type":"Comment","text":"undefinedになります。","datePublished":"2017-02-28T02:46:11.861Z","dateModified":"2017-02-28T02:46:11.861Z"}]}],"breadcrumb":{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"item":{"@id":"https://teratail.com","name":"トップ"}},{"@type":"ListItem","position":2,"item":{"@id":"https://teratail.com/tags/Riot.js","name":"Riot.jsに関する質問"}},{"@type":"ListItem","position":3,"item":{"@id":"https://teratail.com/questions/67369","name":"【Riot.js】eachした際に何番目のカスタムタグか知りたい"}}]}}}
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
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