Warning: Declaration of Jetpack_IXR_Client::query() should be compatible with IXR_Client::query(...$args) in /home/onedesign/1design.jp/public_html/wp-content/plugins/jetpack/vendor/automattic/jetpack-connection/legacy/class-jetpack-ixr-client.php on line 0

Warning: Cannot modify header information - headers already sent by (output started at /home/onedesign/1design.jp/public_html/wp-content/plugins/jetpack/vendor/automattic/jetpack-connection/legacy/class-jetpack-ixr-client.php:0) in /home/onedesign/1design.jp/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/onedesign/1design.jp/public_html/wp-content/plugins/jetpack/vendor/automattic/jetpack-connection/legacy/class-jetpack-ixr-client.php:0) in /home/onedesign/1design.jp/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/onedesign/1design.jp/public_html/wp-content/plugins/jetpack/vendor/automattic/jetpack-connection/legacy/class-jetpack-ixr-client.php:0) in /home/onedesign/1design.jp/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/onedesign/1design.jp/public_html/wp-content/plugins/jetpack/vendor/automattic/jetpack-connection/legacy/class-jetpack-ixr-client.php:0) in /home/onedesign/1design.jp/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/onedesign/1design.jp/public_html/wp-content/plugins/jetpack/vendor/automattic/jetpack-connection/legacy/class-jetpack-ixr-client.php:0) in /home/onedesign/1design.jp/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/onedesign/1design.jp/public_html/wp-content/plugins/jetpack/vendor/automattic/jetpack-connection/legacy/class-jetpack-ixr-client.php:0) in /home/onedesign/1design.jp/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/onedesign/1design.jp/public_html/wp-content/plugins/jetpack/vendor/automattic/jetpack-connection/legacy/class-jetpack-ixr-client.php:0) in /home/onedesign/1design.jp/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/onedesign/1design.jp/public_html/wp-content/plugins/jetpack/vendor/automattic/jetpack-connection/legacy/class-jetpack-ixr-client.php:0) in /home/onedesign/1design.jp/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1794
{"id":127,"date":"2015-12-02T09:01:27","date_gmt":"2015-12-02T00:01:27","guid":{"rendered":"https:\/\/1design.jp\/?p=127"},"modified":"2016-11-21T21:23:30","modified_gmt":"2016-11-21T12:23:30","slug":"jquery-%e3%81%ae%e3%82%bb%e3%83%ac%e3%82%af%e3%82%bf%e3%82%92%e3%82%ad%e3%83%a3%e3%83%83%e3%82%b7%e3%83%a5%e3%81%97%e3%81%a6%e3%81%bf%e3%81%9f%e3%82%89180%e5%80%8d%e3%81%8f%e3%82%89%e3%81%84%e6%97%a9","status":"publish","type":"post","link":"https:\/\/1design.jp\/web-development\/javascript\/127","title":{"rendered":"jQuery \u306e\u30bb\u30ec\u30af\u30bf\u3092\u30ad\u30e3\u30c3\u30b7\u30e5\u3057\u3066\u307f\u305f\u3089180\u500d\u304f\u3089\u3044\u65e9\u304f\u306a\u3063\u305f\u3002 \u30ad\u30e3\u30c3\u30b7\u30e5\u3059\u3079\u3057\uff01"},"content":{"rendered":"

\u521d\u5fc3\u8005\u3060\u3063\u305f\u9803\u3001\u8ab0\u3057\u3082\u4e00\u5ea6\u304f\u3089\u3044\u306f<\/strong>\u3053\u3093\u306a\u611f\u3058\u306e\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u305f\u3053\u3068\u304c\u3042\u308b\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n

$('#js-button').on('click', function () {\r\n    $(this).text('click');\r\n});\r\n\r\n$('#js-button').on('mouseenter', function () {\r\n    $(this).text('mouseenter');\r\n});<\/pre>\n

\u3053\u306e\u30b3\u30fc\u30c9\u306e\u3069\u3053\u304c\u554f\u984c\u304b\u3068\u3044\u3046\u3068\u3001$('#js-button')<\/code>\u30922\u56de\u3001$(this)<\/code>\u30922\u56de\u66f8\u3044\u3066\u3057\u307e\u3063\u305f\u3068\u3053\u308d\u3067\u3059\u3002<\/p>\n

\u5168\u304f\u540c\u3058\u51e6\u7406\u30924\u56de\u3082\u884c\u3046\u306e\u306f\u660e\u3089\u304b\u306b\u975e\u52b9\u7387<\/strong>\u3067\u3059\u3088\u306d\u3002<\/p>\n

\u3060\u304b\u3089\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3001\u4e00\u65e6\u623b\u308a\u5024\u306ejQuery\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u5909\u6570\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u3057\u3066\u304a\u3044\u3066\u3001\u3042\u3068\u304b\u3089\u305d\u306e\u5909\u6570\u3092\u53c2\u7167\u3059\u308b\u3088\u3046\u306b\u3057\u305f\u307b\u3046\u304c\u51e6\u7406\u304c1\u56de\u3067\u6e08\u3080\u306e\u3067\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u826f\u3044\u3067\u3059\u3002<\/p>\n

var $button = $('#js-button');\r\n\r\n$button.on('click', function () {\r\n    $button.text('click');\r\n});\r\n\r\n$button.on('mouseenter', function () {\r\n    $button.text('mouseenter');\r\n});<\/pre>\n

\u300c\u3067\u3082\u2026\u3000\u3044\u3061\u3044\u3061\u9762\u5012\u3060\u3088\u306a\u30fc\u300d<\/h2>\n

\u3044\u3044\u306e\u3067\u3059\u304c\u3001\u3053\u306e\u3088\u3046\u306a\u518d\u5229\u7528\u306e\u305f\u3081\u3060\u3051\u306b\u3068\u3063\u3066\u304a\u3044\u305f\u5909\u6570\u304c\u5897\u3048\u3066\u304f\u308b\u3068\u3001\u7ba1\u7406\u304c\u9762\u5012\u306b\u306a\u308b\u3053\u3068\u3082\u3042\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n

\u7279\u306b\u30e2\u30b8\u30e5\u30fc\u30eb\u306a\u3093\u304b\u3092\u4f7f\u3063\u3066\u308b\u3068\u3001\u4ed6\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u3082\u518d\u5229\u7528\u3057\u305f\u3044\u5834\u5408\u3001\u518d\u5229\u7528\u3057\u305f\u3044\u5909\u6570\u3092\u30b0\u30ed\u30fc\u30d0\u30eb\u304b\u3089\u3067\u3082\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u304f\u306a\u308b\u306e\u3067\u3001\u4f55\u304b\u3068\u9762\u5012\u306a\u3093\u3067\u3059\u3002<\/p>\n

\u305d\u308c\u306b\u3001\u4e0b\u8a18\u30b3\u30fc\u30c9\u306e\u5834\u5408\u3060\u3068\u3001$(this)<\/code>\u306e\u623b\u308a\u5024\u304c\u5fc5\u305a\u3057\u3082\u5e38\u306b\u540c\u3058\u3068\u306f\u9650\u3089\u306a\u3044\u306e\u3067\u3001\u518d\u5229\u7528\u3057\u3065\u3089\u3044\u3067\u3059\u3002<\/p>\n

$('.button').on('click', function () {\r\n    $(this).text(this.value);\r\n});<\/pre>\n

\u89e3\u6c7a\u7b56\u3001\u300c\u52dd\u624b\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u3057\u3066\u304f\u308c\u308b\u300d\u30e9\u30c3\u30d1\u30fc\u95a2\u6570\u3092\u4f5c\u308b<\/h2>\n

\u3044\u3061\u3044\u3061\u300c\u623b\u308a\u5024\u3092\u5909\u6570\u306b\u5165\u308c\u3066\u518d\u5229\u7528\u3057\u306a\u304d\u3083\u300d\u3068\u3044\u3046\u5f37\u8feb\u89b3\u5ff5<\/strong>\u304b\u3089\u89e3\u653e\u3059\u3079\u304f\u3001$$<\/code>\u3068\u3044\u3046\u4fbf\u5229\u306a\u30e9\u30c3\u30d1\u30fc\u95a2\u6570\u3092\u4f5c\u308a\u307e\u3057\u305f\u3002<\/p>\n

\u30ad\u30e3\u30c3\u30b7\u30e5\u3057\u305f\u3044\u3068\u3053\u308d\u3067$<\/code>\u306b\u7f6e\u304d\u63db\u3048\u308b\u611f\u3058\u3067\u4f7f\u3044\u307e\u3059\u3002<\/p>\n

$$('.button').on('click', function () {\r\n    $$(this).text(this.value);\r\n});\r\n\r\n$$('.button-2').on('click', function () {\r\n    $$(this).text(this.value);\r\n});<\/pre>\n

\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u66f4\u65b0\u3057\u305f\u3044\u5834\u5408\u306f\u7b2c2\u5f15\u6570\u3092true<\/code>\u306b\u3059\u308c\u3070\u3044\u3044\u306e\u3067\u3059\u3002<\/p>\n

$$('.button-2',true)<\/pre>\n

\u7d50\u8ad6<\/h2>\n

\u30c6\u30b9\u30c8\u3057\u3066\u307f\u305f\u3068\u3053\u308d\u3001Chrome 43 \u306e\u74b0\u5883\u3067\u3001\u5e73\u5747\u3067\u5927\u4f53180\u500d<\/strong>\u304f\u3089\u3044\u65e9\u304f\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n

\u3082\u3061\u308d\u3093\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u3057\u305f\u304b\u3089\u3068\u8a00\u3063\u3066\u4f53\u611f\u901f\u5ea6\u304c\u5909\u308f\u308b\u308f\u3051\u3067\u306f\u306a\u3044<\/strong>\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u79c1\u307f\u305f\u3044\u306a\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u6c17\u306b\u306a\u308b\u4eba\u306f\u6c17\u306b\u306a\u3063\u3061\u3083\u3046\u3082\u306e\u3067\u3059\uff57\u3000\u7d20\u65e9\u304f\u52d5\u304d\u307e\u308f\u308b\u6211\u304c\u5bb6\u306e\u30d7\u30fc\u30c6\u30a3\u3092\u30a2\u30a4\u30ad\u30e3\u30c3\u30c1\u306b\u4f7f\u3063\u3066\u307e\u3059\u304c\u3001\u5b9f\u969b\u306f\u901f\u304f\u306a\u3063\u3066\u3082\u6c17\u3065\u304b\u306a\u3044\u306e\u3067\u3059\u2026<\/p>\n

\u6c17\u4f11\u3081\u306b\u3057\u304b\u306a\u3089\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u304c\uff57\u3001\u826f\u304b\u3063\u305f\u3089\u8a66\u3057\u3066\u307f\u3066\u4e0b\u3055\u3044\uff01<\/p>\n

jquery-selector-cache<\/a>(GitHub)<\/p>\n

npm install jquery-selector-cache -D<\/code>\u3067\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059(AMD\u3068CommonJS\u5bfe\u5fdc)\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u521d\u5fc3\u8005\u3060\u3063\u305f\u9803\u3001\u8ab0\u3057\u3082\u4e00\u5ea6\u304f\u3089\u3044\u306f\u3053\u3093\u306a\u611f\u3058\u306e\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u305f\u3053\u3068\u304c\u3042\u308b\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\uff1f $(‘#js-button’).on(‘click’, function () { $(this).text(‘click’)…<\/p>\n","protected":false},"author":2,"featured_media":285,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","footnotes":""},"categories":[21],"tags":[],"jetpack_featured_media_url":"https:\/\/1design.jp\/wp-content\/uploads\/2015\/12\/eyecatch.jpg","jetpack_shortlink":"https:\/\/wp.me\/p6Y4kL-23","_links":{"self":[{"href":"https:\/\/1design.jp\/wp-json\/wp\/v2\/posts\/127"}],"collection":[{"href":"https:\/\/1design.jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/1design.jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/1design.jp\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/1design.jp\/wp-json\/wp\/v2\/comments?post=127"}],"version-history":[{"count":29,"href":"https:\/\/1design.jp\/wp-json\/wp\/v2\/posts\/127\/revisions"}],"predecessor-version":[{"id":1987,"href":"https:\/\/1design.jp\/wp-json\/wp\/v2\/posts\/127\/revisions\/1987"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/1design.jp\/wp-json\/wp\/v2\/media\/285"}],"wp:attachment":[{"href":"https:\/\/1design.jp\/wp-json\/wp\/v2\/media?parent=127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/1design.jp\/wp-json\/wp\/v2\/categories?post=127"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/1design.jp\/wp-json\/wp\/v2\/tags?post=127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}