You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
ããããã©ã¤ãã©ãªãè¦ã¤ãã¦è奮ãã¦ããã®ã§ç´¹ä»ãã¾ãã UIã¹ã¬ãã(ã¡ã¤ã³ã¹ã¬ãã)ããã¦ã¼ã¶ã¼æä½ããããã¯ãã¦ãã¾ããããªéãå¦çãéãã off-the-main-thread ãå®è·µãããã¨ãªãã¨ãå®éã«åé¡ã«ãªãã®ã¯ãã»ã¨ãã©ã®å¦çã¯ä½ããã®å½¢ã§ DOM ãåç §ããããã«é£ãªããã®ãå¦çæéã®æ®ã©ãå ãã¦ãããã¨ãããã¨ã§ãã off-the-main-thread ã®æ代 - mizchi's blog DOM ã«è§¦ããªã WebWorker ã§ãã¸ãã¹ãã¸ãã¯ãå¦çããã®ã¯ããã種ã®å¥å ¨æ§(Universal/Isomorphic)ãæã«å ¥ããããã®ãç¸ããã¬ã¤ãã¨ãã¦æç¨ã§ãããç¾ç¶ã¯å®ç¨ä¸ã®ã¡ãªãããæ®ã©ããã¾ããã ä¾ãã° react / redux ã® reducer ã§ããã¸ãã¹ãã¸ãã¯ã worker å´ã«ç§»ãã¦å¦çã§ãããããã¢ã¤ã½ã¢ã¼ãã£ãã¯ã«(DOMã«è§¦
ãã®è¨äºã¯å¾ç·¨ã®è¨äºã¨ãªãã¾ãã å編㯠ãã¡ã å ¨ã¦ã並åå¦çã§å®è¡ Servoããã¸ã§ã¯ãï¼Quantum CSSã®å¤§å ï¼ã¯å®é¨çãªãã©ã¦ã¶ã§ãWebãã¼ã¸ã®ã¬ã³ããªã³ã°ã®æ§ã ãªé¨åãå ¨ã¦ä¸¦ååãããã¨ãã¦ãã¾ããããã¯ããã£ããã©ãããæå³ã§ããããã ã³ã³ãã¥ã¼ã¿ã¯è³ã®ãããªãã®ã§ããèããé¨åï¼ALUï¼ãããããã®è¿ãã«ã¯çæè¨æ¶ãå¸ãé¨åï¼ã¬ã¸ã¹ã¿ï¼ãããã¾ãããããã¯CPUä¸ã§ã°ã«ã¼ãåããã¦ãã¾ããã¾ããé·æè¨æ¶ãå¸ãã®ãRAMã§ãã 注éï¼é·æè¨æ¶ï¼RAMï¼ çæè¨æ¶ï¼ã¬ã¸ã¹ã¿ï¼ èããé¨åï¼ALUï¼ åæã®é ã®ã³ã³ãã¥ã¼ã¿ã§ã¯ãCPUã使ã£ã¦ä¸åº¦ã«1ã¤ã®ãã¨ããèãããã¾ããã§ããããããããã®10å¹´éã§ãè¤æ°ã®ALUãã¬ã¸ã¹ã¿ãã°ã«ã¼ãåãã¦ã³ã¢ã«ã¾ã¨ãã¦æã¤ããã«ãªã£ããã¨ã§ãåæã«è¤æ°ã®ãã¨ãå¦çã§ããããã«ãªã£ã¦ãã¾ããã 注éï¼ã³ã¢ Quantum CSSã¯ã
Vue.jsã§ã°ã©ã ãå®è£ ãããµã³ãã«ã³ã¼ããæ¢ãã¨D3.jsãç¨ãã¦ããä¾ãçµæ§è¦ã¤ããã¾ãã ãããæ¬å½ã«D3.jsãå¿ è¦ãªã®ã§ããããï¼ ãã®è¨äºã§ã¯D3.jsããã®ä»ã°ã©ãã©ã¤ãã©ãªãç¨ããã«Vue.jsã®ã¿ã§å®è£ ããã°ã©ãã«ã¤ãã¦è§£èª¬ãã¾ãã TL;DR SVGã§ãï½ ã°ã©ãã³ã³ãã¼ãã³ãã«SVGã®ãã³ãã¬ã¼ããæ¸ã ãã³ãã¬ã¼ãã«å¿ è¦ãªå¤ã computed ã§ããããããä½ã ãã¢ã¨ãªãã¸ã㪠ãã¢ï¼ https://haribote.github.io/vue-graph-demo/ ãªãã¸ããª: https://github.com/haribote/vue-graph-demo æãç·ã°ã©ããæ£ã°ã©ããåã°ã©ããã®3ã¤ã®ã°ã©ããå®è£ ãã¦ã¿ã¾ããã ãã¼ã¿ã®å 容ã¯ããéçã«ãããç´è¿5ã·ã¼ãºã³ã®å¹´éå ¥å ´è æ°ã§ãã NPBãå ¬éãã¦ããçµ±è¨ãã¼ã¿ããJSONãç¨æãã¾ãã
Chrome 43ããã³ãã以éã®ãã¼ã¸ã§ã³ã«ããã¦ãDOMã®å±æ§ï¼å¤ï¼ãJavaScriptã®ãããã¿ã¤ããã§ã¼ã³ã«ç§»è¡ããã¾ããããã«ãããçªã£è¾¼ãã ãã¨ããã£ã¦ããå ´åã«ãä»ã¾ã§åä½ãã¦ããã³ã¼ããåããªãã¨ãããã¨ãçºçããå¯è½æ§ãããã¾ãã®ã§ãäºåã«å¤æ´å 容ãç¥ãã対çããã¦ãããã¨ãæ±ãããã¾ããHTML5Rockã®æ´æ°æ å ±ã¨ãã¦æ²è¼ããã¦ãã¾ããã®ã§ããã£ããæ¥æ¬èªè¨³ããã¦ã¿ã¾ãããå¿å½ãããããæ¹ã¯ããã²ä»¥ä¸ã®å 容ãèªãã§ããã ãã¦ãã³ã¼ãã®ä¿®æ£ãªã©ã«åãè¾¼ãã§ããã ããã°ã¨æãã¾ãã åæ: http://updates.html5rocks.com/2015/04/DOM-attributes-now-on-the-prototype DOMå±æ§ã¯ä»å¾ãããã¿ã¤ããã§ã¼ã³ã« Chromeãã¼ã ã¯ãæè¿ãDOMå±æ§ããããã¿ã¤ããã§ã¼ã³ã«ç§»åãã¦ãã¾ããã¨ã¢ãã¦ã³ã¹ãã¦ã
æã Webéçºè ãWeb Componentsã¨ããè¨èãè³ã«ãã¦ããããã2å¹´ç¨çµã£ãã§ãããããWeb Componentsãå¤ããWebéçºã®æªæ¥ã¨ããè¨äºã«ããä»ã®Webéçºãã©ã®ãããªèª²é¡ãæ±ãã¦ãããããããWeb Componentsãã©ã解決ãããããæ¸ãã¾ããããããè¸ã¾ãã¦ãæ¬é£è¼ã§ã¯Web Componentsã®ä»æ§ããå®è£ ãPolymerãX-Tagã¨ãã£ãWeb Componentsãæ¯ããã©ã¤ãã©ãªãªã©ã®å¨è¾ºç¥èã¾ã§è§£èª¬ãã¦ããã¾ãã Web Componentsãæ¯ãã4ã¤ã®ä»æ§ é£è¼ç¬¬1åç®ã¨ãªãæ¬è¨äºã§ã¯ãWeb Componentsãæ¯ãã4ã¤ã®ä»æ§ã«ã¤ãã¦è§£èª¬ãã¾ããWeb Componentsã¯ä»¥ä¸ã®4ã¤ã®ç¬ç«ããä»æ§ããæ§æããã¾ãã Custom Elements â ç¬èªã®ã«ã¹ã¿ã è¦ç´ ãã¦ã¼ã¶ã¼ãå®ç¾©ãããã¨ãå¯è½ã«ãã Shadow DOM
ãããªãããã®éãã¸ã§è¨ããã¦ããã ããã§ããã©ãç¥ã£ã¦ããç¥ããªããåããã¾ãããä¸ã®ä¸ã«ã¯ãããé »åº¦ã§å¼ã°ãããDOMã¤ãã³ãã£ã¦è¨ãã®ãããã¤ãããããã§ãã ä¾ãã° scroll mousemove, touchmove devicemotion 辺ãã§ããã ã§ãé«é »åº¦ã§å¼ã°ããã£ã¦è¨ããã¨ã¯å¿ ç¶çã«å¦çéãå¢ããã£ã¦åããã¾ãããï¼ï¼ï¼ï¼ï¼while(1) {}ãããªãã¨ã¯ããUIã¹ã¬ããã«ååå½±é¿ãä¸ãããé »åº¦ã§å¼ã°ãã訳ã§ããåããã¾ãããï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ ãããªãã¨å½ç¶ãã®ã¤ãã³ãå ã§éãå¦çãè¡ãã°äººéãèªèã§ããã¬ãã«ã§ã®ã¬ã¹ãã³ã¹é 延ãèµ·ããã£ã¦ããã®ã¯ãç解ã§ãã¾ãããï¼ éãå¦çã£ã¦ããã®ã¯ã¾ãæ³ååºæ¥ãã¨ã¯æããã§ããä¾ãã°ããããã®ã DOMã®ã¬ã¤ã¢ã¦ãããããã£ã¸ã®ã¢ã¯ã»ã¹ offsetTopãoffsetLeftãoffsetWidthãoffsetHe
DOMã®å¤æ´ãæ¤ç¥ããã¤ãã³ããéæ¨å¥¨ã«ãªã 代ããã«æ°ããä½ãããMutationObserverãªããã®ã MutationObserver - Web API ã¤ã³ã¿ã¼ãã§ã¤ã¹ | MDN https://developer.mozilla.org/ja/docs/Web/API/MutationObserver DOMå¤æ´æ¤ç¥ã¯çµæ§ãã使ããã®ï¼ç¹ã«ã¦ã¼ã¶ã¼ã¹ã¯ãªããï¼ãªã®ã« æ¥æ¬èªã®è§£èª¬ãµã¤ããâã®MDNã¨MSDNãããããããããªã ãã®é½åº¦ã°ã°ã£ããææ¢ãã§çã£ç«¯ãã試ãã®ãé¢åãªã®ã§ä»¥ä¸ã«èªåç¨ã«ã¾ã¨ããã ã³ã³ã¹ãã©ã¯ã¿ ã¾ãã¤ã³ã¹ã¿ã³ã¹ãä½ãã window.MutationObserverã³ã³ã¹ãã©ã¯ã¿ã®å¼æ°ã«ãDOMå¤æ´ãæ¤ç¥ããéã«å®è¡ããé¢æ°ã渡ãã function omega(data1, data2) { alert("ï¾ï¾ï¾ï¾ï½¼ï½±ï¾ ï¾"); consol
æè¿ããã³ãã¨ã³ãã§facebook/reactããã£ã¨ä½¿ã£ã¦ãããä¸ççã«ã¯ä¸é¨ã®ã¨ã³ã¸ãã¢ã®éã§æµè¡ã£ã¦ããã®ã ããå½å ã ã¨qiitaã®ã¿ã°çãè¦ã¦ãã©ããå°ãªããã¿ããªãã£ã¨ä½¿ãã¹ãã ã¨æãã®ã§ã宣ä¼ããã¦æè¦ãã¾ã¨ãã¦ã¿ãã è¤éåãããã¼ã¿ãã¤ã³ãã«å¯¾ããæ¸å¿µ MVWã®Vã«å¯¾ãã¦æãã馳ããã¨ãã ããã次ã®ãã¨ã«è¡ãçããããªãã¡ããããæ§é ä½ã®å ¥åã«å¯¾ãã¦ãå¿ ãä¸æãªãã¥ã¼ãçæãããã {items: [1, 2, 3]} ãå ¥åã¨ããã¨ã 1, 2, 3ã®liè¦ç´ ã«ãªã£ã¦ã»ãããããã¯åç´ãªä¾ã ããåé¡ã«æãå¾ãªãããã«è¦ããããã¢ããªã±ã¼ã·ã§ã³å ¨ä½ã®ç¶æ ãä¸ã¤ã®jsonã¨ãã¦å®ç¾©ãã ãããã常ã«0ããçµã¿ç«ã¦ãã°ã¢ããªã±ã¼ã·ã§ã³ã®å¥å ¨æ§ã確ä¿ã§ããã¨èãããã¨ã¯ãªãã ãããï¼ ç¾å®ã®åé¡ UIã®ã ãããã®ç¶æ ã¯é·ç§»ã§è¡¨ç¾ããããé·ç§»ã®å·®åãããã°ã©ããè¨è¿°ãããjQue
éããã¾ãã¯ä»å æ©è½ è²ã ãªå¨è¾ºäºæ ã§ãå¢åãåºãã¤ã¤ãã Polymer ãããï¼ã¤ãæè¿ãããã«å æ ãããããªæ°ãããï¼ ãã©ãã¾ã§ã Web Components ã§ãã©ãããã Polymer ãªã®ãããç解ããããã«ãPolymerã®æ©è½ãã¡ã¢ããPolymer ã¯è²ã ãªãã¨ã便å©ã«ãã¦ãããã©ã¤ãã©ãªã§ãããå·®åãè¨ãåºãã¨ããªããªãã®ã§ä¸»è¦ãªãã¤ã³ãã ãã <template> ãèªå㧠Shadow DOM ã«æ¾ãè¾¼ã¾ãã Shadow DOMå ã® <link> ãã¤ã³ã©ã¤ã³ã® <style> ã«å±é repeat ã®ãµãã¼ã {{interpolate}} ã®ãµãã¼ã <element> ã®ãããã <polymer-element> ã¨ãã¦ãµãã¼ã on-click ã¨ãã¤ãã³ããã³ãã©ã®å®£è¨ this.$ ã«ãã idãä»å ãããè¦ç´ ã®ã³ã¬ã¯ã·ã§ã³ observe ã«
Synchronousï¼åæï¼ã¹ã¯ãªããã¯å¹çãæªããã¨ããã®ãããã©ã¦ã¶ã«DOMæ§ç¯ããããã¹ã¯ãªãããèªã¿è¾¼ã¾ããæ®ãã®ãã¼ã¸ããªãã¼ãããåã«å®è¡ãã¦ãã¾ãã¾ããä»ãããªè©±ã§ããããããããããããã°ã©ããasynchronousï¼éåæï¼ã¹ã¯ãªããããã使ãããã«ãªã£ãçç±ã§ããããã«åãããããä¾ãããã¾ãã <!-- BAD: blocking external script --> <script src="http://somehost.com/awesome-widget.js"></script> <!-- GOOD: remote script is loaded asynchronously --> <script> var script = document.createElement('script'); script.src = "http://somehos
Chrome Extension ã® Content Scripts ã使ã㨠Greasemonkey ã®ããã«ã¦ã§ããµã¤ããå å·¥ã§ãã¦ä¾¿å©ã ãã Content Scripts ã¯ãã¼ã¸ã®ãã¼ãå¾ã«ä¸åº¦ã ãå®è¡ãããã®ã§ã github.com ã®ããã« pjax ãå©ç¨ãã¦ãããµã¤ãã§ã¯ãã¼ã¸é·ç§»å¾ã«æå¾ éãå®è¡ãããªããã¨ãããã pjax 㯠pjax:success ãªã©ã®ç¬èªã¤ãã³ããçºç«ãããã Content Scripts ã¯ãµã³ãããã¯ã¹ç°å¢ã§å®è¡ãããã®ã§ pjax ãçºç«ããã¤ãã³ãã Listen ãããã¨ãã§ããªããããã DOM ã®å¤æ´æã«çºçããã¤ãã³ãã Listen ãããã¨ã¯ã§ããã DOM ã®å¤æ´ãæ¤ç¥ããããã«ã¯ DOMSubtreeModified ãå©ç¨ã§ãããããã®ã¤ãã³ã㯠DOM Level 3 㧠deprecated ã«ãªã£ã¦ãã¾ã£
D3.js ã¯ããã¸ã¥ã¢ã©ã¤ãºç¨ã®ã©ã¤ãã©ãªã¼ãã ã¨ç´¹ä»ãããã¡ãªãã ãã©ããæå¤ã«ã D3.js ã«ã¯ã°ã©ããæç»ããæ©è½ããªãã D3.js ã®ããããã¼ã¸ã«ã¯æ¬¡ã®ããã«æ¸ãã¦ããã D3.js ã¯ãã¼ã¿ããããã¥ã¡ã³ããçæããããã®ã©ã¤ãã©ãªã¼ã§ããD3 㯠HTML, SVG, CSS ã使ã£ã¦ãã¼ã¿ã«å½ãå¹ãè¾¼ã¿ã¾ããWeb æ¨æºãéè¦è¦ãã¦ããã®ã§ãç¬å çãªãã¬ã¼ã ã¯ã¼ã¯ã«ç¸ããã¾ãããå¼·åãªãã¸ã¥ã¢ã©ã¤ãºç¨ã®ã³ã³ãã¼ãã³ã㨠data-driven 㪠DOM æä½æé ãçµã¿åãããã¨ã§ãã¢ãã³ ãã©ã¦ã¶ã¼ã®è½åãæ大éã«æ´»ç¨ã§ãã¾ãã D3.js is a JavaScript library for manipulating documents based on data. D3 helps you bring data to life using HTML, SVG
2chã¾ã¨ãã¿ãããªã¿ã¤ãã«ã«ãã¦ã¿ãã(ãã¦ã¿ããã£ã) HTML5ã®ã¢ã¼ããã¯ãã£ã¨åæåã¨ãã£ãã·ã¥ã®èãæ¹ãããã¦ã§ãã¨ã³ã¸ãã¢ãã¯æ¬å½ã«åºæ¥ã¦ãªãã ã¨ãã«ã½ã·ã£ã²ãã¦ã§ããã¥ã¼ã«è²¼ã£ã¦ã¹ãã対å¿ãã¾ããç³»ãæ¬å½ã«ãã¡ã ãããã©ããããï¼åºæ¬çã«ãåæåãã®èãæ¹ãç´ãã°ã©ãã«ããªãã (ãã®è¨äºã¯Backboneã使ãã¨ãã«èãã¦ããã¨ã ãã©ãä»ã§ãä¸ç·ã ã¨æã) åæ ã·ã³ã°ã«ãã¼ã¸ã¢ããªã±ã¼ã·ã§ã³ ã»ãã³ãã£ã¯ã¹ãSEOã¯èæ ®ããªã åºæ¬å²å¦ å ±éã¢ãã«ã®åæåãå¾¹åºçã«è¡ã ãµã¼ãã¼ã«ãªã¯ã¨ã¹ããæããã®ã¯æå°é ã¯ã©ã¤ã¢ã³ãã§ãµã¼ãã¼ã¢ãã«ã®ãã£ãã·ã¥ãä½ããæ´æ°ãæå¾ ãããã¾ã§ååå¾ããªã çç± ãããDOMã®æé©åããã¨ããã§UXã«å½±é¿ã大ããã®ã¯ãµã¼ãã¼ãªã¯ã¨ã¹ã(200~2000ms)ã§ãããã°ã©ãã³ã°æ®µéã§è¾ãããã¤ã¾ãã®ã¯éåæå¦çã®é¨åã ããã°ã©ãã¨ã
Intuitive HTML lets you navigate, manipulate and use the DOM with intuitive, readable, consistent code. Powerful HTML's functions enable you to flexibly use all native DOM features with brevity, clarity, and more power than ever. HTML document.documentElement The global HTML is the actual document root element and all element tags queried via the dot operator are descendants. HTML.tag... Element|A
ææ¢ã«ãMVCãã¬ã¼ã ã¯ã¼ã¯ã®å³è§£ã試ã¿ãã®ã§ãã©ããï¼ MVCã®åæ© MVCã¨ããè¨èãåãã¦ç»å ´ãã¦ãã30年以ä¸ãã£ãä»ãææ©ãªãã ã£ãã®ãåãããªãã»ã©MVCã®å®ç¾©ã¯æ··è¿·ããããã¦ããããã ããã©ããMVCã§MVVMã§MVPã§ããã¨ããå®ç¾©ã«ã¤ãã¦ããããèå¯ããã®ã¯å人çã«ã¯å¥½ãã§ãªãã¦ããçµå±ä½ããããã®ããã¨ããåæ©ãã¶ãã¦ããªããã°ä½ã§ãè¯ãã¨æã£ã¦ããã ãããããã¯ä¸ä½ä½ãªã®ãã¨ãããã¨ãèªåãªãã«èãã¦ã¿ãã¨ããã次ã®ä¸è¨ã«è½ã¡çããã ãModelã¯Viewã«ä¾åããããªãã ä¸éçã«ã¯ï¼ï¼ï¼Modelã¨Viewãåã«ãåãããã¨èª¬æããããã¨ãå¤ãããç§ã¯ããã ãã§ã¯ç´å¾ãã¦ããªãã¦ãä¾åã®æ¹åãããéè¦ã ã¨æã£ã¦ããããã¨ãåããã¦ããããã«è¦ãã¦ãModelãViewãåç §ãã¦ããããæ å ±ã®åå¾å ã表ç¾æ¹æ³ã¯åºå®åããã¦ãã¾ãã Modelã¯Viewã®äºæ ãã
æè¿ãã¼ãã¼ãã·ã§ã¼ãã«ããã®å®è£ ããããã¨æã£ã¦ãã¼å ¥åã«ããã¤ãã³ãå¨ãã«ã¤ãã¦èª¿ã¹ã¦ã¿ãã®ã ããã©ãæ¥æ¬èªã§ã¾ã¨ã¾ã£ãæ å ±ãè¦ã¤ãããªãã£ãã®ã§ããã¼ãã¼ãã·ã§ã¼ãã«ããã®å®è£ ã«å¿ è¦ãããªå 容ãç°¡åã«ã¾ã¨ãã¦ãããã¨æãã ãã¼ãã¼ãã·ã§ã¼ãã«ããã«éããããã¼å ¥åã«ããã¤ãã³ãå¨ãã®ä½ããããå ´åã«ã¯åèã«ãªãã¨æãã æ¬è¨äºã§ã¯ãDOM 3 Events spec ã® 2012-09-06 ã®çãåç §ãã¦ãããå°æ¥ã®çã§ã¯å¤æ´ããã¦ããå¯è½æ§ãããã ææ°ã®çã¯ä¸è¨ãªã³ã¯ãã確èªã®ãã¨ã Document Object Model (DOM) Level 3 Events Specification (DOM 3 Events spec ã®ææ°å®å®æ¿) keydown ã¤ãã³ããkeypress ã¤ãã³ããkeyup ã¤ãã³ãã«ã¤ã㦠keydown ã¤ãã³ã ã¯ããã¼ãæ¼ããã
D3The JavaScript library for bespoke data visualization Create custom dynamic visualizations with unparalleled flexibility
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}