cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <!-- 宣言的レンダリング -->
<!-- テキスト -->
<div id="app">
  {{ message }}
</div>
<hr>
<!-- 属性 -->
<div id="app-2">
  <span v-bind:title="message">
    Hover your mouse over me for a few seconds
    to see my dynamically bound title!
  </span>
</div>
<hr>
<!-- 条件とループ -->
<!-- 条件 -->
<div id="app-3">
  <p v-if="seen">Now you see me</p>
</div>
<hr>
<!-- ループ -->
<div id="app-4">
  <ol>
    <li v-for="todo in todos">
      {{ todo.text }}
    </li>
  </ol>
</div>
<hr>
<!-- ユーザー入力の制御 -->
<div id="app-5">
  <p>{{ message }}</p>
  <button v-on:click="reverseMessage">Reverse Message</button>
</div>
<hr>
<div id="app-6">
  <p>{{ message }}</p>
  <input v-model="message">
</div>
            
          
!
            
              //-- 宣言的レンダリング --
//-- テキスト --
var app = new Vue({
  el: '#app',
  data: {
    message: 'Hello Vue!'
  }
})
//-- 属性 --
var app2 = new Vue({
  el: '#app-2',
  data: {
    message: 'You loaded this page on ' + new Date()
  }
})

//-- 条件とループ --
//-- 条件 --
var app3 = new Vue({
  el: '#app-3',
  data: {
    seen: true
  }
})
//-- ループ --
var app4 = new Vue({
  el: '#app-4',
  data: {
    todos: [
      { text: 'Learn JavaScript' },
      { text: 'Learn Vue' },
      { text: 'Build something awesome' },
    ]
  }
})


//-- ユーザー入力の制御 --
var app5 = new Vue({
  el: '#app-5',
  data: {
    message: '逆さ文字になるよ'
  },
  methods: {
    reverseMessage: function () {
      this.message = this.message.split('').reverse().join('')
    }
  }
})

var app6 = new Vue({
  el: '#app-6',
  data: {
    message: 'Hello Vue!'
  }
})
            
          
!
999px
Loading ..................

Console