{"id":8641,"date":"2021-02-22T07:00:56","date_gmt":"2021-02-21T22:00:56","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=8641"},"modified":"2021-07-28T01:33:04","modified_gmt":"2021-07-27T16:33:04","slug":"vue-%e3%81%a7%e3%83%9a%e3%83%bc%e3%82%b8%e5%86%85%e6%a4%9c%e7%b4%a2%e3%82%92%e3%81%a4%e3%81%8f%e3%82%8b%ef%bc%88%e3%83%87%e3%83%a2%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%82%e3%82%8a%ef%bc%89","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=8641","title":{"rendered":"Vue \u3067\u30da\u30fc\u30b8\u5185\u691c\u7d22 + \u81ea\u52d5\u30b9\u30af\u30ed\u30fc\u30eb\u6a5f\u80fd\u3092\u3064\u304f\u308b\uff08\u30c7\u30e2\u30da\u30fc\u30b8\u3042\u308a\uff09"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u3053\u3053\u306e\u3068\u3053\u308d<code>Laravel<\/code>\u3092\u30e1\u30a4\u30f3\u3068\u3057\u305f\u8a18\u4e8b\u3070\u304b\u308a\u66f8\u3044\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u305b\u3063\u304b\u304f\u5c11\u3057\u524d\u306b\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u306e<code>3<\/code>\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305f\u306e\u3067\u3001<code>Vue.js<\/code>\u304c\u30e1\u30a4\u30f3\u306e\u8a18\u4e8b\u3082\u66f8\u3044\u3066\u307f\u305f\u304f\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u3068\u3044\u3046\u306e\u3082\u3001\u3068\u3042\u308b\u65b9\u304b\u3089\u300c\u3053\u3093\u306a\u6a5f\u80fd\u3092\u3064\u304f\u3063\u3066\u307f\u305f\u3044\u300d\u3068\u3044\u3046\u304a\u8a71\u3092\u3057\u3066\u3044\u305f\u3060\u304d\u3001\u79c1\u3082\u300c<strong>\u305d\u308c\u306f\u9762\u767d\u305d\u3046<\/strong>\u300d\u3068\u611f\u3058\u305f\u304b\u3089\u306a\u3093\u3067\u3059\u306d\u3002\uff08\u30a2\u30a4\u30c7\u30a2\u3001\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u2757\uff09<\/p>\n<p>\u305d\u3057\u3066\u3001\u305d\u306e\u6a5f\u80fd\u3068\u306f\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><strong style=\"font-size: 35px;\">\u30da\u30fc\u30b8\u5185\u691c\u7d22\ud83d\udd0e<\/strong><\/p>\n<p>\u6a5f\u80fd\u3067\u3059\u3002<\/p>\n<p>\u3082\u3057\u304b\u3059\u308b\u3068\u3001\u300c<strong>\u3044\u3084\u3001\u30da\u30fc\u30b8\u5185\u691c\u7d22\u306a\u3089 Ctrl + f \u3067\u3044\u3051\u308b\u3058\u3083\u3093\u2757<\/strong>\u300d\u3068\u304a\u3063\u3057\u3083\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u305d\u306e\u3068\u304a\u308a\u306a\u3093\u3067\u3059\u3067\u3059\uff01<br \/>\n\u3067\u3082\u3001\u3053\u306e\u6a5f\u80fd\u3059\u3054\u304f\u4fbf\u5229\u306a\u306e\u306b\u77e5\u3089\u306a\u3044\u4eba\u304c\u7d50\u69cb\u591a\u304b\u3063\u305f\u308a\u3059\u308b\u3093\u3067\u3059\u3088\u306d\u3002<\/p>\n<p><strong>\u203b \u3082\u3057\u77e5\u3089\u306a\u3044\u4eba\u306f\u3001\u305c\u3072\u4e00\u5ea6\u4ee5\u4e0b\u306e\u624b\u9806\u3067\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/strong><\/p>\n<ol>\n<li>Ctrl \u3092\u62bc\u3057\u306a\u304c\u3089 f \u3092\u62bc\u3059\uff08mac \u306e\u5834\u5408\u306f command \u3092\u62bc\u3057\u306a\u304c\u3089 f\uff09<\/li>\n<li>\u691c\u7d22\u30dc\u30c3\u30af\u30b9\u304c\u8868\u793a\u3055\u308c\u308b<\/li>\n<li>\u597d\u304d\u306a\u30ad\u30fc\u30ef\u30fc\u30c9\uff08\u4f8b\u3048\u3070\u300cclick\u300d\u306a\u3069\uff09\u3092\u5165\u529b<\/li>\n<\/ol>\n<p>\u3059\u308b\u3068\u3001\u8a72\u5f53\u3059\u308b\u30ad\u30fc\u30ef\u30fc\u30c9\u304c\u30cf\u30a4\u30e9\u30a4\u30c8\u3055\u308c\u3001\u3082\u3057\u8907\u6570\u3042\u308b\u3068\u304d\u306f\u30a8\u30f3\u30bf\u30fc\u30ad\u30fc\u3084<code>F3<\/code>\u3092\u62bc\u3059\u3068\u6b21\u306e\u5834\u6240\u307e\u3067\u81ea\u52d5\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n<p>\u958b\u767a\u3059\u308b\u5834\u5408\u306b\u306f\u691c\u7d22\u3059\u308b\u3053\u3068\u304c\u3068\u3066\u3082\u591a\u3044\u306e\u3067\u3001\u30da\u30fc\u30b8\u5185\u691c\u7d22\u3092\u77e5\u3063\u3066\u3044\u308b\u3068\u958b\u767a\u52b9\u7387\u304c\u3068\u3066\u3082\u3042\u304c\u308b\u3068\u601d\u3044\u307e\u3059\u3088\u2728<\/p>\n<p>\u30fb\u30fb\u30fb\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f\u305d\u3093\u306a\u30c6\u30af\u30cb\u30c3\u30af\u3092\u77e5\u3089\u306a\u304f\u3066\u3082\u300c\u30da\u30fc\u30b8\u5185\u691c\u7d22\u300d\u304c\u3067\u304d\u308b\u3088\u3046\u306a\u6a5f\u80fd\u3092<code>Vue 3<\/code>\u3067\u4f5c\u3063\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305c\u3072\u5b66\u7fd2\u306e\u53c2\u8003\u306b\u306a\u308a\u307e\u3057\u305f\u3089\u5b09\u3057\u3044\u3067\u3059\ud83d\ude0a<br \/>\n\uff08\u6700\u5f8c\u306b\u30c7\u30e2\u30da\u30fc\u30b8\u3001\u305d\u3057\u3066\u4eca\u56de\u5b9f\u969b\u306b\u4f5c\u6210\u3057\u305f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u307e\u3059\u3088\ud83d\udc4d\uff09<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6067 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_19.png\" alt=\"\" width=\"314\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_19.png 314w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_19-294x300.png 294w\" sizes=\"auto, (max-width: 314px) 100vw, 314px\" \/>\u300c<a href=\"https:\/\/twitter.com\/SukohiKuhoh\" target=\"_blank\" rel=\"noopener\">Twitter<\/a>\u306e\u30d5\u30a9\u30ed\u30ef\u30fc\u3055\u3093\u304c<br \/>\n\u3084\u3063\u3068100\u4eba\u3092\u8d85\u3048\u307e\u3057\u305f\u3002<br \/>\n\u7d20\u76f4\u306b\u5b09\u3057\u3044\u3067\u3059\ud83d\ude0a\u300d<\/p>\n<p><strong>\u958b\u767a\u74b0\u5883\uff1a<\/strong> Vue 3.0.5\u3001TailwindCSS 2.0.3<\/p>\n<h1>\u3084\u308a\u305f\u3044\u3053\u3068<\/h1>\n<p>\u4eca\u56de\u958b\u767a\u3059\u308b\u8a73\u7d30\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u5165\u529b\u3057\u305f\u30ad\u30fc\u30ef\u30fc\u30c9\u306e\u80cc\u666f\u3092\u30cf\u30a4\u30e9\u30a4\u30c8\u3059\u308b<\/li>\n<li>\u8a72\u5f53\u4ef6\u6570\u3092\u8868\u793a\u3059\u308b<\/li>\n<li>Enter \u30ad\u30fc\u3001\u6b21\u3078\u30fb\u524d\u3078\u30dc\u30bf\u30f3\u3067\u8a72\u5f53\u4f4d\u7f6e\u3078\u81ea\u52d5\u30b9\u30af\u30ed\u30fc\u30eb<\/li>\n<li>\u8907\u6570\u30d6\u30ed\u30c3\u30af\u306b\u5225\u308c\u3066\u3044\u3066\u3082\u30da\u30fc\u30b8\u5185\u691c\u7d22\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b<\/li>\n<\/ul>\n<p>\u3067\u306f\u697d\u3057\u304f\u3084\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u2757<\/p>\n<p><strong>\u203b \u4eca\u56de\u306fVue\u3060\u3051\u306a\u306e\u3067\uff11\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u304c\u3001\u9006\u306b\u30b3\u30fc\u30c9\u304c\u9577\u304f\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u306e\u3067\u5206\u5272\u3057\u3066\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/strong><\/p>\n<h1>\u30b3\u30f3\u30c6\u30f3\u30c4\u8868\u793a\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u3064\u304f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u307e\u305a\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u8868\u793a\u3059\u308b\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u3064\u304f\u308a\u307e\u3059\u3002<\/p>\n<p>\u76f4\u63a5\u66f8\u3044\u3066\u3082\u3044\u3044\u306e\u3067\u3059\u304c\u3001\u4eca\u56de\u306f\u8907\u6570\u30d6\u30ed\u30c3\u30af\u306b\u3082\u5bfe\u5fdc\u3055\u305b\u305f\u3044\u306e\u3067\u4f7f\u3044\u56de\u3057\u304c\u3067\u304d\u308b\u3088\u3046\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u5316\u3057\u307e\u3059\u3002<\/p>\n<p>\u4f7f\u3044\u65b9\u306f\u4ee5\u4e0b\u3092\u60f3\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre><strong>&lt;v-find-in-page-content v-model=\"searchText\"<\/strong><strong>&gt;<\/strong>\r\n    \u3053\u3053\u306bHTML\u30b3\u30f3\u30c6\u30f3\u30c4\uff08\u8a72\u5f53\u7b87\u6240\u304c\u30cf\u30a4\u30e9\u30a4\u30c8\u3055\u308c\u307e\u3059\uff09\r\n<strong>&lt;\/v-find-in-page-content&gt;<\/strong><\/pre>\n<p>\u3067\u306f\u3001<code>JavaScript<\/code>\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n<pre>const findInPageContentComponent = {\r\n    <strong>props: {<\/strong>\r\n<strong>        modelValue: { \/\/ 1-1: v-model \u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3059\u308b<\/strong>\r\n<strong>            type: String,<\/strong>\r\n<strong>            default: ''<\/strong>\r\n<strong>        }<\/strong>\r\n<strong>    },<\/strong>\r\n    data() {\r\n        return {\r\n            delimiter: '___FIND_IN_PAGE___', \/\/ \u533a\u5207\u308a\u6587\u5b57\r\n            contentParts: []\r\n        }\r\n    },\r\n    methods: {\r\n        <strong>parseContents() { \/\/ 1-2: \u30bf\u30b0\u5185\u306b\u30bb\u30c3\u30c8\u3055\u308c\u305fHTML\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u5206\u985e\uff08\u30bf\u30b0\uff06\u30c6\u30ad\u30b9\u30c8\uff09\u3057\u3066\u914d\u5217\u306b\u3059\u308b<\/strong>\r\n\r\n<strong>            this.contentParts = [];<\/strong>\r\n<strong>            const content = this.container.innerHTML<\/strong>\r\n<strong>                .replace(\/[&lt;&gt;]\/g, match =&gt; {<\/strong>\r\n\r\n<strong>                    return (match === '&lt;')<\/strong>\r\n<strong>                        ? this.delimiter +'&lt;'<\/strong>\r\n<strong>                        : '&gt;'+ this.delimiter;<\/strong>\r\n\r\n<strong>                });<\/strong>\r\n<strong>            const contents = content.split(this.delimiter);<\/strong>\r\n\r\n<strong>            contents.forEach(contentPart =&gt; {<\/strong>\r\n\r\n<strong>                if(contentPart !== '') {<\/strong>\r\n\r\n<strong>                    const type = (contentPart.startsWith('&lt;'))  \/\/ \u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u7a2e\u985e<\/strong>\r\n<strong>                        ? 'tag'<\/strong>\r\n<strong>                        : 'text';<\/strong>\r\n<strong>                    this.contentParts.push({<\/strong>\r\n<strong>                        type: type,<\/strong>\r\n<strong>                        value: contentPart<\/strong>\r\n<strong>                    });<\/strong>\r\n\r\n<strong>                }<\/strong>\r\n\r\n<strong>            });<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n    },\r\n    computed: {\r\n        <strong>content() { \/\/ 1-3: \u8868\u793a\u3059\u308b\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u4f5c\u6210\u3059\u308b\uff08\u30cf\u30a4\u30e9\u30a4\u30c8\u3059\u308b\uff09<\/strong>\r\n\r\n<strong>            const keyword = this.modelValue;<\/strong>\r\n\r\n<strong>            return this.contentParts.map(contentPart =&gt; {<\/strong>\r\n\r\n<strong>                let value = contentPart.value;<\/strong>\r\n\r\n<strong>                if(keyword !== '') {<\/strong>\r\n\r\n<strong>                    const type = contentPart.type;<\/strong>\r\n\r\n<strong>                    if(type === 'text' &amp;&amp; value.includes(keyword)) {   \/\/ \u901a\u5e38\u306e\u30c6\u30ad\u30b9\u30c8\u3067\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u542b\u3080\u5834\u5408<\/strong>\r\n\r\n<strong>                        const highlight = `&lt;span class=\"find-in-page-highlight bg-yellow-400\"&gt;${keyword}&lt;\/span&gt;`;<\/strong>\r\n<strong>                        value = value.replace(keyword, highlight);<\/strong>\r\n\r\n<strong>                    }<\/strong>\r\n\r\n<strong>                }<\/strong>\r\n\r\n<strong>                return value;<\/strong>\r\n\r\n<strong>            }).join('');<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n    },\r\n    mounted() {\r\n\r\n        this.parseContents();\r\n\r\n    },\r\n    setup() {\r\n\r\n        return {\r\n            container: Vue.ref(null)\r\n        };\r\n\r\n    },\r\n    <strong>\/\/ 1-4: \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8<\/strong>\r\n<strong>    template: `<\/strong>\r\n<strong>        &lt;div ref=\"container\" class=\"hidden\"&gt;<\/strong>\r\n<strong>            &lt;slot&gt;&lt;\/slot&gt;<\/strong>\r\n<strong>        &lt;\/div&gt;<\/strong>\r\n<strong>        &lt;div v-html=\"content\"&gt;&lt;\/div&gt;<\/strong>\r\n<strong>    `<\/strong>\r\n};<\/pre>\n<p>\u3067\u306f\u3072\u3068\u3064\u305a\u3064\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>1-1: v-model \u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3059\u308b<\/h2>\n<p><code>Vue 3<\/code>\u304b\u3089\u306f\u3001<code>value<\/code>\u3067\u306f\u306a\u304f<code>modelValue<\/code>\u304c<code>v-model<\/code>\u3068\u30da\u30a2\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u3053\u306e\u3088\u3046\u306b\u66f8\u304d\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\u578b\u3084\u521d\u671f\u5024\u3092\u30bb\u30c3\u30c8\u3057\u306a\u3044\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u7701\u7565\u3057\u3066\u3082OK\u3067\u3059\u3002<\/p>\n<pre><strong>props: ['modelValue'], \/\/ \ud83d\udc48 \u7701\u7565\u30d0\u30fc\u30b8\u30e7\u30f3<\/strong><\/pre>\n<h2>1-2: \u30bf\u30b0\u5185\u306b\u30bb\u30c3\u30c8\u3055\u308c\u305fHTML\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u5206\u985e\uff08\u30bf\u30b0\uff06\u30c6\u30ad\u30b9\u30c8\uff09\u3057\u3066\u914d\u5217\u306b\u3059\u308b<\/h2>\n<p>\u4eca\u56de\u306e\u958b\u767a\u3067\u3053\u3053\u304c\u4e00\u756a\u60a9\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u3068\u3044\u3046\u306e\u3082\u3001\u691c\u7d22\u30ad\u30fc\u30ef\u30fc\u30c9\u304c\u5165\u529b\u3055\u308c\u3001\u8a72\u5f53\u3059\u308b\u90e8\u5206\u3092\u30cf\u30a4\u30e9\u30a4\u30c8\u3059\u308b\u3068\u304d\u306b\u3001\u4f55\u3082\u8003\u3048\u305a\u306b<code>replace()<\/code>\u3092\u4f7f\u3063\u3066\u3057\u307e\u3046\u3068<strong>HTML\u30bf\u30b0\u307e\u3067\u7f6e\u304d\u63db\u3048\u3089\u308c\u3066\u3057\u307e\u3046<\/strong>\u304b\u3089\u3067\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u4f8b\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>&lt;h1&gt;\u3053\u308c\u306f\u3001\u30bf\u30a4\u30c8\u30eb\u3067\u3059&lt;\/h1&gt;<\/strong><\/pre>\n<p>\u3082\u3057\u30ad\u30fc\u30ef\u30fc\u30c9\u304c\u300c<strong>\u30bf\u30a4\u30c8\u30eb<\/strong>\u300d\u3060\u3063\u305f\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u7f6e\u304d\u63db\u3048\u3066\u3057\u3066\u80cc\u666f\u306e\u30cf\u30a4\u30e9\u30a4\u30c8\u3092\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre>&lt;h1&gt;\u3053\u308c\u306f\u3001<strong>&lt;span class=\"bg-yellow-400\"&gt;\u30bf\u30a4\u30c8\u30eb&lt;\/span&gt;<\/strong>\u3067\u3059&lt;\/h1&gt;<\/pre>\n<p>\u3057\u304b\u3057\u3001\u30ad\u30fc\u30ef\u30fc\u30c9\u304c\u3082\u3057\u300c<strong>&gt;\u30bf\u30a4\u30c8\u30eb<\/strong>\u300d\u3060\u3063\u305f\u5834\u5408\u306f\u3069\u3046\u3067\u3057\u3087\u3046\u304b\u3002<br \/>\n\u4ee5\u4e0b\u306e\u3088\u3046\u306bHTML\u30bf\u30b0\u306e\u69cb\u6210\u304c\u58ca\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<pre><strong>&lt;h1<\/strong>\u3053\u308c\u306f\u3001&lt;span class=\"bg-yellow-400\"&gt;<strong>&gt;<\/strong>\u30bf\u30a4\u30c8\u30eb&lt;\/span&gt;\u3067\u3059&lt;\/h1&gt;\r\n&lt;!-- \u2191\u2191\u2191 h1\u30bf\u30b0\u304c\u6b20\u3051\u3066\u3044\u3066\u3001\u4f59\u5206\u306a &gt; \u3082\u542b\u3093\u3067\u3044\u307e\u3059 --&gt;<\/pre>\n<p>\u3053\u308c\u3067\u306f\u304d\u3061\u3093\u3068\u3057\u305f\u8868\u793a\u304c\u3067\u304d\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001\u89e3\u6c7a\u7b56\u3068\u3057\u3066\u30b3\u30f3\u30c6\u30f3\u30c4\u3092<strong>\u6587\u7ae0\u3068\u30bf\u30b0\u306b\u5206\u3051\u3001\u914d\u5217\u5316\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002<\/strong><\/p>\n<p>\u4f8b\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30f3\u30c6\u30f3\u30c4\u304c\u3042\u308b\u3068\u3057\u307e\u3059\u3002<\/p>\n<pre><strong>\u30b5\u30f3\u30d7\u30eb\u306f\u3001&lt;a href=\"http:\/\/example.com\"&gt;\u3053\u3061\u3089&lt;\/a&gt;\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/strong><\/pre>\n<p>\u305d\u3057\u3066\u3001\u3053\u308c\u3092\u5206\u5272\u3059\u308b\u305f\u3081\u4ee5\u4e0b\uff12\u3064\u306e\u3088\u3046\u306b\u3044\u3063\u305f\u3093\u533a\u5207\u308a\u6587\u5b57\u4ed8\u304d\u306e\u30bf\u30b0\u306b\u7f6e\u304d\u63db\u3048\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u300c<strong>&lt;<\/strong>\u300d\u3092\u300c<strong>\uff5c&lt;<\/strong>\u300d\u306b\u7f6e\u304d\u63db\u3048\u308b<\/li>\n<li>\u300c<strong>&gt;<\/strong>\u300d\u3092\u300c<strong>&gt;\uff5c<\/strong>\u300d\u306b\u7f6e\u304d\u63db\u3048\u308b<\/li>\n<\/ul>\n<p>\u203b \u306a\u304a\u3001\u533a\u5207\u308a\u6587\u5b57\u306f\u8aac\u660e\u3057\u3084\u3059\u3044\u3088\u3046\u306b\u300c\uff5c\u300d\u306b\u3057\u3066\u3044\u307e\u3059\u304c\u5b9f\u969b\u306e\u30b3\u30fc\u30c9\u3067\u306f\u300c___FIND_IN_PAGE___\u300d\u3067\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001\u5b9f\u969b\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre>\u30b5\u30f3\u30d7\u30eb\u306f\u3001\uff5c&lt;a href=\"http:\/\/example.com\"&gt;\uff5c\u3053\u3061\u3089\uff5c&lt;\/a&gt;\uff5c\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/pre>\n<p>\u305d\u3057\u3066\u3001\u6b21\u306b\u3053\u306e\u300c\uff5c\u300d\u3067\u5206\u5272\u3059\u308b\u3068\u6b63\u3057\u3044\u4f4d\u7f6e\u3067\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u5206\u5272\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3068\u3044\u3046\u308f\u3051\u3067\u3059\u3002<\/p>\n<p>\u5206\u5272\u3057\u305f\u3082\u306e\u304c\u3053\u3061\u3089\u3002<\/p>\n<pre>[\r\n    '\u30b5\u30f3\u30d7\u30eb\u306f\u3001',\r\n    '&lt;a href=\"http:\/\/example.com\"&gt;',\r\n    '\u3053\u3061\u3089',\r\n    '&lt;\/a&gt;',\r\n    '\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002',\r\n]<\/pre>\n<p>\u305d\u3057\u3066\u6700\u5f8c\u306b\u300c\u30c6\u30ad\u30b9\u30c8\u300d\u3068\u300c\u30bf\u30b0\u300d\u306b\u5206\u985e\u3057\u307e\u3059\u3002<\/p>\n<pre>[\r\n    {\r\n        type: 'text',\r\n        value: '\u30b5\u30f3\u30d7\u30eb\u306f\u3001'\r\n    },\r\n    {\r\n        type: 'tag',\r\n        value: '&lt;a href=\"http:\/\/example.com\"&gt;'\r\n    },\r\n    {\r\n        type: 'text',\r\n        value: '\u3053\u3061\u3089'\r\n    },\r\n    {\r\n        type: 'tag',\r\n        value: '&lt;\/a&gt;'\r\n    },\r\n    {\r\n        type: 'text',\r\n        value: '\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002'\r\n    },\r\n]<\/pre>\n<p>\u3053\u3046\u306a\u308c\u3070\u3001\u5f8c\u306f<code>type<\/code>\u304c<code>text<\/code>\u306b\u306a\u3063\u3066\u3044\u308b\u3082\u306e\u3060\u3051\u80cc\u666f\u30cf\u30a4\u30e9\u30a4\u30c8\u306e\u7f6e\u304d\u63db\u3048\u3092\u3059\u308c\u3070\u3001<strong>HTML\u30bf\u30b0\u304c\u7834\u58ca\u3055\u308c\u308b\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/strong><\/p>\n<h2>1-3: \u8868\u793a\u3059\u308b\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u4f5c\u6210\u3059\u308b\uff08\u30cf\u30a4\u30e9\u30a4\u30c8\u3059\u308b\uff09<\/h2>\n<p>\u3053\u3053\u3067\u306f\u3001\u5148\u307b\u3069\u4f5c\u6210\u3057\u305f\u5206\u985e\u30c7\u30fc\u30bf\u3092\u4f7f\u3063\u3066\u5b9f\u969b\u306b\u8868\u793a\u3059\u308b\uff08\u30cf\u30a4\u30e9\u30a4\u30c8\u5316\u3057\u305f\uff09\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u3064\u304f\u308a\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u5148\u307b\u3069\u306e\u4f8b\u3067\u691c\u7d22\u30ad\u30fc\u30ef\u30fc\u30c9\u304c\u300c<strong>\u30b5\u30f3\u30d7\u30eb<\/strong>\u300d\u306e\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre>[\r\n    {\r\n        type: 'text', <strong>\/\/ \ud83d\udc48 text \u3060\u3051\u30cf\u30a4\u30e9\u30a4\u30c8\u5316\u3059\u308b<\/strong>\r\n        value: '<strong>&lt;span class=\"bg-yellow-400\"&gt;\u30b5\u30f3\u30d7\u30eb&lt;\/span&gt;<\/strong>\u306f\u3001'\r\n    },\r\n    \r\n    \/\/ \u4ee5\u4e0b\u7701\u7565\r\n\r\n]<\/pre>\n<p>\u305d\u3057\u3066\u3001\u6b21\u306b\u3053\u306e\u914d\u5217\u306e<code>value<\/code>\u3059\u3079\u3066\u3092<code>join()<\/code>\u3067\u7d50\u5408\u3059\u308c\u3070\u5b9f\u969b\u306b\u8868\u793a\u3059\u308b\u30b3\u30f3\u30c6\u30f3\u30c4\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>1-4: \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8<\/h2>\n<p>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u69cb\u9020\u306f\u3001\u4ee5\u4e0b\uff12\u3064\u306e\u30d6\u30ed\u30c3\u30af\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u5143\u3005\u306eHTML\u30b3\u30fc\u30c9<\/li>\n<li>\u30cf\u30a4\u30e9\u30a4\u30c8\u5316\u3057\u305fHTML\u30b3\u30fc\u30c9<\/li>\n<\/ul>\n<p>\u305d\u3057\u3066\u3001\u300c\u5143\u3005\u306eHTML\u30b3\u30fc\u30c9\u300d\u306f<strong>\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u3002<br \/>\n<\/strong>\u5358\u306b<code>slot<\/code>\u3092\u901a\u3057\u3066\u30c7\u30fc\u30bf\u53d6\u5f97\u3057\u3066\u3044\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u4ee5\u4e0b\u306e\u592a\u5b57\u90e8\u5206\u306e\u3088\u3046\u306b\u3057\u3066<code>ref<\/code>\u53c2\u7167\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre>return {\r\n    <strong>container: Vue.ref(null)<\/strong>\r\n};<\/pre>\n<pre>&lt;div <strong>ref=\"container\"<\/strong> class=\"hidden\"&gt;<\/pre>\n<p>\u8a73\u3057\u3044<code>Vue 3<\/code>\u306e<code>ref<\/code>\u306b\u3064\u3044\u3066\u306f\u4ee5\u4e0b\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>\ud83d\udcdd\u53c2\u8003URL:\u00a0<\/strong><a href=\"https:\/\/blog.capilano-fw.com\/?p=6393#ref\" target=\"_blank\" rel=\"noopener\">ref\u306e\u4f7f\u3044\u65b9\u304c\u5909\u308f\u3063\u305f<\/a><\/p>\n<h1>\u691c\u7d22\u30dc\u30c3\u30af\u30b9\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u3064\u304f\u308b<\/h1>\n<p>\u7d9a\u3044\u3066\u3001\u30da\u30fc\u30b8\u5185\u691c\u7d22\u3067\u4f7f\u3046\u691c\u7d22\u30dc\u30c3\u30af\u30b9\u3082\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3067\u3064\u304f\u308a\u307e\u3059\u3002<\/p>\n<p>\u5b9f\u969b\u306b\u4f7f\u3046\u30bf\u30b0\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30ab\u30f3\u30b8\u3092\u60f3\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre><strong>&lt;v-find-in-page-search<\/strong>\r\n<strong>    class=\"fixed top-6 right-6\"<\/strong>\r\n<strong>    v-model=\"searchText\"&gt;&lt;\/v-find-in-page-search&gt;<\/strong><\/pre>\n<p>\u3067\u306f\u3001<code>JavaScript<\/code>\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n<pre>const findInPageSearchComponent = {\r\n    props: {\r\n        modelValue: {\r\n            type: String,\r\n            default: ''\r\n        }\r\n    },\r\n    data() {\r\n        return {\r\n            keyword: '',\r\n            highlights: [],\r\n            highlightIndex: -1\r\n        }\r\n    },\r\n    methods: {\r\n        <strong>onInput() { \/\/ 2-1: \u691c\u7d22\u30ad\u30fc\u30ef\u30fc\u30c9\u304c\u5909\u66f4\u306b\u306a\u3063\u305f\u3089 v-model \u306b\u4f1d\u3048\u308b<\/strong>\r\n\r\n<strong>            this.highlightIndex = -1;<\/strong>\r\n<strong>            this.$emit('update:modelValue', this.keyword);<\/strong>\r\n\r\n<strong>        },<\/strong>\r\n<strong>        onMove(direction) { \/\/ 2-2: \u8a72\u5f53\u3059\u308b\u90e8\u5206\u306e\u8272\u3092\u5909\u3048\u3001\u30b9\u30af\u30ed\u30fc\u30eb\u4f4d\u7f6e\u3092\u81ea\u52d5\u3067\u5909\u66f4\u3059\u308b<\/strong>\r\n\r\n<strong>            if(this.highlights.length &gt; 0) {<\/strong>\r\n\r\n<strong>                let targetIndex = this.highlightIndex;<\/strong>\r\n<strong>                const maxIndex = this.highlights.length - 1;<\/strong>\r\n\r\n<strong>                if(direction === 'prev') {<\/strong>\r\n\r\n<strong>                    targetIndex--;<\/strong>\r\n\r\n<strong>                    if(targetIndex &lt; 0) {<\/strong>\r\n\r\n<strong>                        targetIndex = maxIndex;<\/strong>\r\n\r\n<strong>                    }<\/strong>\r\n\r\n<strong>                } else if(direction === 'next') {<\/strong>\r\n\r\n<strong>                    targetIndex++;<\/strong>\r\n\r\n<strong>                    if(targetIndex &gt; maxIndex) {<\/strong>\r\n\r\n<strong>                        targetIndex = 0;<\/strong>\r\n\r\n<strong>                    }<\/strong>\r\n\r\n<strong>                }<\/strong>\r\n\r\n<strong>                this.highlightIndex = targetIndex;<\/strong>\r\n\r\n<strong>                for(let i =  0 ; i &lt; this.highlights.length ; i++) {<\/strong>\r\n\r\n<strong>                    const target = this.highlights[i];<\/strong>\r\n<strong>                    target.classList.remove('bg-yellow-400');<\/strong>\r\n<strong>                    target.classList.remove('bg-red-400');<\/strong>\r\n\r\n<strong>                    if(i === targetIndex) {<\/strong>\r\n\r\n<strong>                        target.classList.add('bg-red-400');<\/strong>\r\n<strong>                        const offsetTop = target.offsetTop - 10;<\/strong>\r\n<strong>                        const scrollTop = Math.max(0, offsetTop); \/\/ \u6570\u5024\u304c\u30de\u30a4\u30ca\u30b9\u306e\u5834\u5408\u306f\u30bc\u30ed\u306b\u3059\u308b<\/strong>\r\n<strong>                        window.scrollTo(0, scrollTop);<\/strong>\r\n\r\n<strong>                    } else {<\/strong>\r\n\r\n<strong>                        target.classList.add('bg-yellow-400');<\/strong>\r\n\r\n<strong>                    }<\/strong>\r\n\r\n<strong>                }<\/strong>\r\n\r\n<strong>            }<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n<strong>    },<\/strong>\r\n    computed: {\r\n        hasHighlight() {\r\n\r\n            return (\r\n                this.highlights.length &gt; 0\r\n            );\r\n\r\n        }\r\n    },\r\n    watch: {\r\n        <strong>modelValue: { \/\/ 2-3: \u30ad\u30fc\u30ef\u30fc\u30c9\u304c\u5909\u66f4\u306b\u306a\u3063\u305f\u3089\u5fc5\u305a\u5168\u3066\u306e\u30cf\u30a4\u30e9\u30a4\u30c8\u90e8\u5206\u3092\u53d6\u5f97\u3059\u308b\u3088\u3046\u306b\u3059\u308b<\/strong>\r\n<strong>            immediate: true,<\/strong>\r\n<strong>            handler(value) {<\/strong>\r\n\r\n<strong>                this.keyword = value;<\/strong>\r\n\r\n<strong>                Vue.nextTick(() =&gt; {<\/strong>\r\n\r\n<strong>                    this.highlights = document.querySelectorAll('.find-in-page-highlight');<\/strong>\r\n\r\n<strong>                });<\/strong>\r\n\r\n<strong>            }<\/strong>\r\n<strong>        }<\/strong>\r\n    },\r\n    template: `\r\n        &lt;div class=\"bg-gray-100 rounded px-4 py-3 shadow-lg\"&gt;\r\n            &lt;div class=\"text-gray-500 text-sm\"&gt;\u30da\u30fc\u30b8\u5185\u691c\u7d22&lt;\/div&gt;\r\n            &lt;input\r\n                type=\"text\"\r\n                class=\"border-2 border-gray-300 p-1\"\r\n                placeholder=\"\u30da\u30fc\u30b8\u5185\u691c\u7d22\"\r\n                v-model=\"keyword\"\r\n                @input=\"onInput\"\r\n                @keypress.enter=\"onMove('next')\"&gt;\r\n            &lt;br&gt;\r\n            &lt;div class=\"grid grid-cols-2\"&gt;\r\n                &lt;div class=\"px-1 py-2 text-sm text-gray-700\"&gt;\r\n                    &lt;div v-if=\"hasHighlight\"&gt;\r\n                        &lt;span v-text=\"highlightIndex + 1\"&gt;&lt;\/span&gt; \/ &lt;span v-text=\"highlights.length\"&gt;&lt;\/span&gt;\r\n                    &lt;\/div&gt;\r\n                &lt;\/div&gt;\r\n                &lt;div class=\"pt-2 text-right\"&gt;\r\n                    &lt;button type=\"button\" class=\"text-xs bg-blue-600 text-blue-50 px-2 py-1 rounded mr-1\" @click=\"onMove('prev')\"&gt;\u524d\u3078&lt;\/button&gt;\r\n                    &lt;button type=\"button\" class=\"text-xs bg-blue-600 text-blue-50 px-2 py-1 rounded\" @click=\"onMove('next')\"&gt;\u6b21\u3078&lt;\/button&gt;\r\n                &lt;\/div&gt;\r\n            &lt;\/div&gt;\r\n        &lt;\/div&gt;\r\n    `\r\n};<\/pre>\n<p>\u3067\u306f\u3053\u3061\u3089\u3082\u3072\u3068\u3064\u305a\u3064\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h2>2-1: \u691c\u7d22\u30ad\u30fc\u30ef\u30fc\u30c9\u304c\u5909\u66f4\u306b\u306a\u3063\u305f\u3089 v-model \u306b\u4f1d\u3048\u308b<\/h2>\n<p><code>onInput()<\/code>\u306f\u3001\u691c\u7d22\u30ad\u30fc\u30ef\u30fc\u30c9\u306b\u5909\u5316\u304c\u3042\u3063\u305f\u3068\u304d\u547c\u3070\u308c\u308b\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u3053\u306e\u4e2d\u3067\u306f<code>update:modelValue<\/code>\u3068\u3044\u3046\u540d\u524d\u306e\u30a4\u30d9\u30f3\u30c8\u304c\u5b9f\u884c\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308b\u306e\u3067\u3059\u304c\u3001\u3053\u308c\u306f\u3059\u306a\u308f\u3061\u300c<strong>v-model \u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u5909\u6570\u306b\u5909\u66f4\u3092\u4f1d\u3048\u308b<\/strong>\u300d\u3068\u3044\u3046\u5f79\u76ee\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u5185\u306e\u5165\u529b\u30dc\u30c3\u30af\u30b9\u306b\u5909\u66f4\u304c\u5408\u3063\u305f\u5834\u5408\u3001\u7d50\u679c\u3068\u3057\u3066\u4ee5\u4e0b\u306e<code>searchText<\/code>\u3082\u540c\u3058\u5024\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre>const app = Vue.createApp({\r\n    data() {\r\n        return {\r\n            <strong>searchText: '' \/\/ \ud83d\udc48 \u89aa\u5074\u306e\u5909\u6570\u306b\u5909\u5316\u304c\u4f1d\u308f\u308b<\/strong>\r\n        }\r\n    },\r\n\r\n\/\/\u3000\u4ee5\u4e0b\u7701\u7565<\/pre>\n<h2>2-2: \u8a72\u5f53\u3059\u308b\u90e8\u5206\u306e\u8272\u3092\u5909\u3048\u3001\u30b9\u30af\u30ed\u30fc\u30eb\u4f4d\u7f6e\u3092\u81ea\u52d5\u3067\u5909\u66f4\u3059\u308b<\/h2>\n<p><code>onMove<\/code>\u306f\u3001\u30cf\u30a4\u30e9\u30a4\u30c8\u3055\u308c\u305f\u691c\u7d22\u30ad\u30fc\u30ef\u30fc\u30c9\u3078\u79fb\u52d5\u3059\u308b\u5834\u5408\u306b\u4f7f\u308f\u308c\u308b\u30e1\u30bd\u30c3\u30c9\u3067\u3001\u300c<strong>\u524d\u3078<\/strong>\u300d\u300c<strong>\u6b21\u3078<\/strong>\u300d\u30dc\u30bf\u30f3\u304c\u30af\u30ea\u30c3\u30af\u3055\u308c\u305f\u3068\u304d\u3001\u305d\u3057\u3066\u3001\u691c\u7d22\u30dc\u30c3\u30af\u30b9\u306b\u30d5\u30a9\u30fc\u30ab\u30b9\u304c\u5f53\u305f\u3063\u3066\u3044\u3066<code>Enter\u30ad\u30fc<\/code>\u304c\u62bc\u3055\u308c\u305f\u3068\u304d\u306b\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8647\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/02\/vue_find_in_page_1.png\" alt=\"\" width=\"271\" height=\"143\" \/><\/p>\n<p>\u305d\u3057\u3066\u3001\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u306e\u4e2d\u3067\u306f\u8a72\u5f53\u3059\u308b\u5834\u6240\u306e\u30b9\u30af\u30ed\u30fc\u30eb\u4f4d\u7f6e\u3092\u8a08\u7b97\u3057\u3001\u305d\u306e\u4f4d\u7f6e\u3078\u79fb\u52d5\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>2-3: \u30ad\u30fc\u30ef\u30fc\u30c9\u304c\u5909\u66f4\u306b\u306a\u3063\u305f\u3089\u5fc5\u305a\u5168\u3066\u306e\u30cf\u30a4\u30e9\u30a4\u30c8\u90e8\u5206\u3092\u53d6\u5f97\u3059\u308b\u3088\u3046\u306b\u3059\u308b<\/h2>\n<p>\u3053\u306e\u90e8\u5206\u306f<code>watch<\/code>\u306b\u5165\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u300c<strong>\u5024\u306b\u5909\u5316\u304c\u3042\u3063\u305f\u3068\u304d\u306b\u5b9f\u884c\u3055\u308c\u308b<\/strong>\u300d\u30b3\u30fc\u30c9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001<code>modelValue<\/code>\u306f<code>v-model<\/code>\u3068\u30da\u30a2\u306b\u306a\u3063\u3066\u3044\u308b\u5909\u6570\u306a\u306e\u3067\u3001<code>v-model<\/code>\u306e\u4e2d\u8eab\uff08\u3064\u307e\u308a\u3001\u5916\u304b\u3089\u5165\u3063\u3066\u304d\u305f\u30ad\u30fc\u30ef\u30fc\u30c9\uff09\u304c\u5909\u66f4\u306b\u306a\u3063\u305f\u3089\u5fc5\u305a\u3053\u306e\u4e2d\u306b\u3042\u308b\u30b3\u30fc\u30c9\u304c\u547c\u3070\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3084\u3063\u3066\u3044\u308b\u3053\u3068\u306f\u3001\u4ee5\u4e0b\u306e\uff12\u3064\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u691c\u7d22\u30ad\u30fc\u30ef\u30fc\u30c9\u306e\u6a4b\u6e21\u3057<\/li>\n<li>\u5168\u30cf\u30a4\u30e9\u30a4\u30c8\u90e8\u5206\u306e\u53d6\u5f97<\/li>\n<\/ul>\n<p>\u307e\u305a\u300c\u691c\u7d22\u30ad\u30fc\u30ef\u30fc\u30c9\u306e\u6a4b\u6e21\u3057\u300d\u3067\u3059\u304c\u3001\u7c21\u5358\u306b\u8a00\u3046\u3068\u300c<strong>v-model\u306e\u5024\u3092\u305d\u306e\u307e\u3081\u3001\u5909\u6570 keyword \u306b\u5165\u308c\u304b\u3048\u308b<\/strong>\u300d\u3068\u3044\u3046\u610f\u5473\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u3053\u3053\u3067\u7591\u554f\u304c\u6d6e\u304b\u3093\u3067\u304f\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u300c<strong>\u3044\u3084\u3001\u76f4\u63a5<code>modelValue<\/code>\u3092\u4f7f\u3048\u3070\u3044\u3044\u3093\u3058\u3083\u30fb\u30fb\u30fb<\/strong>\u300d<\/p>\n<p>\u3067\u304d\u308c\u3070\u79c1\u3082\u305d\u3046\u3057\u305f\u3044\u306e\u3067\u3059\u304c\u3001\u5b9f\u306f\u300c<strong>v-model \u306f\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u5185\u90e8\u306b\u306f\u901a\u77e5\u3055\u308c\u308b\u304c\u3001\u5916\u306b\u5909\u66f4\u306f\u901a\u77e5\u3055\u308c\u306a\u3044<\/strong>\u300d\u3068\u3044\u3046\u30eb\u30fc\u30eb\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u691c\u7d22\u30ad\u30fc\u30ef\u30fc\u30c9\u306e\u5165\u529b\u30dc\u30c3\u30af\u30b9\u306b<code>onInput()<\/code>\u304c\u30bb\u30c3\u30c8\u3055\u308c\u3066\u3044\u3066\u3001\u305d\u306e\u4e2d\u3067\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u304c\u5b9f\u884c\u3055\u308c\u3066\u3044\u308b\u306e\u306f\u305d\u306e\u305f\u3081\u3067\u3059\u3002<\/p>\n<pre><strong>this.$emit('update:modelValue', this.keyword);<\/strong> \/\/ \ud83d\udc48 \u5916\u306b\u5909\u66f4\u3092\u901a\u77e5\u3057\u3066\u3044\u307e\u3059<\/pre>\n<p>\u203b \u8a73\u3057\u304f\u306f\u4ee5\u4e0b\u306eURL\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\ud83d\udcdd\u53c2\u8003URL: <a href=\"https:\/\/blog.capilano-fw.com\/?p=7622\" target=\"_blank\" rel=\"noopener\">Vue\u306e\u5b9a\u756a\u30a8\u30e9\u30fc\u300cAvoid mutating a prop directly\u2026\u300d\u306e\u539f\u56e0\u3068\u5bfe\u51e6\u65b9\u6cd5<\/a><\/p>\n<p>\u305d\u3057\u3066\u3001\u6b21\u306b\u300c<strong>\u5168\u30cf\u30a4\u30e9\u30a4\u30c8\u90e8\u5206\u306e\u53d6\u5f97<\/strong>\u300d\u3067\u3059\u3002<br \/>\n\u3053\u306e\u30c7\u30fc\u30bf\u3092\u4f7f\u3063\u3066\u3001<\/p>\n<ul>\n<li>\u691c\u7d22\u30ad\u30fc\u30ef\u30fc\u30c9\u306b\u8a72\u5f53\u3059\u308b\u90e8\u5206\u304c\u4f55\u7b87\u6240\u3042\u308b\u306e\u304b<\/li>\n<li>\u8a72\u5f53\u3057\u3066\u3044\u308b\u7b87\u6240\u306e\u80cc\u666f\u8272\u3092\u76ee\u7acb\u305f\u305b\u308b<\/li>\n<\/ul>\n<p>\u306a\u3069\u306e\u8868\u793a\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h1>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u6709\u52b9\u3059\u308b<\/h1>\n<p>\u3067\u306f\u3001\u3053\u3053\u307e\u3067\u3067\u3064\u304f\u3063\u305f\uff12\u3064\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u5b9f\u969b\u306b\u4f7f\u7528\u3059\u308b\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre>&lt;html&gt;\r\n&lt;head&gt;\r\n    &lt;link href=\"https:\/\/unpkg.com\/tailwindcss@^2\/dist\/tailwind.min.css\" rel=\"stylesheet\"&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;div id=\"app\" class=\"p-3\"&gt;\r\n    <strong>&lt;!-- \u8868\u793a\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\uff1a\uff11\u3064\u76ee --&gt;<\/strong>\r\n    &lt;v-find-in-page-content v-model=\"searchText\"&gt;\r\n        &lt;h1 class=\"text-2xl font-bold mb-5\"&gt;\u543e\u8f29\u308f\u304c\u306f\u3044\u306f\u732b\u3067\u3042\u308b&lt;\/h1&gt;\r\n        \u543e\u8f29\u306f\u732b\u3067\u3042\u308b\u3002&lt;br&gt;\r\n         \uff08\u4e2d\u7565 ...\uff09\r\n        \u638c\u306e\u4e0a\u3067\u5c11\u3057\u843d\u3061\u4ed8\u3044\u3066\u66f8\u751f\u306e\u984f\u3092\u898b\u305f\u304c\u6240\u8b02\u4eba\u9593\u3068\u3044\u3075\u3082\u306e\u309d\u898b\u59cb\u3067\u3042\u3089\u3046\u3002&lt;br&gt;\r\n    &lt;\/v-find-in-page-content&gt;\r\n    &lt;hr class=\"my-5\"&gt;\r\n    <strong>&lt;!-- \u8868\u793a\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\uff1a\uff12\u3064\u76ee --&gt;<\/strong>\r\n    &lt;v-find-in-page-content v-model=\"searchText\"&gt;\r\n        \u6b64\u306e\u6642\u5999\u306a\u3082\u306e\u3060\u3068\u601d\u3064\u305f\u611f\u3058\u304c\u4eca\u3067\u3082\u6b98\u3064\u3066\u5c45\u308b\u3002&lt;br&gt;\r\n         \uff08\u4e2d\u7565 ...\uff09\r\n        \u543e\u8f29\u306f\u85c1\u306e\u4e0a\u304b\u3089\u6025\u306b\u7b39\u539f\u306e\u4e2d\u3078\u68c4\u3066\u3089\u308c\u305f\u306e\u3067\u3042\u308b\u3002\r\n    &lt;\/v-find-in-page-content&gt;\r\n    &lt;hr class=\"my-5\"&gt;\r\n<strong>    &lt;!-- \u8868\u793a\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\uff1a\uff13\u3064\u76ee --&gt;<\/strong>\r\n    &lt;v-find-in-page-content v-model=\"searchText\"&gt;\r\n        \u3000\u6f38\u304f\u306e\u601d\u3072\u3067\u7b39\u539f\u3092\u9019\u3072\u51fa\u3059\u3068\u5411\u3075\u306b\u5927\u304d\u306a\u6c60\u304c\u3042\u308b\u3002&lt;br&gt;\r\n        \uff08\u4e2d\u7565 ...\uff09\r\n        \u304b\u304f\u3057\u3066\u543e\u8f29\u306f\u9042\u306b\u6b64\u5bb6\u3092\u81ea\u5206\u306e\u4f4f\u5bb6\u3068\u6975\u3081\u308b\u4e8b\u306b\u3057\u305f\u306e\u3067\u3042\u308b\u3002\r\n    &lt;\/v-find-in-page-content&gt;\r\n    <strong>&lt;!-- \u691c\u7d22\u30dc\u30c3\u30af\u30b9\u30fb\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8 --&gt;<\/strong>\r\n    &lt;v-find-in-page-search\r\n        class=\"fixed top-6 right-6\"\r\n        v-model=\"searchText\"&gt;&lt;\/v-find-in-page-search&gt;\r\n\r\n    &lt;hr class=\"my-5\"&gt;\r\n    \u5f15\u7528\uff1a &lt;a class=\"underline\" href=\"https:\/\/www.aozora.gr.jp\/cards\/000148\/files\/790.html\"&gt;\u9752\u7a7a\u6587\u5eab&lt;\/a&gt;\r\n&lt;\/div&gt;\r\n&lt;script src=\"https:\/\/unpkg.com\/vue@3.0.5\/dist\/vue.global.prod.js\"&gt;&lt;\/script&gt;\r\n&lt;script&gt;\r\n\r\n    \/\/ \u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306f\u7701\u7565\r\n\r\n    const app = Vue.createApp({\r\n        data() {\r\n            return {\r\n                searchText: ''\r\n            }\r\n        }\r\n    })\r\n    <strong>.component('v-find-in-page-content', findInPageContentComponent) \/\/ \ud83d\udc48 \u8868\u793a\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u30bb\u30c3\u30c8<\/strong>\r\n<strong>    .component('v-find-in-page-search', findInPageSearchComponent)   \/\/ \ud83d\udc48 \u691c\u7d22\u30dc\u30c3\u30af\u30b9\u30fb\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u30bb\u30c3\u30c8<\/strong>\r\n    .mount('#app');\r\n\r\n&lt;\/script&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u8a73\u7d30\u306f\u4ee5\u4e0b\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\ud83d\udcdd \u53c2\u8003URL\uff1a <a href=\"https:\/\/blog.capilano-fw.com\/?p=6393#i\" target=\"_blank\" rel=\"noopener\">\u30b0\u30ed\u30fc\u30d0\u30eb\u30fb\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u8a2d\u5b9a\u65b9\u6cd5\u3082\u5909\u308f\u3063\u305f<\/a><\/p>\n<h1>\u30c7\u30e2\u30da\u30fc\u30b8\u3092\u3064\u304f\u308a\u307e\u3057\u305f<\/h1>\n<p>\u305b\u3063\u304b\u304f\u30da\u30fc\u30b8\u5185\u691c\u7d22\u6a5f\u80fd\u3092\u3064\u304f\u3063\u305f\u306e\u3067\u30c7\u30e2\u30da\u30fc\u30b8\u3092\u3064\u304f\u3063\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n\u305c\u3072\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>\u3010\u8ffd\u8a18\uff1a2021.7.28\u3011<\/strong>\u8a2a\u554f\u30e6\u30fc\u30b6\u30fc\u3055\u3093\u304b\u3089\u3054\u6307\u6458\u3092\u3044\u305f\u3060\u304d\u3001\u30ea\u30f3\u30af\u5207\u308c\u3092\u76f4\u3057\u307e\u3057\u305f\u3002\u7686\u3055\u307e\u3001\u30db\u30f3\u30c8\u306b\u3044\u3064\u3082\u3054\u5354\u529b\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\uff01m(_ _)m<\/p>\n<p>\ud83d\udcdd <a href=\"https:\/\/demo-laravel8x.capilano-fw.com\/find_in_page\" target=\"_blank\" rel=\"noopener\">\u30da\u30fc\u30b8\u5185\u691c\u7d22\uff1a\u30c7\u30e2\u30da\u30fc\u30b8<\/a><\/p>\n<h1>\u3061\u306a\u307f\u306b\uff1aJavaScript\u30a4\u30d9\u30f3\u30c8\u306b\u3064\u3044\u3066<\/h1>\n<p>\u3061\u306a\u307f\u306b\u4eca\u56de\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306f<code>v-html<\/code>\u3092\u4f7f\u3063\u3066\u3044\u308b\u95a2\u4fc2\u4e0a\u3001<code>Vue<\/code>\u306e\u30a4\u30d9\u30f3\u30c8\u5b9f\u884c\u306f\u4f7f\u3048\u307e\u305b\u3093\u3002<\/p>\n<p>\u305f\u3060\u3057\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u3067\u30a4\u30d9\u30f3\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>&lt;v-find-in-page-content v-model=\"searchText\"&gt;\r\n\r\n    &lt;!-- \u7701\u7565 --&gt;\r\n\r\n    &lt;a id=\"link\" href=\"#\" class=\"underline\" <strong>onclick=\"return app.onLinkClick();\"<\/strong>&gt;\u540d\u524d\u306f\u307e\u3060\u7121\u3044\u3002&lt;\/a&gt;&lt;br&gt;\r\n    \r\n    &lt;!-- \u4ee5\u4e0b\u7701\u7565 --&gt;<\/pre>\n<pre>const <strong>app<\/strong> = Vue.createApp({\r\n    \r\n    \/\/ \u7701\u7565\r\n\r\n    methods: {\r\n        <strong>onLinkClick() { \/\/ \ud83d\udc48 \u3053\u3053\u304c\u547c\u3070\u308c\u307e\u3059<\/strong>\r\n\r\n<strong>            alert('\u30af\u30ea\u30c3\u30af\u3055\u308c\u307e\u3057\u305f');<\/strong>\r\n<strong>            return false;<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n    }\r\n})\r\n\r\n\/\/ \u7701\u7565<\/pre>\n<h1>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b<\/h1>\n<p>\u4eca\u56de\u5b9f\u969b\u306b\u958b\u767a\u3057\u305f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u4ee5\u4e0b\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<a  data-e-Disable-Page-Transition=\"true\" class=\"download-link\" title=\"\" href=\"https:\/\/blog.capilano-fw.com?download=8650&amp;tmstv=1777884307\" rel=\"nofollow\" id=\"download-link-8650\" data-redirect=\"false\" >\n\tVue \u3067\u30da\u30fc\u30b8\u5185\u691c\u7d22\u3092\u3064\u304f\u308b<\/a>\n\n<p>\u203b <code>CDN<\/code>\u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u3067\u5c55\u958b\u3057\u305f\u3089\u3059\u3050\u4f7f\u3048\u307e\u3059\u3088\ud83d\udc4d<\/p>\n<h1>\u304a\u308f\u308a\u306b<\/h1>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f\u300c<strong>\u30da\u30fc\u30b8\u5185\u691c\u7d22<\/strong>\u300d\u3092<code>Vue 3<\/code>\u3067\u5b9f\u88c5\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u6b63\u76f4\u306a\u3053\u3068\u3092\u8a00\u3046\u3068\u30b3\u30fc\u30c9\u3092\u66f8\u304d\u59cb\u3081\u305f\u5f53\u521d\u306f\u300c\u3046\u30fc\u3093\u3001\u3042\u306e\u3084\u308a\u65b9\u3067\u7c21\u5358\u306b\u3044\u3051\u308b\u3060\u308d\u3046\uff08\u30cb\u30c3\u30b3\u30ea\uff09\u300d\u3068\u4f59\u88d5\u3067\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u5b9f\u969b\u306b\u958b\u767a\u3092\u521d\u3081\u3066\u307f\u308b\u3068\u9014\u4e2d\u3067\u3082\u7d39\u4ecb\u3057\u305f\u300c<strong>HTML\u30bf\u30b0\u304c\u58ca\u308c\u3066\u3057\u307e\u3046<\/strong>\u300d\u554f\u984c\u304c\u767a\u899a\u3057\u3001\uff12\u30fb\uff13\u56de\u30a2\u30d7\u30ed\u30fc\u30c1\u3092\u5909\u3048\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u958b\u767a\u306e\u73fe\u5834\u3067\u306f\u3088\u304f\u8d77\u3053\u308b\u3053\u3068\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u300c<strong>\u3057\u307e\u3063\u305f\u3001\u305d\u3063\u304b&#8230; \ud83d\udca6<\/strong>\u300d\u306f\u30ad\u30c1\u30f3\u3068\u60f3\u5b9a\u3057\u3066\u304a\u304b\u306a\u3044\u3068\u3044\u3051\u307e\u305b\u3093\u306d\ud83d\ude02<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u6700\u8fd1\u691c\u8a3c\u7528\u306b<code>mac mini<\/code>\u3092\u8cfc\u5165\u3057\u305f\u3093\u3067\u3059\u3051\u3069\u3001\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u30ad\u30fc\u304c<code>Ctrl\u30ad\u30fc<\/code>\u3067\u306f\u306a\u304f\u30b3\u30de\u30f3\u30c9\u30ad\u30fc\u306a\u306e\u3067\u6307\u306e\u5f62\u304c\u9069\u5fdc\u3067\u304d\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n<p>\u3042\u308c\u3063\u3066\u3001\u5909\u66f4\u3067\u304d\u308b\u3093\u3067\u3057\u3087\u3046\u304b\uff1f\uff08\u3053\u3063\u3061\u306f\u5909\u66f4\u3057\u307e\u3057\u305f\u304c\u3001\u30b9\u30af\u30ed\u30fc\u30eb\u65b9\u5411\u304c\u9006\u306a\u306e\u306f\u885d\u6483\u3067\u3057\u305f\uff08\u7b11\uff09\uff09<\/p>\n<p>\u4eca\u5f8c\u30a2\u30d7\u30ea\u3092\u4f5c\u308b\u306a\u3089<code>mac<\/code>\u3082\u5fc5\u8981\u306b\u306a\u308b\u306e\u3067\u306a\u3093\u3068\u304b\u6163\u308c\u306a\u304d\u3083\u3067\u3059\u306d\u3002<\/p>\n<p>\u3067\u306f\u3067\u306f\u301c\u2757<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3566 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_1.png\" alt=\"\" width=\"306\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_1.png 306w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_1-287x300.png 287w\" sizes=\"auto, (max-width: 306px) 100vw, 306px\" \/>\u300c\u305a\u3044\u3076\u3093\u4e45\u3057\u3076\u308a\u3067\u3059\u304c\u3001<br \/>\n\u30ef\u30fc\u30b1\u30fc\u30b7\u30e7\u30f3\u3057\u3088\u3063\u304b\u306a\ud83d\ude0a\u300d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u3053\u3053\u306e\u3068\u3053\u308dLaravel\u3092\u30e1\u30a4\u30f3\u3068\u3057\u305f\u8a18\u4e8b\u3070\u304b\u308a\u66f8\u3044\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u305b\u3063\u304b\u304f\u5c11\u3057\u524d\u306b\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u306e3\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305f\u306e\u3067\u3001Vue.js\u304c\u30e1\u30a4\u30f3\u306e\u8a18\u4e8b &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=8641\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Vue \u3067\u30da\u30fc\u30b8\u5185\u691c\u7d22 + \u81ea\u52d5\u30b9\u30af\u30ed\u30fc\u30eb\u6a5f\u80fd\u3092\u3064\u304f\u308b\uff08\u30c7\u30e2\u30da\u30fc\u30b8\u3042\u308a\uff09&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":8654,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-8641","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vue-js"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/8641","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8641"}],"version-history":[{"count":14,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/8641\/revisions"}],"predecessor-version":[{"id":8655,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/8641\/revisions\/8655"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/8654"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8641"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8641"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8641"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}