ֿ‫כֽ׌׸‬䬃ִׁ‫ְ׋ֶֹג‬7VFKT‫ך‬㛇燉濼陎吳䒭⠓爡)".803,4ꞿ靼䊛䎢娀荈䊹稱➜‫׬׹מ׻ָׇכ‬‫‪ꞿ靼䊛䎢娀‬‬吳䒭⠓爡)".803,4
CJUQBSUさず⠓爡‫يع‬‫ٗؿ‬ٝ‫ؒز‬ٝ‫ؒس‬ٝ‫صآ‬، ‫ةؙٖ؍رٕؕصؙذ‬٦4B$44⚺⪵劤겗IUUQTWVFKTPSH‫״ׅדֽ׌׷ְג‪⡂‬‬5IF1SPHSFTTJWF+BWB4DSJQU'SBNFXPSL‫ؙ‪ٙ٦‬ي‪ٖ٦‬ؿـءحؚٖٗف‬湫鏬‫ל׸ׅ‬鹌娄涸‫ٖؿז‬٦‫ي‬ٙ٦‫ָׅדؙ‬ծ媮ꥡ涸‫ח‬Ꟛ涪罏ָ堣腉‫׾‬鼅䫛‫׷ֹד‬‫ٖؿ‬٦‫ي‬ٙ٦‫ְֲהؙ‬䠐㄂‫ח׫ז׍‬‫ٔٓـ؎ٓ‬‫ؙ‪ٙ٦‬ي‪ٖ٦‬ؿ‬‫ٔٓـ؎ٓ‬‫‪⢽㹺‬‬‫‪⢽㹺ꨵ‬‬‫׷ׅ‪㹋遤‬׾‪̔Ⳣ椚‬‬‫׫‪単穈‬ך׭׋‬‫׾‪堣腉‬ז‪̔害欽涸‬‬‫ך׮׋׭הת‬‫ؙ‪ٙ٦‬ي‪ٖ٦‬ؿ‬‫ٔٓـ؎ٓ‬‫‪⢽㹺‬‬‫‪⢽㹺ꨵ‬‬‫׷ׅ‪㹋遤‬׾‪̔Ⳣ椚‬‬‫׫‪単穈‬ך׭׋‬‫׾‪堣腉‬ז‪̔害欽涸‬‬‫ך׮׋׭הת‬‫‪植䕵‬כד‪植㜥‬ך‪ⵖ⡲‬ز؎؟ـؑؐ ○‬‫‪ⵃ欽〳腉‬דس‪٦‬؝זٕف‪ٝ‬ء ○‬‫‪窫㣐‬כ⻉‪⸬桦‬׷״ח‪؎ٝⵃ欽‬ؚٓف ○‬‫‪ⵃ欽‬ز‪ٖ٦‬ف‪ٝ‬ذכח⸇‪鷄‬ך‪○ %0.‬‬‫؟‬ٝ‫رٕف‬٦‫ة‬const items = [{ title: 'list title01', link: 'entry01.html' },{ title: 'list title02', link: 'entry02.html' },{ title: 'list title03', link: 'entry03.html' },{ title: 'list title04', link: 'entry04.html' }];+BWB4DSJQU‫ذ‬ٝ‫ٖف‬٦‫ز‬劢⢪欽)5.-<button class=“js-show-list">リスト表示</button><ul id=“list"></ul>

https://codepen.io/h2ham/pen/BaBowOV?editors=1010

+BWB4DSJQU‫ذ‬ٝ‫ٖف‬٦‫ز‬劢⢪欽+BWB4DSJQU<script>$('.js-show-list').on('click', function() {$(‘#list').empty();$.each(items, function() {$('#list').append('<li>'+ '<a href="'+ this.link + '">'+ this.title+ '</a>'+ '</li>');});});</script>https://codepen.io/h2ham/pen/BaBowOV?editors=1010

+BWB4DSJQU‫ذ‬ٝ‫ٖف‬٦‫׾ز‬⢪ֲ‫׵ז‬○ IBOEMFCBSTKT‫וז‬

https://handlebars-lang.github.io/docs/

IBOEMFCBSTKTⵃ欽<script id="linklist" type="text/x-handlebars-template">{{#each this}}<li><a href="{{ link }}">{{ title }}</a></li>{{/each}}</script><script>$('.sample-selector').on('click', function() {const source = $("#linklist").html();const template = Handlebars.compile(source);
const html = template(items);$("#list").html(html);});</script>
http://codepen.io/h2ham/pen/yarORd‫׮‪ⵖ⡲‬זֹ‪蕱䩛٥♶ぢ‬‬‫׋ֹג׏זֻ‪㢳‬‬

# 醱꧟‫ז‬堣腉⡲䧭‫♶כח‬ぢֹ# ؐؑ‫ـ‬،‫ⵃךדٔف‬欽‫כ‬銲嗚鎢# HTML‫׷ְגֽאח‬խ+BWB4DSJQU‫؝ך‬٦‫ָس‬䱱‫ְ׵ב׃‬խ䱿庠‫ְ׵ב׃‬‫ؙ‪ٙ٦‬ي‪ٖ٦‬ؿ‬‫ٔٓـ؎ٓ‬‫‪⢽㹺‬‬‫‪⢽㹺ꨵ‬‬‫׷ׅ‪㹋遤‬׾‪̔Ⳣ椚‬‬‫׫‪単穈‬ך׭׋‬‫׾‪堣腉‬ז‪̔害欽涸‬‬‫ך׮׋׭הת‬‫‪Ⳣ椚ָ䖤䠐‬׷ׇׁ‪ず劍‬׾‪邌爙‬הة‪٦‬ر ○‬‫׷ֹדח‪ָ嚂‬׶‪㢌刿ワ‬ך‪○ %0.‬‬‫׷זֻ‪ָ葺‬׃‪○ 鋅鸐‬‬‫׮׶״ؙ‪ٙ٦‬ي‪ٖ٦‬ؿך➭ ○‬‫ְ‪侲㽿ָ⡚‬ךⰅ‪խ㼪‬‬

7VFKT劢⡤꿀‫ח׭׋ך➂ך‬‫‪ֲ‬׳׃ת׫ג׸‪鍗‬ח‪7VFKT‬‬

7VFKT‫ך‬㛇燉‫׫‪鴥‬׫‪铣‬ךٕ؎‪؋‬ؿ‬IUUQTKQWVFKTPSHWHVJEFJOTUBMMBUJPOIUNM)5.-

<script src="vue.js"></script>)5.-<script src="vue.js"></script><script>
new Vue({el: '#id',~})</script>)5.-<script src="vue.js"></script><script>
new Vue({FM‫כ‬FMFNFOU‫ך‬殛el:el '#id',7VFKTָ⡲欽‫ׅר⿹׾‬眔㔲~})</script>)5.-<div id="app"><p>{{ message }}</p></div><script src="vue.js"></script><script>
new Vue({el: '#app',~})</script>)FMMP8PSME‫ך‬邌爙)FMMP8PSME俑㶵⴨‫ך‬邌爙)5.-

<div id="app"><p>{{ message }}</p></div>

+BWB4DSJQU

new Vue({el: '#app',data: {message: 'Hello World!'}})IUUQTDPEFQFOJPIIBNQFO&RS7/X FEJUPST)FMMP8PSME邌爙‫ךزأؗذ‬㾜Ꟛ)5.-

<div id="app"><p>{{ message }}</p></div>

)5.-<div id="app">.VTUBDIF圓俑
<p>{{{{ message }}</p>}}✳ꅾ⚥䭍䓜</div>)5.-<div id="app">.VTUBDIF圓俑
<p>{{{{ message }}</p>}}✳ꅾ⚥䭍䓜</div>

message: 'Hello World!'‫ـ؍ذؙ‪ٔ،‬‬)5.-

<div id="app"><p>{{{{ message }}</p>}}</div>

message: 'Hello World!')5.-

<div id="app"><p>{{{{ message }}</p>}}</div>

message: 'Change (´ ºムº `)'+BWB4DSJQU

const vm = new Vue({el: '#app',data: {message: 'Hello World!'}})
vm.message = 'Change The World!';IUUQTDPEFQFOJPIIBNQFOZ-#:[XN FEJUPSTIUUQTDPEFQFOJPIIBNQFOZ-#:[XN FEJUPSTIUUQTDPEFQFOJPIIBNQFOZ-#:[XN FEJUPST‫ـ؍ذؙ‪ٔ،‬‬‫ה׷ׅ‪㢌刿‬׾‪EBUB‬זـ؍ذؙ‪ٔ،‬‬‫׷׻‪㢌‬׮‪邌爙7JFX‬‬‫ـ؍ذؙٖ؍ر‬WYYY‫ـ؍ذؙٖ؍ر‬)5.-⩎‫ח‬剅ֻ
7VFKT‫ך‬圓䧭銲稆WYYY勴⟝ⴓ䀄‫ךד‬邌爙)5.-

<div id="app"><h1 v-if="isOk">条件分岐v-if OK</h1><h1 v-if="isNo">条件分岐v-if NO</h1></div>

+BWB4DSJQU

const vm = new Vue({el: '#app',data: {isOk: true,isNo: false}})IUUQTDPEFQFOJPIIBNQFOSS8;;B FEJUPSTٕ٦‫ف‬㾩䚍)5.-

<div id="app"><h1>v-for サンプル</h1><ul><li v-for="item in items"><a v-bind:href="item.link">{{ item.title }}
</a>
</li>
</ul>
</div>

+BWB4DSJQU

const vm = new Vue({el: '#app',data: {items: [{ title: 'サンプルリストタイトル01', link: 'sample01.html' },{ title: 'サンプルリストタイトル02', link: 'sample02.html' },{ title: 'サンプルリストタイトル03', link: 'sample03.html' },{ title: 'サンプルリストタイトル04', link: 'sample04.html' }]}})IUUQTDPEFQFOJPIIBNQFO&Q/013 FEJUPST‫ز‪ٝ‬ك؎‬)5.-

<div id="app"><h1>v-on サンプル</h1><ul><li v-for="item in items"><a v-bind:href="item.link">{{ item.title }}</a><button v-on:click="removeItem(item)">×</button>
</li>
</ul>
</div>

+BWB4DSJQU

const vm = new Vue({el: '#app',
data: {
items: [{ title: 'サンプルリストタイトル01', link: 'sample01.html' },~省略~]},
methods: {removeItem: function(item){this.items.splice(this.items.indexOf(item), 1);}}})IUUQTDPEFQFOJPIIBNQFOF:0QB.B FEJUPST‫ؚ‪ٝ‬؍ر‪؎ٝ‬غ‪⿽倯ぢ‬‬)5.-

<div id="app"><p>{{ message }}</p><input v-model="message"></div>

+BWB4DSJQU

const vm = new Vue({el: '#app',data: {message: 'Hello (´ ºムº `)!'}});IUUQTDPEFQFOJPIIBNQFONECF;K2 FEJUPST‫ز‪ٝ‬ط‪٦‬ه‪ٝ‬؝‬)5.-

<div id="app"><button-counter></button-counter></div>

+BWB4DSJQU

Vue.component('button-counter',{data: function(){return { count: 0 }},template:`<button v-on:click="count++">{{ count }}</button>`});
const vm = new Vue({el: '#app'});IUUQTDPEFQFOJPIIBNQFOF:0+H[/ FEJUPST)5.-

<div id="app"><button-counter></button-counter><button-counter></button-counter><button-counter></button-counter></div>IUUQTDPEFQFOJPIIBNQFOC(C&H#0 FEJUPST‫ٕ‪ٔ،‬ز‪ُ٦‬ث‬

IUUQTXXXWVFNBTUFSZDPNDPVSTFTJOUSPUPWVFKTWVFJOTUBODFIUUQTXXXZPVUVCFDPNVTFSUPNPTUBKQIUUQTXXXZPVUVCFDPNXBUDI WD-"MN-&MJTU1-I7@GCCP4;:))#7'TU6UQE%;."8‫׭הת‬‫ְזכד‪䗳갭‬כדز؎؟ـؑؐ ○‬‫ְ׋ֶֹג׏‪䭯‬כ‪濼陎‬ךַך׷ֹדָ‪○ ⡦‬‬‫ֹ‪堣腉ぢ‬ךד‪⽃⡘‬ز‪ٝ‬ط‪٦‬ه‪ٝ‬؝ ○‬‫׮׶״ؙ‪ٙ٦‬ي‪ٖ٦‬ؿך➭ ○‬‫ְ‪侲㽿ָ⡚‬ךⰅ‪խ㼪‬‬%&.0‫׋׃תְׂ׀ֲהָ׶֮‪幠耮‬׀‬