{"id":13958,"date":"2025-11-06T10:00:00","date_gmt":"2025-11-06T01:00:00","guid":{"rendered":"https:\/\/www.gigas-jp.com\/appnews\/?p=13958"},"modified":"2025-11-05T20:04:43","modified_gmt":"2025-11-05T11:04:43","slug":"vue-js%e3%81%ae%e5%9f%ba%e6%9c%ac-1","status":"publish","type":"post","link":"https:\/\/www.gigas-jp.com\/appnews\/archives\/13958","title":{"rendered":"Vue.js\u306e\u57fa\u672c #1"},"content":{"rendered":"\n<p>\u4eca\u56de\u306fJavaScript\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306eVue.js\u306e\u57fa\u672c\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<br>Vue.js\u306f\u3001HTML\u306b\u52d5\u304d\u3092\u3064\u3051\u305f\u308a\u3001\u30e6\u30fc\u30b6\u30fc\u64cd\u4f5c\u306b\u5fdc\u3058\u3066\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306b\u753b\u9762\u3092\u66f4\u65b0\u3057\u305f\u308a\u3059\u308b\u305f\u3081\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3059\u3002<br>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Vue.js\u306e\u4e2d\u3067\u3082\u7279\u306b\u3088\u304f\u4f7f\u308f\u308c\u308b \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u69cb\u6587\uff08HTML\u5074\uff09 \u3068 \u30ed\u30b8\u30c3\u30af\uff08JavaScript\u5074\uff09\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3>HTML\u5074\u306e\u57fa\u672c\u69cb\u6587<\/h3>\n\n\n\n<p>Vue\u3067\u306f\u3001HTML\u5185\u306b\u300c\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u300d\u3068\u547c\u3070\u308c\u308b\u7279\u5225\u306a\u5c5e\u6027\u3092\u4f7f\u3063\u3066\u3001\u52d5\u7684\u306a\u52d5\u4f5c\u3092\u5b9f\u73fe\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h4>v-if\uff1a\u6761\u4ef6\u306b\u3088\u3063\u3066\u8981\u7d20\u3092\u8868\u793a\u30fb\u975e\u8868\u793a\u306b\u3059\u308b<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;p v-if=\"isShow\"&gt;\u3053\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u306f\u8868\u793a\u30d5\u30e9\u30b0\u304ctrue\u306e\u3068\u304d\u3060\u3051\u898b\u3048\u307e\u3059\u3002&lt;\/p&gt;<\/code><\/pre>\n\n\n\n<p>v-if \u306f \u6761\u4ef6\u5f0f \u304c true \u306e\u3068\u304d\u3060\u3051\u3001\u305d\u306e\u8981\u7d20\u3092DOM\u306b\u63cf\u753b\u3057\u307e\u3059\u3002<br>v-else \u3084 v-else-if \u3082\u7d44\u307f\u5408\u308f\u305b\u3066\u4f7f\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<h4>v-for\uff1a\u30ea\u30b9\u30c8\u3092\u7e70\u308a\u8fd4\u3057\u8868\u793a\u3059\u308b<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;ul&gt;\n  &lt;li v-for=\"(item, index) in items\" :key=\"index\"&gt;\n    {{ index + 1 }}: {{ item }}\n  &lt;\/li&gt;\n&lt;\/ul&gt;<\/code><\/pre>\n\n\n\n<p>v-for \u306f\u914d\u5217\u3084\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u30eb\u30fc\u30d7\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h4>v-model\uff1a\u53cc\u65b9\u5411\u30c7\u30fc\u30bf\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;input v-model=\"message\" placeholder=\"\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u5165\u529b\"&gt;\n&lt;p&gt;\u5165\u529b\u4e2d\u306e\u5185\u5bb9\uff1a{{ message }}&lt;\/p&gt;<\/code><\/pre>\n\n\n\n<p>v-model \u306f \u5165\u529b\u30d5\u30a9\u30fc\u30e0\u306e\u5024\u3068\u30c7\u30fc\u30bf\u3092\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u540c\u671f \u3057\u307e\u3059\u3002<br>\u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u3001\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u3001\u30bb\u30ec\u30af\u30c8\u30dc\u30c3\u30af\u30b9\u306a\u3069\u306b\u4f7f\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<h4>@input\uff1a\u5165\u529b\u30a4\u30d9\u30f3\u30c8\u3092\u691c\u77e5\u3059\u308b<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;input @input=\"onInputChange\" placeholder=\"\u6587\u5b57\u3092\u5165\u529b\"&gt;<\/code><\/pre>\n\n\n\n<p>@input \u306f\u30d5\u30a9\u30fc\u30e0\u5165\u529b\u306e\u305f\u3073\u306b\u30a4\u30d9\u30f3\u30c8\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h4>@click\uff1a\u30af\u30ea\u30c3\u30af\u30a4\u30d9\u30f3\u30c8\u3092\u5b9f\u884c\u3059\u308b<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;button @click=\"count++\"&gt;\u30af\u30ea\u30c3\u30af\u56de\u6570\uff1a{{ count }}&lt;\/button&gt;<\/code><\/pre>\n\n\n\n<p>@click \u306f\u30af\u30ea\u30c3\u30af\u6642\u306e\u51e6\u7406\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002<br>\u4e0a\u306e\u4f8b\u3067\u306f\u3001\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u305f\u3073\u306b count \u306e\u5024\u304c1\u305a\u3064\u5897\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u6b21\u56de\u306fJavaScript\u306e\u57fa\u672c\u69cb\u9020\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u6728\u66dc\u65e5\u62c5\u5f53\uff1anishida<\/p>\n<div class='wp_social_bookmarking_light'>\n            <div class=\"wsbl_google_plus_one\"><g:plusone size=\"medium\" annotation=\"none\" href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/13958\" ><\/g:plusone><\/div>\n            <div class=\"wsbl_hatena_button\"><a href=\"\/\/b.hatena.ne.jp\/entry\/https:\/\/www.gigas-jp.com\/appnews\/archives\/13958\" class=\"hatena-bookmark-button\" data-hatena-bookmark-title=\"Vue.js\u306e\u57fa\u672c #1\" data-hatena-bookmark-layout=\"standard\" title=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\"> <img src=\"\/\/b.hatena.ne.jp\/images\/entry-button\/button-only@2x.png\" alt=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\" width=\"20\" height=\"20\" style=\"border: none;\" \/><\/a><script type=\"text\/javascript\" src=\"\/\/b.hatena.ne.jp\/js\/bookmark_button.js\" charset=\"utf-8\" async=\"async\"><\/script><\/div>\n            <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/13958\" data-text=\"Vue.js\u306e\u57fa\u672c #1\" data-via=\"GIGASJAPAN_APPS\" data-lang=\"ja\">Tweet<\/a><\/div>\n            <div class=\"wsbl_facebook_like\"><div id=\"fb-root\"><\/div><fb:like href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/13958\" layout=\"button_count\" action=\"like\" width=\"100\" share=\"false\" show_faces=\"false\" ><\/fb:like><\/div>\n            <div class=\"wsbl_facebook_send\"><div id=\"fb-root\"><\/div><fb:send href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/13958\" colorscheme=\"light\" ><\/fb:send><\/div>\n    <\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u56de\u306fJavaScript\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306eVue.js\u306e\u57fa\u672c\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002Vue.js\u306f\u3001HTML\u306b\u52d5\u304d\u3092\u3064\u3051\u305f\u308a\u3001\u30e6\u30fc\u30b6\u30fc\u64cd\u4f5c\u306b\u5fdc\u3058\u3066\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306b\u753b\u9762\u3092\u66f4\u65b0\u3057\u305f\u308a\u3059\u308b\u305f\u3081\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Vu [&hellip;]<\/p>\n","protected":false},"author":16,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[100],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/13958"}],"collection":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/comments?post=13958"}],"version-history":[{"count":9,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/13958\/revisions"}],"predecessor-version":[{"id":13971,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/13958\/revisions\/13971"}],"wp:attachment":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/media?parent=13958"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/categories?post=13958"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/tags?post=13958"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}