{"id":1626,"date":"2020-03-24T12:52:18","date_gmt":"2020-03-24T03:52:18","guid":{"rendered":"https:\/\/qol-kk.com\/wp2\/?p=1626"},"modified":"2020-03-24T12:52:18","modified_gmt":"2020-03-24T03:52:18","slug":"post-1626","status":"publish","type":"post","link":"https:\/\/qol-kk.com\/wp2\/blog\/2020\/03\/24\/post-1626\/","title":{"rendered":"\u30a8\u30e9\u30fc\u6539\u5584\uff1aIE\u3060\u3051\u8868\u306e\u884c\u30ea\u30f3\u30af(<tr data-href=\u201dhoge\u201d>)\u304c\u6a5f\u80fd\u3057\u306a\u3044"},"content":{"rendered":"<h2>\u30a8\u30e9\u30fc\u6539\u5584\uff1aIE\u3060\u3051\u8868\u306e\u884c\u30ea\u30f3\u30af(&lt;tr data-href=\u201dhoge\u201d&gt;)\u304c\u6a5f\u80fd\u3057\u306a\u3044<\/h2>\n<p>\u524d\u8a18\u4e8b\u306b\u5f15\u304d\u7d9a\u304dIE\u3060\u3051\u3067\u304d\u306a\u3044\u30b7\u30ea\u30fc\u30ba\u3002<\/p>\n<p>\u4eca\u56de\u306ftable\u306e\u884c\u306b\u5bfe\u3057\u3066\u30ea\u30f3\u30af\u3092\u5f35\u308b<span class=\"markerBlue\">&lt;tr data-href=\u201dhoge\u201d&gt; <\/span>\u3067\u3059\u3002<br \/>\n\u3053\u3044\u3064\u7d50\u69cb\u4fbf\u5229\u3067\u3001MySQL\u3067\u30ec\u30b3\u30fc\u30c9\u3092\u30c6\u30fc\u30d6\u30eb\u306b\u6d41\u3057\u3066\u884c\u30ea\u30f3\u30af\u8cbc\u308b\u3068\u8a18\u8f09\u6587\u5b57\u6570\u3092\u5927\u304d\u304f\u6e1b\u3089\u305b\u307e\u3059\u3002<\/p>\n<p>\u306a\u306e\u3067\u591a\u7528\u3057\u3066\u3044\u305f\u306e\u3067\u3059\u304cIE\u3067\u898b\u3066\u307f\u308b\u3068\u52d5\u304b\u306a\u3044\uff01<\/p>\n<h3>\u307e\u305a\u306f\u89e3\u6c7a\u65b9\u6cd5\u306b\u3064\u3044\u3066<\/h3>\n<p>\u3053\u3046\u66f8\u304f\u3068TR\u30bf\u30b0\u3067\u306e\u30ea\u30f3\u30af\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">jQuery( function($) {\r\n    $('tr[data-href]').addClass('clickable').click( function() {\r\n        window.location = $(this).attr('data-href');\r\n    }).find('a').hover( function() {\r\n        $(this).parents('tr').unbind('click');\r\n    }, function() {\r\n        $(this).parents('tr').click( function() {\r\n            window.location = $(this).attr('data-href');\r\n        });\r\n    });\r\n});<\/pre>\n<h3>\u30ea\u30f3\u30af\u304c\u52d5\u304b\u306a\u304b\u3063\u305f\u539f\u56e0\u306b\u3064\u3044\u3066<\/h3>\n<p>data-href\u306b\u3064\u3044\u3066\u8a18\u8f09\u3057\u305fjs\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p>\u79c1\u306e\u5834\u5408\u306f\u4e0b\u306e\u69d8\u306b\u66f8\u3044\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<div>\n<pre class=\"lang:default decode:true\">jQuery( function($) {\r\n    $('tbody tr[data-href]').addClass('clickable').click( function() {\r\n        window.location = $(this).attr('data-href');\r\n    }).find('a').hover( function() {\r\n        $(this).parents('tr').unbind('click');\r\n    }, function() {\r\n        $(this).parents('tr').click( function() {\r\n            window.location = $(this).attr('data-href');\r\n        });\r\n    });\r\n});<\/pre>\n<p>\u305d\u3046\u3001tbody\u304b\u3089\u66f8\u304d\u59cb\u3081\u3066\u307e\u3059\u3002<\/p>\n<p>\u3093\u3067\u3001\u30ea\u30f3\u30af\u304c\u98db\u3070\u306a\u3044\u66f8\u3044\u305f\u30c6\u30fc\u30d6\u30eb\u3092\u898b\u308b\u3068\u3053\u3093\u306a\u611f\u3058<\/p>\n<pre class=\"lang:default decode:true \">&lt;table&gt;\r\n  &lt;colgroup&gt;\r\n    &lt;col style=\"width:25%;\"&gt;\r\n    &lt;col style=\"width:25%;\"&gt;\r\n    &lt;col style=\"width:25%;\"&gt;\r\n    &lt;col style=\"width:25%;\"&gt;\r\n  &lt;\/colgroup&gt;\r\n  &lt;tr&gt;\r\n    &lt;th&gt;&lt;\/th&gt;\r\n    &lt;th&gt;&lt;\/th&gt;\r\n    &lt;th&gt;&lt;\/th&gt;\r\n    &lt;th&gt;&lt;\/th&gt;\r\n  &lt;\/tr&gt;\r\n  @foreach($hogas as $hoga)\r\n  &lt;tr data-href=\"\/hogehoge\/{{$hoga['id']}}\/edit\"&gt;\r\n    &lt;td&gt;{{$hoga-&gt;column01}}&lt;\/td&gt;\r\n    &lt;td&gt;{{$hoga-&gt;column02}}&lt;\/td&gt;\r\n    &lt;td&gt;{{$hoga-&gt;column03}}&lt;\/td&gt;\r\n    &lt;td&gt;{{$hoga-&gt;column04}}&lt;\/td&gt;\r\n  &lt;\/tr&gt;\r\n  @endforeach\r\n&lt;\/table&gt;<\/pre>\n<p>\u306f\u3044\u3001tbody\u3082thead\u3082\u66f8\u3044\u3066\u307e\u305b\u3093\u306d\u3002<\/p>\n<p>\u3053\u308c\u304c\u539f\u56e0\u3067\u3057\u305f\u3002\u3068\u3044\u3046\u304b\u306d\u3001\u3053\u308c\u3067\u52d5\u304f\u69d8\u306b\u89e3\u91c8\u3057\u3066\u304f\u308c\u308bchrome\u69d8\u30b9\u30d0\u3089\u3057\u3044\u3067\u3059\u3002<\/p>\n<h3>\u307e\u3068\u3081<\/h3>\n<p>\u307e\u3041\u3053\u3046\u3044\u3046\u7d30\u304b\u3044\u306e\u306f\u7d4c\u9a13\u3057\u306a\u3044\u3068\u89e3\u3089\u306a\u3044\u4e8b\u306a\u306e\u3067\u3001\u4eca\u56de\u306f\u826f\u3044\u7d4c\u9a13\u3092\u3055\u305b\u3066\u3082\u3089\u3063\u305f\u306a\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u30a8\u30e9\u30fc\u6539\u5584\uff1aIE\u3060\u3051\u8868\u306e\u884c\u30ea\u30f3\u30af(&lt;tr data-href=\u201dhoge\u201d&gt;)\u304c\u6a5f\u80fd\u3057\u306a\u3044 \u524d\u8a18\u4e8b\u306b\u5f15\u304d\u7d9a\u304dIE\u3060\u3051\u3067\u304d\u306a\u3044\u30b7\u30ea\u30fc\u30ba\u3002 \u4eca\u56de\u306ftable\u306e\u884c\u306b\u5bfe\u3057\u3066\u30ea\u30f3\u30af\u3092\u5f35\u308b&lt;tr data-href [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":52,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","_lightning_design_setting":[],"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[42],"tags":[54,566,565,560,562,557,563],"class_list":["post-1626","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-html-memorandum","tag-html","tag-ie","tag-jquery","tag-562","tag-557","tag-563"],"veu_head_title_object":{"title":"","add_site_title":""},"jetpack_publicize_connections":[],"jetpack-related-posts":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/qol-kk.com\/wp2\/wp-content\/uploads\/2018\/08\/interface1.jpg","_links":{"self":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/1626","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/comments?post=1626"}],"version-history":[{"count":0,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/1626\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/media\/52"}],"wp:attachment":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/media?parent=1626"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/categories?post=1626"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/tags?post=1626"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}