{"id":4727,"date":"2013-10-21T05:42:00","date_gmt":"2013-10-20T20:42:00","guid":{"rendered":"http:\/\/www.webcyou.com\/?p=4727"},"modified":"2013-10-21T05:50:43","modified_gmt":"2013-10-20T20:50:43","slug":"%e3%80%90%e4%bf%9d%e5%ad%98%e7%89%88%e3%80%91%e3%82%b9%e3%83%9e%e3%83%bc%e3%83%88%e3%83%95%e3%82%a9%e3%83%b3%e5%88%b6%e4%bd%9c-%e3%82%88%e3%81%8f%e4%bd%bf%e3%81%86javascript-%e3%81%be%e3%81%a8","status":"publish","type":"post","link":"https:\/\/www.webcyou.com\/?p=4727","title":{"rendered":"\u3010\u4fdd\u5b58\u7248\u3011\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u5236\u4f5c\u3067\u3088\u304f\u4f7f\u3046JavaScript \u307e\u3068\u3081"},"content":{"rendered":"<p>\u4eca\u56de\u306f\u3001\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u30b5\u30a4\u30c8\u3001web\u30d3\u30e5\u30fcApp\uff08\u30cf\u30a4\u30d6\u30ea\u30c3\u30c9App\uff09\u7b49HTML5\u3001CSS3\u3001JavaScript\u7b49\u3092\u7528\u3044\u3066\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u5236\u4f5c\u3059\u308b\u969b\u306b\u3088\u304f\u4f7f\u3046\uff08\u4f7f\u3046\u3068\u4fbf\u5229\uff09JavaScript\u3092\u307e\u3068\u3081\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<h4>\u30e6\u30fc\u30b6\u30fc\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8<\/h4>\n<p>\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u30b5\u30a4\u30c8\u3092\u5236\u4f5c\u3059\u308b\u969b\u306b\u3001\u30e6\u30fc\u30b6\u30fc\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3092\u53d6\u5f97\u3057\u7aef\u672b\u306b\u3088\u308a\u8868\u793a\u3084\u95a2\u6570\u3092\u5b9f\u884c\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u304c\u591a\u3005\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u53d6\u5f97\u65b9\u6cd5\u3001\u632f\u5206\u3051\u65b9\u7b49\u306e\u8a73\u7d30\u306f\u5f53\u30b5\u30a4\u30c8\u3084\u305d\u306e\u4ed6\u306eweb\u60c5\u5831\u30b5\u30a4\u30c8\u306b\u3082\u591a\u3005UP\u3055\u308c\u3066\u3044\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u306e\u3067\u305d\u3061\u3089\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u305d\u308c\u3067\u306fscript<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">var ua = navigator.userAgent,\r\n      uaFunc = function(s,h)  { return (h.indexOf(s) &gt; -1)};\r\nvar userInfo = {};\r\n\r\nif(uaFunc(&quot;iPhone&quot;, ua)) {\r\n     userInfo.device = &quot;iPhone&quot;;\r\n} else if(uaFunc(&quot;iPad&quot;, ua)) {\r\n     userInfo.device = &quot;iPad&quot;;\r\n} else if(uaFunc(&quot;Android&quot;, ua)) {\r\n     userInfo.device = &quot;Android&quot;;\r\n} else {\r\n     userInfo.device = &quot;PC&quot;;\r\n}<\/pre>\n<p>\u66f4\u306b\u3001OS\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u3088\u3063\u3066\u8272\u3005\u5206\u5c90\u3055\u305b\u305f\u3044\u6642\u3082\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n<p>iPhone\u3001Android\u306eOS\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u53d6\u5f97\u65b9\u6cd5\u306f\u4ee5\u4e0b\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nfunction uaGetVer(myKey,contextEnd) {\r\n  var myStart = ua.indexOf(myKey) + myKey.length,\r\n       myEnd = ua.indexOf(contextEnd, myStart);\r\n  return \"Ver.\" + ua.substring (myStart,myEnd);\r\n}<\/pre>\n<p>\u305d\u308c\u305e\u308c\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u6587\u5b57\u5217\u3092\u691c\u7d22\u3057\u3001\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>iPhone\u306b\u95a2\u3057\u3066\u306f5_0\u7b49\u3001\u300c_\u300d\u304c\u4ed8\u304f\u8868\u8a18\u3068\u306a\u308a\u307e\u3059\u306e\u3067\u3001\u7f6e\u63db\u51e6\u7406\u7b49\u3092\u884c\u3046\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u307e\u3068\u3081\u305fscript\u306f\u3053\u3061\u3089\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><strong>script<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nvar ua = navigator.userAgent,\r\n    uaFunc = function(s,h)  { return (h.indexOf(s) &gt; -1)};\r\nvar userInfo = {};\r\n\r\nif(uaFunc(&quot;iPhone&quot;, ua)) {\r\n  userInfo.device = &quot;iPhone&quot;;\r\n} else if(uaFunc(&quot;iPad&quot;, ua)) {\r\n  userInfo.device = &quot;iPad&quot;;\r\n} else if(uaFunc(&quot;Android&quot;, ua)) {\r\n  userInfo.device = &quot;Android&quot;;\r\n} else {\r\n  userInfo.device = &quot;PC&quot;;\r\n}\r\n\r\nif(userInfo.device == &quot;iPhone&quot;) {\r\n  userInfo.ver = uaGetVer(&quot;iPhone OS&quot;, &quot;like&quot;);    \r\n} else if(userInfo.device == &quot;iPad&quot;) {\r\n  userInfo.ver = uaGetVer(&quot;CPU OS&quot;, &quot;like&quot;);\r\n} else if(userInfo.device == &quot;Android&quot;) {\r\n  userInfo.ver = uaGetVer(userInfo.device, &quot;;&quot;);    \r\n} else {\r\n  userInfo.ver = null;\r\n}\r\n\r\nfunction uaGetVer(myKey,contextEnd) {\r\n  var myStart = ua.indexOf(myKey) + myKey.length,\r\n       myEnd = ua.indexOf(contextEnd, myStart);\r\n  return &quot;Ver.&quot; + ua.substring (myStart,myEnd);\r\n}<\/pre>\n<h4>\u8981\u7d20\u4f4d\u7f6e\uff08\u5ea7\u6a19\uff09\u53d6\u5f97<\/h4>\n<p>\u7279\u5b9a\u306e\u8981\u7d20\u306e\u5ea7\u6a19\u3092\u53d6\u5f97\u3057\u305f\u3044\u3002\u3068\u8a00\u3063\u305f\u3068\u304d\u3001div.position \u7b49\u3067\u53d6\u5f97\u3067\u304d\u305d\u3046\u3067\u3067\u304d\u306a\u3044\u306e\u304cJavaScript\u3067\u3059\u3002w<\/p>\n<p>window\u306b\u5bfe\u3059\u308b\u5ea7\u6a19\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u306f\u3001\u7279\u5b9a\u306e\u8981\u7d20\u306e\u89aa\u8981\u7d20\u306eoffsetTop\u3092\u53d6\u5f97\u3057\u3001\u66f4\u306b\u305d\u306e\u89aa\u8981\u7d20\u306eoffsetTop..<\/p>\n<p>\u3068script\u306e\u518d\u5e30\u3092\u884c\u3044\u53d6\u5f97\u3057\u3066\u3044\u304f\u3084\u308a\u65b9\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">var elm = document.getElementById(\"elm\");\r\n\r\nvar getElmPosition = function(elm) {\r\n      var left = 0,\r\n          top = 0;\r\n      while(elm.parentNode) {\r\n        left += elm.offsetLeft;\r\n        top += elm.offsetTop;\r\n        elm = elm.parentNode;\r\n      }\r\n      return {\"left\" : left, \"top\" : top};\r\n    }\r\nvar elmPos = getElmPosition(elm);\r\n<\/pre>\n<h4>\u914d\u5217\u306e\u30af\u30ed\u30fc\u30f3\uff08\u30c7\u30a3\u30fc\u30d7\u30b3\u30d4\u30fc\uff09\u4f5c\u6210<\/h4>\n<p>\u3042\u308b\u914d\u5217\u3092\u30b3\u30d4\u30fc\u3057\u305f\u3044\u3002\u3068\u601d\u3044\u3001<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">var defaultItem = &#x5B;0,1,2,3,4,5,6,7];\r\ncloneItem = defaultItem;<\/pre>\n<p>\u3053\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3057\u3066\u3082JavaScript\u3067\u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53c2\u7167\u3057\u3066\u3044\u308b\u306e\u3067\u9014\u4e2d\u30b3\u30d4\u30fc\u5143\u306e\u5024\u304c\u5909\u66f4\u3059\u308b\u3068\u3001<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">defaultItem&#x5B;0] = 5;<\/pre>\n<p>\u30b3\u30d4\u30fc\u5148\u306e\u5024\u3082\u5909\u66f4\u3057\u3066\u3057\u307e\u3046\u7d50\u679c\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/351b2b1b0d519ae6f5ff6a9c1a069eb6.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/351b2b1b0d519ae6f5ff6a9c1a069eb6.png\" alt=\"\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2013-10-21 4.01.15\" width=\"243\" height=\"63\" class=\"alignnone size-full wp-image-4731\" \/><\/a><\/p>\n<p>\u30b3\u30d4\u30fc\u5148\u306e\u5024\u3092\u5909\u66f4\u3057\u306a\u3044\u69d8\u306b\u3059\u308b\u306b\u306f\u3001\u3055\u3089\u306b\u914d\u5217\u306b\u683c\u7d0d\u3057\u518d\u5e30\u3092\u884c\u3044\u30b3\u30d4\u30fc\u3059\u308b\u3084\u308a\u65b9\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nvar cloneItem = new Array();\r\nvar defaultItem = &#x5B;0,1,2,3,4,5,6,7];\r\n\r\n\/\/clone\r\nArray.prototype.clone = function() {\r\n  if (this&#x5B;0].constructor == Array ) {\r\n    var ar, n;\r\n    ar = new Array(this.length);\r\n    for(n = 0; n &lt; ar.length; n++) {\r\n      ar&#x5B;n] = this&#x5B;n].clone();\r\n    }\r\n    return ar;\r\n  }\r\n  return Array.apply(null, this);\r\n}\r\nfor(var i = 0, il = defaultItem.length; i &lt; il; i++) {\r\n  cloneItem = defaultItem.clone();\r\n}\r\n\r\ndefaultItem&#x5B;0] = 5;<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/306eb205df231111fe2a7728bec0b26a.png\" alt=\"\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2013-10-21 4.00.43\" width=\"244\" height=\"54\" class=\"alignnone size-full wp-image-4730\" \/><\/p>\n<h4>translate\u30d7\u30ed\u30d1\u30c6\u30a3\u53d6\u5f97<\/h4>\n<p>\u73fe\u5728\u9069\u5fdc\u3055\u308c\u3066\u3044\u308bCSS Style\u3092JavaScript\u3067style\u3092\u53d6\u5f97\u3059\u308b\u969b\u3001<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">getComputedStyle(Element, null);<\/pre>\n<p>\u7b49\u3067\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3068\u306a\u3063\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/145d3c9b21a9af8f68a5259b81b1969a.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/145d3c9b21a9af8f68a5259b81b1969a.png\" alt=\"\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2013-10-21 4.28.04\" width=\"253\" height=\"154\" class=\"alignnone size-full wp-image-4728\" \/><\/a><\/p>\n<p>\u66f4\u306b\u3053\u306e\u3088\u3046\u306bCSS\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u3001\u5404\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u5024\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">getComputedStyle(Element, null).getPropertyValue(\"css\u30d7\u30ed\u30d1\u30c6\u30a3\u540d\");<\/pre>\n<p>web\u6280\u8853\u3092\u7528\u3044\u3066\u3001\u3088\u308a\u30ea\u30c3\u30c1\u306a\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u4f5c\u308d\u3046\u3068\u3057\u305f\u969b\u3001CSS3 \u306etranslate\u3084scale\u7b49\u306etransform\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u6271\u3046\u3053\u3068\u304c\u591a\u3005\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067translate\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u53d6\u5f97\u3057\u3088\u3046\u3068\u3001<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">window.getComputedStyle(elm, null).getPropertyValue(\"-webkit-transform\");<\/pre>\n<p>\u3068\u3057\u3066\u3082<\/p>\n<p><a href=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/e03ca721e376fe8553d073c433622f02.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/e03ca721e376fe8553d073c433622f02.png\" alt=\"\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2013-10-21 5.03.33\" width=\"195\" height=\"19\" class=\"alignnone size-full wp-image-4729\" \/><\/a><\/p>\n<p>\u3053\u306e\u3088\u3046\u306a\u5024\u3067\u5e30\u3063\u3066\u304d\u3066\u601d\u3063\u305f\u3088\u3046\u306b\u5024\u304c\u53d6\u308c\u306a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u306f\u3001transform\u304cmatarix\u5024\u3067\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u70ba\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/f604b6c0f60ee0f0fb0ae885389ce2ba.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/f604b6c0f60ee0f0fb0ae885389ce2ba.png\" alt=\"\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2013-10-21 4.28.52\" width=\"342\" height=\"18\" class=\"alignnone size-full wp-image-4732\" srcset=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/f604b6c0f60ee0f0fb0ae885389ce2ba.png 342w, https:\/\/www.webcyou.com\/wp-content\/uploads\/f604b6c0f60ee0f0fb0ae885389ce2ba-300x15.png 300w\" sizes=\"auto, (max-width: 342px) 100vw, 342px\" \/><\/a><\/p>\n<p>matarix\u306fmatrix(a, b, c, d, e, f) \u3068\u306e\u69d8\u306b6\u3064\u306e\u5024\u3067\u8981\u7d20\u3092\u5909\u5316\u3055\u305b\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p><strong>1\u756a\u76ee\u306e\u6570\u5024\u306f\u3001\u6c34\u5e73\u65b9\u5411\u306e\u7e2e\u5c3a\uff08a\uff09<\/strong><\/p>\n<p><strong>2\u756a\u76ee\u306e\u6570\u5024\u306f\u3001\u5782\u76f4\u65b9\u5411\u306e\u50be\u659c\u7387\uff08b\uff09<\/strong><\/p>\n<p><strong>3\u756a\u76ee\u306e\u6570\u5024\u306f\u3001\u6c34\u5e73\u65b9\u5411\u306e\u50be\u659c\u7387\uff08c\uff09<\/strong><\/p>\n<p><strong>4\u756a\u76ee\u306e\u6570\u5024\u306f\u3001\u5782\u76f4\u65b9\u5411\u306e\u7e2e\u5c3a\uff08d\uff09<\/strong><\/p>\n<p><strong>5\u756a\u76ee\u306e\u6570\u5024\u306f\u3001\u6c34\u5e73\u65b9\u5411\u306e\u79fb\u52d5\u8ddd\u96e2\uff08e\uff09<\/strong><\/p>\n<p><strong>6\u756a\u76ee\u306e\u6570\u5024\u306f\u3001\u5782\u76f4\u65b9\u5411\u306e\u79fb\u52d5\u8ddd\u96e2\uff08f\uff09<\/strong><\/p>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u5024\u306fmatrix(1, 0, 0, 1, 0, 0)\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>translate\u306e\u5834\u5408\u3060\u3068\u3001 5\u756a\u76ee\u306e\u6c34\u5e73\u65b9\u5411\u306e\u79fb\u52d5\u8ddd\u96e2\u3068\u30016\u756a\u76ee\u306e\u5782\u76f4\u65b9\u5411\u306e\u79fb\u52d5\u8ddd\u96e2\u3092\u5909\u5316\u3057\u307e\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001matrix(1, 0, 0, 1, 10, 10)\u306ftranslate(10px,10px)\u3068\u540c\u3058\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306ematrix\u5024\u3092\u53d6\u5f97\u3059\u308bscript\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">var computedStyle,mat,a,b,c,d,e,f,\r\nreMat = \/matrix\\(\\s*(-?\\d+(?:\\.\\d+)?)\\s*,\\s*(-?\\d+(?:\\.\\d+)?)\\s*,\\s*(-?\\d+(?:\\.\\d+)?)\\s*,\\s*(-?\\d+(?:\\.\\d+)?)\\s*\\,\\s*(-?\\d+(?:\\.\\d+)?)\\s*,\\s*(-?\\d+(?:\\.\\d+)?)\\s*\\)\/;\r\n\r\ncomputedStyle = window.getComputedStyle(elm, null);\r\nmat = computedStyle&#x5B;'-webkit-transform'].match(reMat).slice(1);\r\na = parseFloat(mat&#x5B;0], 10);\r\nb = parseFloat(mat&#x5B;1], 10);\r\nc = parseFloat(mat&#x5B;2], 10);\r\nd = parseFloat(mat&#x5B;3], 10);\r\ne = parseFloat(mat&#x5B;4], 10);\r\nf = parseFloat(mat&#x5B;5], 10);<\/pre>\n<h5>\u4f7f\u7528\u4f8b\uff1a<\/h5>\n<p><strong>HTML<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">&lt;div id=&quot;result&quot;&gt;&lt;\/div&gt;\r\n&lt;div id=&quot;elm&quot; style=&quot;margin:60px 0 0 80px; width:100px; height:100px; background:#f00; -webkit-transform:translate(20px,10px);&quot;&gt;&lt;\/div&gt;<\/pre>\n<p><strong>JavaScript<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">var div = document.getElementById(&quot;result&quot;),\r\n    elm = document.getElementById(&quot;elm&quot;);\r\n\r\nvar computedStyle,mat,a,b,c,d,e,f,\r\nreMat = \/matrix\\(\\s*(-?\\d+(?:\\.\\d+)?)\\s*,\\s*(-?\\d+(?:\\.\\d+)?)\\s*,\\s*(-?\\d+(?:\\.\\d+)?)\\s*,\\s*(-?\\d+(?:\\.\\d+)?)\\s*\\,\\s*(-?\\d+(?:\\.\\d+)?)\\s*,\\s*(-?\\d+(?:\\.\\d+)?)\\s*\\)\/; \r\n\r\ncomputedStyle = window.getComputedStyle(elm, null);\r\nmat = computedStyle&#x5B;'-webkit-transform'].match(reMat).slice(1);\r\na = parseFloat(mat&#x5B;0], 10);\r\nb = parseFloat(mat&#x5B;1], 10);\r\nc = parseFloat(mat&#x5B;2], 10);\r\nd = parseFloat(mat&#x5B;3], 10);\r\ne = parseFloat(mat&#x5B;4], 10);\r\nf = parseFloat(mat&#x5B;5], 10);\r\n\r\ndiv.innerHTML = &quot;mat\uff1a&quot; + mat + &quot;&lt;br&gt;&quot; + &quot;a\uff1a&quot; + a + &quot;&lt;br&gt;&quot; + &quot;b\uff1a&quot; + b + &quot;&lt;br&gt;&quot; + &quot;c\uff1a&quot; + c + &quot;&lt;br&gt;&quot; + &quot;d\uff1a&quot; + d + &quot;&lt;br&gt;&quot; + &quot;e\uff1a&quot; + e + &quot;&lt;br&gt;&quot; + &quot;f\uff1a&quot; + f + &quot;&lt;br&gt;&quot;;<\/pre>\n<p><a href=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/765dd07dafe1665fdee09bcb6ef3aa68.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/765dd07dafe1665fdee09bcb6ef3aa68.png\" alt=\"\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2013-10-21 5.36.52\" width=\"196\" height=\"182\" class=\"alignnone size-full wp-image-4733\" \/><\/a><\/p>\n<h4>\u4e8c\u5ea6\u62bc\u3057\u9632\u6b62<\/h4>\n<p>\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u30b5\u30a4\u30c8\u3092\u5236\u4f5c\u3057\u3066\u3044\u308b\u3068\u3001\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u3066\u51e6\u7406\u307e\u3067\u306b\u6642\u9593\u304c\u304b\u304b\u308a\u3001<\/p>\n<p>\u30e6\u30fc\u30b6\u30fc\u304c\u300c\u62bc\u3057\u3066\u306a\u3044\u300d\u3068\u5224\u65ad\u3057\u3066\u3057\u307e\u3044\u3082\u3046\u4e00\u5ea6\u30dc\u30bf\u30f3\u304c\u62bc\u3055\u308c\u3066\u3001\u4e8c\u5ea6\u30a2\u30af\u30bb\u30b9\u304c\u884c\u3063\u3066\u3057\u307e\u3044\u30a8\u30e9\u30fc\u304c\u8d77\u304d\u3066\u3057\u307e\u3063\u305f\u3002<\/p>\n<p>\u306a\u3069\u306e\u30c8\u30e9\u30d6\u30eb\u304c\u8d77\u3053\u308a\u304c\u3061\u3067\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u30b3\u30ec\u3092\u9632\u6b62\u3059\u308b\u51e6\u7406\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u6700\u521d\u306etouchend\u304b\u3089\u4e00\u5b9a\u6642\u9593\u7d4c\u904e\u3057\u306a\u3044\u3068\u3082\u3046\u4e00\u5ea6\u5b9f\u884c\u3067\u304d\u306a\u3044\u69d8\u306b\u3059\u308b\u3084\u308a\u65b9\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n function noDoubleTap(doubleTapElms) {\r\n    var accessTime = 1500,\r\n        doubleAccess = false,\r\n        doubleTapElms = doubleTapElms;\r\n    var doubleTapController = function() {\r\n      var that = this;\r\n      that.init = function() {\r\n        for(var i = 0;i &lt; doubleTapElms.length;i++) {\r\n          doubleTapElms&#x5B;i].addEventListener(&quot;click&quot;, function(e){that.doubleTapFunc(e);}, false);\r\n          doubleTapElms&#x5B;i].addEventListener(&quot;touchstart&quot;, function(e){that.doubleTapFunc(e);}, false);\r\n          doubleTapElms&#x5B;i].addEventListener(&quot;touchend&quot;, function(e){that.doubleTapFunc(e);}, false);\r\n        }\r\n      }\r\n    };\r\n    doubleTapController.prototype = {\r\n      doubleTapFunc: function(e){\r\n        if(e.type == &quot;touchstart&quot; || e.type == &quot;click&quot;){\r\n          return;\r\n        } else{\r\n          if(doubleAccess == false){\r\n            doubleAccess = true;\r\n            setTimeout(function(){\r\n              doubleAccess = false;\r\n            },accessTime);\r\n          } else{\r\n            e.preventDefault();\r\n            return;\r\n          }\r\n        }\r\n      }\r\n    }\r\n    var doubleTapControll = newdoubleTapController();\r\n        doubleTapControll.init();\r\n  }\r\n  document.addEventListener(&quot;DOMContentLoaded&quot;, function(){\r\n    var doubleTapElms,\r\n        doubleTapClass =&#x5B;'.js_doubleTap'];\r\n    for(var name in doubleTapClass) {\r\n      if(doubleTapClass.hasOwnProperty(name)){\r\n        doubleTapElms = document.querySelectorAll(doubleTapClass&#x5B;name]);\r\n        noDoubleTap(doubleTapElms);\r\n      }\r\n    }\r\n  }, false);<\/pre>\n<h4>Ajax\u51e6\u7406<\/h4>\n<p>\u6700\u5f8c\u306bAjax\u51e6\u7406\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u305e\u308c\u3001\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u969b\u3001\u6210\u529f\u3057\u305f\u969b\u306e\u51e6\u7406\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nvar AjaxTime = 10000;\r\nvar AjaxPath = {\r\n    requestFile: \"ajaxPath\"\r\n};\r\n\r\nvar AjaxController = function(){};\r\nAjaxController.prototype ={\r\n  createHttpRequest: function() {\r\n    try {\r\n      return newXMLHttpRequest();\r\n    } catch(e){}\r\n  },\r\n    \r\n  ajaxError: function() { return; },\r\n      \r\n  requestFile: function() {\r\n    var that = this,\r\n    httpObj = that.createHttpRequest();\r\n    var timeout = false,\r\n        timer =setTimeout(function(){\r\n          timeout = true;\r\n          httpObj.abort();\r\n        }, AjaxTime);\r\n\r\n    httpObj.open(\"POST\",AjaxPath.requestFile, true);\r\n    httpObj.onreadystatechange = function() {\r\n      if(httpObj.readyState !== 4){ return; }\r\n      if(timeout) {\r\n        that.ajaxError();\r\n        return;\r\n      };\r\n      clearTimeout(timer);\r\n      if(httpObj.status == 200){ }\r\n    }\r\n    httpObj.send(null);\r\n    return;\r\n  }\r\n}<\/pre>\n<p>\u3067\u306f\u3067\u306f\u3041<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u56de\u306f\u3001\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u30b5\u30a4\u30c8\u3001web\u30d3\u30e5\u30fcApp\uff08\u30cf\u30a4\u30d6\u30ea\u30c3\u30c9App\uff09\u7b49HTML5\u3001CSS3\u3001JavaScript\u7b49\u3092\u7528\u3044\u3066\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u5236\u4f5c\u3059\u308b\u969b\u306b\u3088\u304f\u4f7f\u3046\uff08\u4f7f\u3046\u3068\u4fbf\u5229\uff09JavaScript\u3092\u307e\u3068\u3081\u3066\u307f\u307e\u3057\u305f\u3002 \u30e6\u30fc\u30b6\u30fc [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[171,59,167,177,168,176,40,166,37,47,179,50,46,169,107,120,69,96,95],"class_list":["post-4727","post","type-post","status-publish","format-standard","hentry","category-javascript","tag-android","tag-android-sdk","tag-css","tag-css3","tag-html","tag-html5","tag-ios-sdk","tag-iphone","tag-iphone-","tag-javascript-2","tag-jquery","tag-jquery-mobile","tag-js","tag-mac","tag-mamp","tag-sass","tag-transform","tag-transition","tag-95"],"_links":{"self":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/4727","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4727"}],"version-history":[{"count":6,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/4727\/revisions"}],"predecessor-version":[{"id":4737,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/4727\/revisions\/4737"}],"wp:attachment":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4727"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4727"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4727"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}