1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

vue.js 勉強

1
Posted at

vue.jsでID:NAMEの格納データを箇条書きで一覧表示させる方法
(csvデータを一覧表示させたい場合はどうしたら良いんだろう?)

<ul id="example">
    <li v-for="item in items">
        {{ item.id }} - {{item.name }}
    </li>
</ul>

<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>

<script>
    var example = new Vue({
        el: '#example',
        data: {
            items: [
                {
                    "id": 1,
                    "name": "あああああ"
                },
                {
                    "id": 2,
                    "name": "いいいいい"
                }
            ]
        }
    })
</script>
1
1
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?