{"id":462,"date":"2024-10-22T16:15:23","date_gmt":"2024-10-22T07:15:23","guid":{"rendered":"https:\/\/software.satoshis.jp\/?p=462"},"modified":"2024-10-22T21:48:34","modified_gmt":"2024-10-22T12:48:34","slug":"%e5%ae%9f%e6%a9%9f%e3%81%a7devtool%e3%81%aejavascript%e3%82%b3%e3%83%b3%e3%82%bd%e3%83%bc%e3%83%ab%e3%82%92%e4%bd%bf%e3%81%88%e3%81%aa%e3%81%84%e3%81%a8%e3%81%8d%e3%81%ae%e3%83%87%e3%83%90%e3%83%83","status":"publish","type":"post","link":"https:\/\/software.satoshis.jp\/?p=462","title":{"rendered":"\u5b9f\u6a5f\u3067DevTool\u306eJavaScript\u30b3\u30f3\u30bd\u30fc\u30eb\u3092\u4f7f\u3048\u306a\u3044\u3068\u304d\u306e\u30c7\u30d0\u30c3\u30b0\u65b9\u6cd5"},"content":{"rendered":"<p>Android\u30a2\u30d7\u30ea\u3067WebView\u3092\u4f7f\u3046\u3068\u3001JavaScript\u306e\u30c7\u30d0\u30c3\u30b0\u304c\u7d50\u69cb\u5927\u5909\u3067\u3059\u3002<\/p>\n<p>\u306a\u305c\u304b\u3068\u3044\u3046\u3068\u3001\u30d6\u30e9\u30a6\u30b6\u3067\u306f\u4f7f\u3048\u308b\u958b\u767a\u8005\u30c4\u30fc\u30eb(Devtool)\u304c\u4f7f\u3048\u306a\u3044\u306e\u3067\u3059\u3002<\/p>\n<p>\u666e\u901a\u306e\u30d6\u30e9\u30a6\u30b6\u306a\u3089JavaScript\u30b3\u30f3\u30bd\u30fc\u30eb\u3092\u898b\u308c\u3070\u3069\u3093\u306a\u30a8\u30e9\u30fc\u304c\u8d77\u3053\u3063\u3066\u3044\u308b\u306e\u304b\u308f\u304b\u308b\u306e\u3067\u3059\u304c\u3001JavaScript\u30b3\u30f3\u30bd\u30fc\u30eb\u3092\u898b\u308b\u3053\u3068\u3059\u3089\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>Logcat\u3082\u53c2\u7167\u3067\u304d\u306a\u3044\u5b9f\u6a5f\u3067JavaScript\u306e\u30c7\u30d0\u30c3\u30b0\u3092\u3057\u305f\u3044\u3068\u304d\u3001\u56f0\u308b\u3093\u3067\u3059\u3088\u306d\u3002<\/p>\n<p>\u305d\u3093\u306a\u3068\u304d\u306e\u30c7\u30d0\u30c3\u30b0\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>WebView\u3092\u30b3\u30f3\u30bd\u30fc\u30eb\u306e\u304b\u308f\u308a\u306b\u3059\u308c\u3070\u3044\u3044\u306e\u3067\u3059\u3002<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u3001\u30a8\u30e9\u30fc\u60c5\u5831\u306e\u8868\u793a\u3060\u3051\u3067\u3082JavaScript\u3067\u5b9f\u88c5\u3057\u3068\u3051\u3070\u3001\u4f55\u3067\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u308b\u306e\u304b\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n    &lt;title&gt;\u30c7\u30d0\u30c3\u30b0\u65b9\u6cd5&lt;\/title&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n    &lt;div id=&quot;errors&quot;&gt;&lt;\/div&gt;\r\n&lt;\/body&gt;\r\n&lt;script&gt;\r\nwindow.onload(function(){\r\n    var errors = document.getElementById(&#039;errors&#039;);\r\n    try {\r\n        \/\/ \u3044\u308d\u3044\u308d\r\n    } catch (e) {\r\n        var div = document.createElement(&#039;div&#039;);\r\n        div.textContent = e.message;\r\n        errors.appendChild(div);\r\n    }\r\n});\r\n&lt;\/script&gt;\r\n&lt;\/html&gt;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Android\u30a2\u30d7\u30ea\u3067WebView\u3092\u4f7f\u3046\u3068\u3001JavaScript\u306e\u30c7\u30d0\u30c3\u30b0\u304c\u7d50\u69cb\u5927\u5909\u3067\u3059\u3002 \u306a\u305c\u304b\u3068\u3044\u3046\u3068\u3001\u30d6\u30e9\u30a6\u30b6\u3067\u306f\u4f7f\u3048\u308b\u958b\u767a\u8005\u30c4\u30fc\u30eb(Devtool)\u304c\u4f7f\u3048\u306a\u3044\u306e\u3067\u3059\u3002 \u666e\u901a\u306e\u30d6\u30e9\u30a6\u30b6\u306a\u3089Ja &#8230; <\/p>\n","protected":false},"author":1,"featured_media":465,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31,169],"tags":[172,170,171],"class_list":["post-462","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-android","category-javascript","tag-devtool","tag-javascript","tag-logcat"],"nelio_content":{"autoShareEndMode":"never","automationSources":{"useCustomSentences":false,"customSentences":[]},"efiAlt":"","efiUrl":"","followers":[1],"highlights":[],"isAutoShareEnabled":true,"networkImageIds":[],"permalinkQueryArgs":[],"series":[],"suggestedReferences":[]},"views":566,"_links":{"self":[{"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/posts\/462","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=462"}],"version-history":[{"count":2,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/posts\/462\/revisions"}],"predecessor-version":[{"id":464,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/posts\/462\/revisions\/464"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/media\/465"}],"wp:attachment":[{"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=462"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=462"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=462"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}