ããã ãããµãã¼ãã¯ãã³ããã§ãªãã£ã¹ããã¦ãªãã®ã§ãã³ããããã«noteãã¼ã ã«ãã¶ããã£ããããµã¼ãã¹è¨è¨ã®åèæ¸ç±ä»£ã«ãã¾ãã
ããã ãããµãã¼ãã¯ãã³ããã§ãªãã£ã¹ããã¦ãªãã®ã§ãã³ããããã«noteãã¼ã ã«ãã¶ããã£ããããµã¼ãã¹è¨è¨ã®åèæ¸ç±ä»£ã«ãã¾ãã
ã¯ããã« åã¯ä»äºã§Ruby on Railsã使ã£ã¦Webã¢ããªã±ã¼ã·ã§ã³ãéçºãã¦ããã®ã§ãJavaScriptã¯ãããªãã«ä½¿ãã¾ãã ã§ããããµã¼ãã¼ãµã¤ãã§ä½¿ã£ã¦ããRubyã«æ¯ã¹ãã¨ãJavaScriptã®ç¿ç度ã¯ããã»ã©é«ãããã¾ããã ã¨ãã«ãææ³ãä¸æ°ã«ãã©ãã·ã¥ã¢ãããããES2015ï¼ES6ï¼ä»¥éã®ç¥èã¯ããªãã¨ãªãææ¡ã¯ãã¦ããããããã¾ã§ãªãã¨ãªããã¨ãã£ãæãã§ãã ã¾ããæè¿ããååãèãããã«ãªã£ãTypeScriptããååã¯ç¥ã£ã¦ããã使ã£ããã¨ã¯ãªããã¨ããã®ãç¾ç¶ã§ãã ã¨ããããã§ããããããã¡ããã¨åå¼·ãã¦ãããªãã¨ãã¨ããæãããã以ä¸ã®æ¬ãè³¼å ¥ãã¦ã¿ã¾ããã JavaScript Primerãè¿·ããªãããã®å ¥éæ¸ (ã¢ã¹ãã¼ãã¯ã³ã´) ä½è :azu,Suguru Inatomiçºå£²æ¥: 2020/06/10ã¡ãã£ã¢: Kindleçããã°ã©ã
注æ ãã®è¨äºã¯ 2020 å¹´ 09 æ 24 æ¥ç¾å¨ãå¤ãæ å ±ã¨ãªãã¾ããã eslint-plugin-prettier ã®å©ç¨ã¯éæ¨å¥¨ã§ããã¨å ¬å¼ãã¢ãã¦ã³ã¹ãåºãã¦ãã¾ãã ãã®ãã¨ã«ã¤ãã¦ã¯ Prettier 㨠ESLint ã®çµã¿åããã®å ¬å¼æ¨å¥¨ãå¤ãã£ã ã«ã¦ã¾ã¨ãã¾ããã®ã§ããã¡ããã覧ãã ããã ã¾ã eslint-plugin-prettier ã¯å ¬å¼æ¨å¥¨ã§ã¯ãªããªãã¾ãããããã㯠Editor ãªã©ã®å¤é¨ç°å¢ã®é²åã«ãããã®ã§ãã®ãã©ã°ã¤ã³èªä½ã«ä½ãåé¡ãèµ·ããããã§ã¯ããã¾ããã ãã㦠eslint-plugin-prettier ãå©ç¨ããè¨å®æ¹æ³ãç¹ã« eslint-plugin-prettier 㨠eslint-config-prettier ãä½ã解決ãã¦ããããç¥ããªãã¨ãprettier-eslint ãä½ãã©ã解決ããããç解ã§ããªãã¯ããªã®ã§
# Babel 7.4.0ã§éæ¨å¥¨ã«ãªã£ã@babel/polyfillã使ãããcore-js@3ã§ç°å¢æ§ç¯ãã @babel/polyfill (opens new window)ã®ãã¼ã¸ã«Babel 7.4.0ããéæ¨å¥¨ã«ãªã£ãã¨æ¸ããã¦ããã As of Babel 7.4.0, this package has been deprecated ãã®è¨äºã§ã¯webpack4ã§Babel7.4ã使ã£ãç°å¢æ§ç¯ã®æ¹æ³ãè¨è¼ããã # ç°å¢æ§ç¯ # ã¤ã³ã¹ãã¼ã« @babel/polyfillã§ã¯ãªãcore-jsã¨regenerator-runtimeãã¤ã³ã¹ãã¼ã«ãã¦ããã®ããã¤ã³ãã Polyfillã¯core-jsã«ã¾ã¨ãããã¦ãããasync-awaitãåããã«ã¯regenerator-runtimeãå¥ã§å¿ è¦ã«ãªãã ãã®ã»ããBabelãWebpackã§ãã«ãããããã«å¿
ããã³ãã¨ã³ãã«èå³ããã£ã¦ãVueããã£ã¦ã¿ãã...!ã¨ãã人ããã£ã¨å¤ããã¨æãã¾ããï¼ãã£ã¨ããã£ã¨ãï¼ ãã ãã©ããã£ã¦Vueãåå¼·ãå§ããã°ããã®ãããããªããã¨ãã人ãã¾ãå¤ãã¯ããJavascriptèªä½ããã¾ã触ã£ããã¨ãªãã...ã£ã¦äººãããã¨æãã¾ãã ããã§ãããããVueãæ°ãã«åå¼·ãã人åãã«ãä½ããã©ã®é çªã§åå¼·ããã°ããã®ãã®éããã¹çãªãã®ãæ¸ãã¦ããã¾ãã 対象èªè ã¯ãããªæãã ã»RubyãPHPã¯ããæ¸ããã©ãJavascriptããã¾ããããããªã ã»jQueryãã§ããæ¸ãã ãã²åèã«ãã¦ããããã¨å¹¸ãã§ãã â»ãã¡ããã以ä¸ã«æ¸ãæ¹æ³ãæè¯ã¨ããããã§ã¯ãªãã®ã§ãåèç¨åº¦ã«èãã¦ãã ãããã ES6ã®è¨æ³ãç¥ã PHPãRubyãæ¸ãããªããJavascriptèªä½ã®åå¼·ã¯ãããªã«å¤§å¤ã§ã¯ããã¾ãããä¸é¨ã®ç¬ç¹ã®æåãé¤ãã°ããããªãç解ã§ã
ã¯ããã« ECMAScript2015(第6çãé称ES6)ãæ¿èªãããBabelãç»å ´ããä¸ã¯ã¾ãã«ES2015æ代ããªã®ã ãã©ãJavaScriptåç´è ã¨ãã¦ã¯ES5èªä½ãã¡ããã¨ææ¡ãã¦ããªãã£ããããã®ã§ãä»ãããªãã調ã¹ã¦ã¿ããã¨ã«ããã ééã£ã¦ããæãããã°ããææããã ããã¨å¤§å¤å©ããã¾ãã ECMAScript5ã§è¿½å ããããã® ECMAScript5 compatibility tableã«ã¦ãES5ã§è¿½å ãããæ©è½ãã©ã®ãã©ã¦ã¶ã«å¯¾å¿ãã¦ããããåãããã¾ãães5-shimã¨ããã©ã¤ãã©ãªããå¤ããã©ã¦ã¶ã§ES5ã®ä¸é¨ã®æ©è½ãå®è£ å¯è½ã«ãªãã åºæ¬çã«ã¯ãIE9以ä¸ï¼iOS7以ä¸ããã以å¤ã¯ã¢ãã³ãªãã©ã¦ã¶ã§ããã°å¤§æµå¯¾å¿ãã¦ããã use strict ã¹ã¯ãªããã®å é ããããã¯é¢æ°å ã®å é ã«è¨è¼ãããã¨ã§strict modeã§å®è¡ããããèªåãæ¸ãã¦ãããã®
ã¬ã¹ãã³ã·ããªãã¼ã¸ãä½ã£ã¦ããã¨ãJavaScriptãPCåãã¨ã¹ããã»ã¿ãã¬ããåãã§åä½ãåãããã¨ããäºã¯ããããã¾ãã JavaScriptã§ã¬ã¹ãã³ã·ã対å¿ãããã¨ããã以ä¸ã®ãããªæ¹æ³ããããã¨æãã¾ãã jQuery(window).width() ã®å¤ããå¤å® window.innerWidth ã®å¤ããå¤å® window.matchMedia ã§å¤å® ãã¨ãããã§ã¯ Internet Explorer 8 以ä¸ã«é¢ãã¦ã¯ãªããã®ã¨ãã¦æ±ãã¾ãã #ããããã®åä½ãè¦ã¦ã¿ã ããããã«ã¡ãªãã/ãã¡ãªãããããã®ã¯ä¸ã®å¸¸ã§ãã ##jQuery(window).width() ã®å¤ããå¤å® ã¯ã£ããè¨ãã¨ãã®æ¹æ³ã¯ãã¡ã§ããä½ããã¡ãã¨ããã¨ãjQuery(window).width() ã¯ã¹ã¯ãã¼ã«ãã¼ãå«ããªãã¦ã£ã³ãã¦ã®æ¨ªå¹ ã«ãªãããã§ãã CSSã®ã¡ãã£ã¢ã¯ã¨ãª
ããã«ã¡ã¯ãDesigner / EngineerããArt Directorã«å¤ããã¾ãã奥ç°ã§ãã è©æ¸ãã¯ãã¾ãæ°ã«ãã¦ããªãã®ã§ãããArt Directorã¨ããã¨æ示ããã ãã§ãã¶ã¤ã³ãã¦ããªãã¿ãããªã®ã¨ãå¾ã§Technical Directorãä»ãå ããã¹ãã ãªã¨æã£ãã®ã¯å ç·ã§ãã ãã¦ãæè¿ã§ã¯ãã¼ã¸ã®èªã¿è¾¼ã¿ã«ãã¼ãã£ã³ã°ãã¯ããã§ãããµã¤ããããã¿ããã¾ãã ãããªæãéåæã§ãã¼ã¸é·ç§»ããã°å¿ è¦ãªç®æã ããèªã¿è¾¼ã¿ãå°ãªããã¼ãæéã§ãã¼ã¸ãã·ã¼ã ã¬ã¹ã«å¤æ´ãããã¨ãåºæ¥ã¾ãã ããã§ä»åã¯Pjaxï¼éåæç»é¢é·ç§»ï¼ãå°å ¥ã§ããBarba.jsããç´¹ä»ãããã¨æãã¾ãã Barba.js ãµã¤ãã®ä¸ã«ãªãPjaxã使ãã®ãããã®ã¡ãªãããæ²è¼ããã¦ããã®ã§ãç´¹ä»ãã¾ãã ãã¼ã¸éã®ç´ æµãªãã©ã³ã¸ã·ã§ã³ãä½æãã¦ãã¦ã¼ã¶ã¼ã®ã¨ã¯ã¹ããªã¨ã³ã¹ãåä¸ãããå¯è½æ§ããã
ãç§ã®JavaScriptç¥ in mixi 2017ãã§çºè¡¨ããã¹ã©ã¤ãã§ãã
The picture element, srcset and sizes attributes, and associated features allow web developers to deliver an appropriate image to every user depending on a variety of conditions like screen size, viewport size, screen resolution, and more. Picturefill enables support for the picture element and associated features in browsers that do not yet support them, so you can start using them today! Picture
ã¯ããã« æè¿è³ã«ãã Vue.jsï¼ãã¥ã¼ã¸ã§ã¤ã¨ã¹ï¼ ã£ã¦ã©ããªãã®ï¼ jQuery ã¨ã©ãæ¸ãæ¹éãã®ï¼ã¨ããjQuery ã§ãã£ã¦ãããããäºã£ã¦ Vue.js ã ã¨ã©ãããã®ï¼jQuery ãã使ã£ã¦ãªããã© Vue.js ã使ã£ã¦ã¿ãããªãï½ã¨æã£ã¦ãã人åãã®å°é£ãããã¨ã¯çããè¨äºã§ããç§ããã¡ãå´ããæ¥ããã®ã§ãã Vue.js æ¥æ¬å ¬å¼ãã¼ã¸ï¼æ¥æ¬èªç¿»è¨³çãå端ãªãã¨è©å¤ï¼ ãã¨ãã¨ãjQuery ãã Vue.js ã¸ã®ç§»è¡ãã¨ããã¿ã¤ãã«ã§ããããããã 㨠jQuery ãå®å ¨ã«ããããçãªãã¥ã¢ã³ã¹ã«ãªã£ã¦ãã¾ãã®ã§ãå°ãå¤æ´ãã¾ããð¹ jQuery 㨠Vue.js ã®éã jQuery ã¯ãã»ã¬ã¯ã¿æä½ã«ç¹åããã©ã¤ãã©ãªã§ HTML ã®ä¸é¨ãã¡ãã£ã¨ã ãå¼ãã«ã¯æ軽ã«æ±ãã¾ããæ´æ°ã®ãã³ã«ã»ã¬ã¯ã¿ããè¦ç´ ãæ¢ãã¦æä½ããããããè¤æ°ã® UI ãé£æºãããã
Transcript KTÍ´ØÍ¢Îà§à¹à¤©à¥Îà¶Êͱ࿩͢ 8F�"SF�+BWB4DSJQUFST�!��UI !NLJ@TLU Þ²Òªà¡à¨ NVLBJ�TBLJUP 5XJUUFS w Ý´Þ ÉºÏϨÊÏÏ«ÊΫͷ⨠ެà£ÎÏΥϩÊÉ» w ÎÍà§à¹ÎáÍà¨ÎÏΥϩÊâ¨ Í Í¯ÉºÏ¦ÎµÏÍ´ÎͱÎÎÉ» w à£à·¼ÎáÍÊ 2JJUB w à¨Ø¾Í·à±¤ßÎÝͯÍÍ͹⨠ͦÎͳÎÍ´à§à¹à¯«ÎÎÉ» w ÏΥϩÊÍ Í¯ÍÍͱ⨠ÏÎÊÏ Í´ÏΥϩÊÍ Í¨à¨Í·â¨ εÏÎ¿Î«Í Í¨à±¤ßÍྲྀÎÎÉ» 2BMFJEPTQBDF w 2JJUBÎಠà£ÎϧΰϦζÏͰ⨠ධÕÍ Í¨Î±Î Ï w 2JJUBͱ߹Îͤͯà¢ÍÍͱͰ⨠ÎÎà¾Íà§à¹Î௫ÎÎÉ» ͸ͯͳÏοΫÏÊΫ w ÏΫÏϩδÊΧÏΰϦÊÎ⨠ÝͯÍÍ͹à¾ÍÉ» w ͨÎʹ৽ணÎÝÎͱ⨠à¾Íà§à¹ÎÍÎÉ» 4MBDL w ༷ÊͳίÏÏ¡ÏÏÎÊͷ⨠4MBDLνÊÏÍÍÎÉ» w à£à»°Í¢ÎͱͰÍÎ
SnippetsLabã«ãã¤ã使ãé¢æ°ã¾ã¨ããã¤ãã§ã«Qiitaã«ãã¡ã¢ã£ã¨ãã æ±ç¨é¢æ° Htmlã¿ã°ãé¤å» /** * Htmlã¿ã°ãé¤å» * @param {string} str Htmlã¿ã°ãå«ã¾ããæåå(<h1>ãµã³ãã«æåå</h1>) * @returns {string} Htmlã¿ã°é¤å»ãããæåå(ãµã³ãã«æåå) */ const removeHtmlTag = function (str) { return String(str).replace(/<("[^"]*"|'[^']*'|[^'">])*>/g, ''); }; /** * URLããã¼ã¹ãã¦GETå¤ã®ãªãã¸ã§ã¯ãã«ãã * @returns {{}} GETå¤ã®ãªãã¸ã§ã¯ãã§ãã */ const purseQuery = function () { const result = {}; cons
Robert Changæ°ã«ããYou don't (may not) need Lodash/Underscoreãå訳ãã¾ããã æ訳ãå«ã¾ããããã誤ããããè¯ã表ç¾ãªã©ãããã°ãææé ããã¨å©ããã¾ãã åæï¼https://github.com/cht8687/You-Dont-Need-Lodash-Underscore Lodashã¨Underscoreã¯å¿ è¦ãªãï¼ããï¼ Lodashã¨Underscoreã¯ç´ æ´ãããã¢ãã³ãªJavaScriptã¦ã¼ãã£ãªãã£ã©ã¤ãã©ãªã§ãããããã³ãã¨ã³ãéçºè ã«åºã使ããã¦ãã¾ããããããªãããã¢ãã³ãã©ã¦ã¶ãã¿ã¼ã²ããã¨ãªãå ´åãES5ãES6ã®ãããã§ãã¤ãã£ãã«ãµãã¼ããããã¡ã½ãããå¤ããããã¨ã«æ°ã¥ãã§ããããããã¸ã§ã¯ãã®ä¾åé¢ä¿ãæ¸ãããã¿ã¼ã²ãããã©ã¦ã¶ãæ確ã«ãªã£ã¦ããã®ã§ããã°ãLodashã¨Underscoreã¯å¿ è¦
jQueryã¯è¶ 便å©ãã§ããã¡ãã£ã¨ã¢ããªã£ã½ããã®ãä½ãã«ã¯è¦éããæªãããå¾ã ã®ã¡ã³ããã³ã¹ã大å¤â¦ãAngunlar.jsãReact.jsãããã·ã³ãã«ã§è§¦ãããããVue.jsããå§ãã¦ã¿ã¦ã¯ãããï¼ 2016å¹´7æ21æ¥ï¼è¨äºæ´æ°ãVue.js 1.0.xãã«ãã¼ããã³ã³ãã¼ãã³ãé¨åã追å ãã¾ããã Vue.jsã¯ãMVVMï¼Model-View-ViewModelï¼ã¢ã¼ããã¯ãã£ãã¿ã¼ã³ã使ç¨ããWebã¢ããªã±ã¼ã·ã§ã³ã®çµã¿ç«ã¦ãå©ãã¦ãããJavaScriptã©ã¤ãã©ãªã¼ã§ããã¯ããã¯AngularJSã¨ããä¼¼ã¦ããã¨æãã¾ããããä¸åº¦ä½¿ã£ã¦ã¿ãã¨Vue.jsã¯ã·ã³ãã«ã§ä½¿ããããã ãã§ãªãããã¬ãã·ãã«ã§ãããã¨ã«ãæ°ã¥ãã¾ãã ä»åã¯åå¿è åãã®è¨äºã¨ãã¦ãVue.jsã®åºæ¬ã³ã³ã»ããã¨éè¦ãªç¹å¾´ãå«ããå ¨ä½åã説æãã¾ãã Vue.js 1.0.xã¯ããã¤ãã·ã³ã¿ã
ãã®ãµã¤ãã¯HTML5 Canvasã®ãã¬ã¼ã ã¯ã¼ã¯ãCreateJSãã®å ¥éãµã¤ãã§ããåå¦è ããå¦ã¹ãããã«åºæ¬çãªCreateJSã®ä½¿ãæ¹ãã解説ãã¤ã¤ãçºå±çãªå 容ã¾ã§ã¾ã¨ãã¦ãã¾ãããã®ãµã¤ããéãã¦ãwebã§ã®ã¤ã³ã¿ã©ã¯ã·ã§ã³ãã¶ã¤ã³ã«ã¤ãã¦å¦ãã§ããã¾ãããã å°å ¥ç·¨ webã®ãªããã³ã³ãã³ããä½ãããã®ãã¬ã¼ã ã¯ã¼ã¯ãCreateJSããã©ã®ãããªå ´é¢ã§å©ç¨ãããã®ããã©ããã£ã表ç¾ãå¯è½ãªã®ãã¨ããç¹ãä¸å¿ã«ãæ¦è¦ã¨å°å ¥æ¹æ³ã説æãã¾ãã CreateJS ã¨ã¯ CraeteJS ã®äºä¾ ç°¡åãªãµã³ãã«ã試ãã ãã©ã¦ã¶ã®éçºãã¼ã«ã®ä½¿ãæ¹ãæããã CDNã®URL 次ã®ã³ã¼ããHTMLãã¡ã¤ã«ã«è¨è¿°ãããã¨ã§CreateJSãå©ç¨å¯è½ã«ãªãã¾ãã <script src="https://code.createjs.com/1.0.0/createjs.min.js">
Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article? æ¥ã§ããï¼äººã®é ç½®ããªãã¡ã¯ã¿ãªã³ã°ãããã³ã¼ãããªãã¡ã¯ã¿ãªã³ã°ã®å£ç¯ã§ãã ã§ã¯åãããã§ã¢ãã³ãªJavaScriptã¨ES2015ã®å©ç¹ãèªãå½¹ãããã®ã§ãã¿ãªããã¯ãã¼ã ã説å¾ããå½¹ããã£ã¦ãã ããã JavaScriptã®æ´å² ã¾ãæåã«JavaScriptã®æ´å²ãè¸ã¾ãããã¨ã§ãä»å¦ã¶ã¹ããã®ã¨ãã®çç±ã確èªãã¾ãããã ãªã2016å¹´ã®è¨äºã§ES2016ã§ã¯ãªããES2015ãªã®ããã¨çåã«æã£ãæ¹ãããããããã¾ãããããã¯ãES2015ããã ã®å¹´æ¬¡ã¢ãããã¼ãã§ã¯ãªããããããå§ã¾ãæ¯å¹´ã®ã¡ã¸ã£ã¼ãã¼ã¸ã§ã³ã¢ããã®èµ·ç¹
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}