var d = new Date(); var x = d.getFullYear() * 10000 + (d.getMonth()+1) * 100 + d.getDate(); WScript.echo(x); var y =(""+x).replace(/(\d{4})(\d{2})(\d{2})/,"$1/$2/$3"); WScript.echo(y);
var d = new Date(); var x = d.getFullYear() * 10000 + (d.getMonth()+1) * 100 + d.getDate(); WScript.echo(x); var y =(""+x).replace(/(\d{4})(\d{2})(\d{2})/,"$1/$2/$3"); WScript.echo(y);
Read files in JavaScript Stay organized with collections Save and categorize content based on your preferences. Selecting and interacting with files on the user's local device is one of the most commonly used features of the web. It allows users to select files and upload them to a server, for example, when sharing photos or submitting tax documents. It also allows sites to read and manipulate the
Make JavaScript Math.random() useful JavaScriptã® Math.random() ã¯ãï¼ããï¼æªæºã®ä¹±æ°ãçºçããããã¨ãã§ããããã©ã³ãã ãªèªç¶æ°ãåå¾ããã«ã¯å·¥å¤«ãå¿ è¦ã¨ã®ãã¨ã ä¾ãã°ãï¼ããï¼ã¾ã§ã®èªç¶æ°ãã©ã³ãã ã«åå¾ããã«ã¯ã以ä¸ã®ããã«è¨è¿°ããå¿ è¦ãããããã§ãã Math.floor(Math.random()*3+1)éã«ã以ä¸ã®ãããªè¨è¿°ã§ã¯ãæ£ããã©ã³ãã ãªèªç¶æ°ãåå¾ã§ããªãã¨ã®ãã¨ï¼è©³ç´°ã¯è¨äºãåç §ï¼ã à Math.round(Math.random*2+1) à Math.ceil(Math.random()*3)ã§ãã®ã§ãï¼ããmaxã¾ã§ã®ã©ã³ãã ãªèªç¶æ°ãæ£ããåå¾ããã«ã¯ã以ä¸ã®ããã«è¨è¿°ããã°ããããã§ãã Math.floor(Math.random()*max+1)ãã¼ãã奥ãæ·±ãã§ããããã
Mozilla WebDevããã°ã«ãFrom 80 Seconds to 6: Optimizing Our Asset Compressionãã¨ãã¦ãJavaScriptã»CSSã»ç»åã®é£çµããã³ãããã¡ã¤å¦çã«ãããæéãã80ç§ï½160ç§ã¬ãã«ãã6ç§ã¾ã§ç縮ãããã¨ãã®ãã¯ããã¯ãæ²è¼ããã¦ãããå®ç¨çãªè³æã¨ãã¦åèã«ãªãã ç¾å¨ããAdd-ons for Firefoxãã¯CDNãæ´»ç¨ãã¦ãªã½ã¼ã¹ãæä¾ãã¦ãããããããªãåã¯ãã£ãã·ã¥å¹æãæ大éã«çºæ®ãããããã«JavaScriptã»CSSã»ç»åããã¡ã¤ã«ã¸é£çµãã¦ãããã¡ã¤å¦çãå®æ½ãã¦ä½¿ã£ã¦ããã¨ããããã®ãªã½ã¼ã¹ã®çæã«ã¯80ç§ãã160ç§ããã£ã¦ããããå¦çã工夫ãããã¨ã§æçµçã«6ç§ã«ã¾ã§ç縮ãå®ç¾ããã¨èª¬æãããã ããã§ç´¹ä»ããã¦ããé«éåãã¯ããã¯ãã¾ã¨ããã¨æ¬¡ã®éãã ããã¾ã§ã¯YUICompresso
æ¢ã«å¤ãã®æ¹ã JavaScript ã®ãªãã¸ã§ã¯ãæåçå´é¢ã«ã¤ãã¦ã®è§£èª¬ãè¨äºã«ããã¦ãã¾ãããèªã¿æå´ããè¦ãã¨ãä¾ãã°ããã°ã©ãã³ã°è¨èªã¸ã®ç¿ç度ããªãã¸ã§ã¯ãæåèªä½ã«å¯¾ããç解度ããããããªããã§ãç§èªèº«ããããããªãã»ã©ï¼ã ã£ã¦ãããé ã®ä¸ã®ã¹ã¤ãããããã³ãï¼ã¨å ¥ããããªå¢å°ã«ã¯éãã¦ãã¾ããã§ããã ãã¤ã¦ç§ã ãªãã¸ã§ã¯ãæåãªJavaScriptããã°ã©ãã³ã°ã®ã¹ã¹ã¡ ãªãã¦ãã翻訳è¨äºãæ¸ãã¦ã¯ããã®ã§ãããæ£ç´ãªã¨ãã prototype.constructor ã®åå¨ã¯ç¥ãã¾ããã§ããããFunction.call ã Function.apply ãã©ã使ãã°ããã®ããªã©ãã¡ããã¨ç解ã§ãã¦ã¯ãã¾ããã§ããã ãããªä¸ã2011å¹´12æã«æ¸ããã Doc Center | Mozilla Developer Network ã®è¨äº ãªãã¸ã§ã¯ãæå Java
Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-settings.php on line 472 Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-settings.php on line 487 Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-setti
JavaScriptã®æ¸ãæ¹ã¯JavaScriptèªä½ãããç¨åº¦èªç±ãªãããããããªæ¸ãæ¹ãã§ãã¾ãããä¸è²«æ§ãæã£ã¦æ¸ããæ¹ããã°ãªã©ãçºçãã«ãããªããããã³ã¼ãã£ã³ã°ã«ã¼ã«ãå®ãã¦ããã®ã¯ãããã¨ã ã¨æãã¾ã(ç¹ã«è¤æ°äººã®éçºã®å ´å) æåãªä¼æ¥ãã©ã¤ãã©ãªã¯ã³ã¼ãã£ã³ã°ã«ã¼ã«ãå ¬éãã¦ããäºãå¤ãã®ã§é©å½ã«ã¾ã¨ãã¦ã¿ã¾ãã JavaScript style guide â MDC Docs Mozilla/Firefoxåãã®ãã®ãªã®ã§ãä¸é¨ECMAScriptã®ç¯å²ãè¶ ãããã®ãå«ã¾ãã¦ãã¾ãã å¤ãã®äººãè¦ã¦ããã¨æãã®ã§ãè¦ããã¨ãªã人ã¯ä¸åº¦èªãã§ã¿ãã¨ããã§ãã jscsã«ãã®ã³ã¼ãã£ã³ã°ã«ã¼ã«ããã§ãã¯ããããªã»ãããç¨æããã¦ãã¾ãã Google JavaScript Style Guide Google JavaScript Style Guide å訳 â Goo
JavaScriptã«ã¯åå空éããªãã®ã§ããªãã¸ã§ã¯ãã代ããã«ä½¿ãã¾ãã Namespace.hoge = "ã»ãã»ã"; Namespace.fuga = function() {}; ãããªæãã§ãªãã¸ã§ã¯ãã®ããããã£ã追å ãã¦ãããã¨ã§ãã°ãã¼ãã«ã¹ã³ã¼ããæ±ããã«æ¸ã¿ã¾ãã ããã ãã§ã¯ãªããJavaScriptã ã¨ã°ãã¼ãã«ã¹ã³ã¼ãã«å®£è¨ãããããéããããã§ãã ãã ããåå空éãcom.example.foo.barã¨ãã£ãããã«é·ã£ãããããªãã¨ã宣è¨ãé¢åã«ãªã£ã¦ããã®ã§ã¯ãã¼ã¸ã£ã使ã£ã¦åãã¾ãã //ã°ãã¼ãã«ã·ã³ãã«ã ãã¯å®£è¨ãã¦ãããï¼æ¢ã«ä½¿ç¨æ¸ã¿ã§ãvarã¯åé¡ãªãï¼ var com; //ããããã£ããªãã£ãã追å ããã //ãã§ã«ããå ´åã¯ãªãã¸ã§ã¯ããã©ããå¤æãã¦ä¾å¤çºçãããæ¹ãããããã if (!com) com = {}; if (!com
ã好ããªé£ã¹ç©ãã¿ã¤ãããªãããèªãã å¤è³ååãããã好ããªé£ã¹ç©ãã¿ã¤ãããªããã¨ããæ¬ãåºãããä¸ã«åã®è¨äºã«è§¦ãã¦ããããã¼ãããã£ã¦ããã®é¢ä¿ã§ããã ãã¦æ©ãã«èªããã¨ãã§ããã ããã¯å¤è³ããã好ããªé£ã¹ç©ãæ¢ãæ¬ãã¨ãã»ã¤ã¨ããã¨ãçã話ãããããå ¥ã£ã¦ãããã®ããèªãã ãã¨â¦
Make a note of it: Web tech, montaineering, and so on. Note: ãã®è¨äºã¯ã3年以ä¸åã«æ¸ããã¦ãã¾ããWebã®é²åã¯éãï¼æ å ±ã®æ£ç¢ºæ§ã¯èªå·±è²¬ä»»ã§å¤æãã¦ãã ããã textareaã®ä¸ã§é¸æããæååã®åå¾ã«ãä»»æã®æååãæ¿å ¥ããJavascriptãæµãã¨ãã¦ã¯ãã¾ãé¸æé åã®å§ç¹ã¨çµç¹ã®ä½ç½®ãåå¾ãããã®å¢çãåºæºã«ãã¦textareaã®æååå ¨ä½ãåå²ãããã¦å å·¥ãã¦çµã¿ãªããã å§ç¹ã¨çµç¹ã®ä½ç½®ã¯ãMozillaããã³ï¼æè¿ã®ï¼Opera/Safariã§ã¯å®¹æã«åå¾ã§ãããåé¡ã¯IEãIEã®TextRangeãªãã¸ã§ã¯ãã¯ãå¾ã®ã³ã³ãã¯ã¹ããè¦ã¦å¦çãè¡ããã¨ãé£ãããããç¹ã«textareaå ã®æååãæä½ãããå ´åã¯åä»ã§ãã éã«è¨ãã°ãå§ç¹ã¨çµç¹ã®ä½ç½®ããå¤ãã°ãªãã¨ããªãã®ã§ããããã試ãã¦ã¿ã¦ãªãã¨ãå½¢ã«åº
ãGoogle JavaScript Style Guideãã«æ²¿ã£ã¦ãã§ãã¯ãã¦ããããã°ã¼ã°ã«è£½JavaScriptææ³ãã§ãã«ã¼ ã°ã¼ã°ã«ã¯JavaScriptã³ã¼ãã®ã¹ã¿ã¤ã«ã¬ã¤ããGoogle JavaScript Style Guideããå ¬éãã¦ãããå社èªèº«ããã®ã¹ã¿ã¤ã«ã«å¾ã£ã¦éçºãè¡ã£ã¦ããã¨ããã¦ãã¾ãï¼ã¹ã¿ã¤ã«ã¬ã¤ãã®æ¥æ¬èªè¨³ã®ä¾ï¼ã ãã®ã¹ã¿ã¤ã«ã¬ã¤ãã«å¾ã£ãéçºãæ¯æ´ãã¦ããããã¼ã«ãã°ã¼ã°ã«ãããªã¼ãã³ã½ã¼ã¹ã¨ãã¦å ¬éããã¾ãããå社ã®Closure Tools Blogã®ã¨ã³ããªãIntroducing Closure Linterãã§ç´¹ä»ãããææ³ãã§ãã¯ãã¼ã«ã®Closure Linterã§ãã Closure Linterã¯Pythonã§æ¸ããããã¼ã«ã§ãã³ãã³ãã©ã¤ã³ããå©ç¨ãã¾ããä¸è¨ã®ã¨ã³ããªã«ããã¨ã次ã®ãããªJavaScriptããã§ãã¯ã«æ¸
Firefoxã®ã¢ããªã³ãããã£ã¦ããããjsShellServerã¨ããèå³æ·±ããã®ãè¦ã¤ããã jsShellServer (JavaScript Shell Server)ã¯ãFirefoxç¨ã®ã¢ããªã³ã Firefoxã§è¡¨ç¤ºä¸ã®ãã¼ã¸ã«å¯¾ãã¦ãXULã§å®è£ ãããJavaScript ShellããJavaScriptãé©ç¨ã§ããã æåçGreaseMonkeyã¿ãããªæãã Firefoxã®ä¸ã§éããå½¢ã§ä½¿ããã¨ãã§ããããããã®ç´ æ´ãããã¨ããã¯EmacsããFirefoxã«å¯¾ãã¦ãªã¢ã¼ãã§JavaScriptãå®è¡ãããããã¨ããã Emacsã§ãalert('test');ããªã©ã¨æ¸ãã¦ãè¡æ«ã§C-c C-eã¨ããã¨ãFirefoxã§ãã¤ã¢ãã°ã表示ãããã¨ãã£ãå ·åã Mac OS Xä¸ãCarbon Emacsã¨Firefoxã§åä½ã確èªã å°å ¥ å°å ¥ã¯åºæ¬çã«ã¯ãIn
å¼å½çæ´»å§ãã¾ãããagoã§ãã 以åã®javascriptã®éçºã¯ãµã¼ããµã¤ãã¨åãPGãéçºãããã¨ãå¤ããæ©è½ããã¡ã¤ã«åä½ã§åå²ãã¦ãã®ãã¼ã¸ã§å¿ è¦ãªãã¡ã¤ã«ã®ã¿ãèªã¿è¾¼ãã¨è¨ããã¨ãè¡ããã¦ãã¾ããã ãã ãæè¿ã¯ãµã¼ããµã¤ãã¨ã¯ã©ã¤ã¢ã³ããµã¤ãã®åæ¥ãé²ãã ãã¨ã表示é度ã®å ¼ãåãããããåä¸ãã¡ã¤ã«ã«å ¨ä½ãè¨è¿°ããµã¼ããµã¤ãã§ã¯å ¨ãã¼ã¸ã§ãã®ä¸ãã¡ã¤ã«ã®ã¿ãèªã¿è¾¼ããããªå½¢ã«ãªããã¨ãå¤ãã§ãã åä¸ãã¡ã¤ã«ã®å©ç¹ã¨ãã¦ã¯ãµã¼ããµã¤ãã®å®è£ ã«ä¾åããã«ä»»æã®æ©è½ã追å ã§ãããã¨ãããã¾ãããæ¬ ç¹ã¨ãã¦æ©è½æ¯ã®åãåããé£ãããªãã¨è¨ãç¹ãããã¾ãã jQueryã使ç¨ãã¦$('.selector')ã§åãåºãæ¹æ³ãããã¾ããããã¼ã¯ã¢ããã®å ¨ä½åãæ£ç¢ºã«ææ¡ã§ãã¦ããªãã¨ä¸è¦ãªãã¼ã¸ã§ééã£ã¦å®è¡ããã¦ãã¾ãå±éºæ§ãããã¾ãã ããã§ã以ä¸ã®ãããªJSãå ã«èªã¿è¾¼ã¿ãåURL
IEã«ã対å¿ï¼ãã©ã¦ã¶ä¸ã§ãã¼ã«ã«ã«ã¹ãã¬ã¼ã¸ãä½ãJavaScriptã©ã¤ãã©ãªãjStorageã 2010å¹´05æ25æ¥- jStorage - simple JavaScript plugin to store data locally IEã«ã対å¿ï¼ãã©ã¦ã¶ä¸ã§ãã¼ã«ã«ã«ã¹ãã¬ã¼ã¸ãä½ãJavaScriptã©ã¤ãã©ãªãjStorageãã åºæ¬ã¯HTML5ã®ã¹ãã¬ã¼ã¸ã使ãã¾ããã対å¿ãã¦ããªããã©ã¦ã¶ã¯ãä¾ãã°IEã§ã¯userDataã使ã£ã¦ãã¼ã¿ãæ ¼ç´ãã¾ãã ã©ã¤ãã©ãªå ã§ã¯ãã¹ãã©ã¦ã¶å¯¾å¿ã¯ãã¦ãããã®ã§ãå©ç¨è ã¯ãã jStorageã®ã¡ã½ãããå¼ã³åºãã ãã§ã¹ãã¬ã¼ã¸ãå©ç¨ã§ãã¾ãã ãã©ã¦ã¶ãã¨ã®ãµãã¼ãã¨ãã¹ãã¬ã¼ã¸ãµã¤ãºã¯ä»¥ä¸ãIE6,7 ã 128KBã¨ãæ¯è¼çå°ããã§ããããããªãã«å¤§ããªãã¼ã¿ãä¿æã§ãããã¨ãåããã¾ãã åºæ¬ã¨ãããã¬ã¼ã ã¯ã¼ã¯ã©ã¤ãã©
2009å¹´11æ5æ¥ï¼Googleã¯èªç¤¾ãµã¼ãã¹è£½åã§ããGmailï¼Google Mapsï¼Google Docsãªã©ã®éçºã«ä½¿ç¨ãã¦ããJavaScriptã¢ããªéçºãã¼ã«ç¾¤ãGoogle Closure Toolsããä¸è¬å ¬éãã¾ããã "Closure"ã¯ä¸è¬çã«ï¼ééãéåºã¨ãã£ãæå³ã§ä½¿ããã¾ãããã¼ã«ã®å½åã¨ãã¦ã¯å°ããã¬ãã£ããªãã¥ã¢ã³ã¹ãæãã¾ããï¼Google Closure Toolsã®å ´åã¯ï¼çµçµã¨ãã£ãæå³ã§ï¼éçºããã¸ã§ã¯ãã«ãããæçµã¹ãããã®ä»ä¸ãç¨ãã¼ã«ãããªãã¡âæ âã¨ããæå³ã§ä¸èº«ãããµãåºããªãããã«ããããªéãã¦ãããã®ã¨ãã£ãæå³åãããå½åããã¦ããããã§ãã Ultimateï¼ç©¶æ¥µï¼ã«è¿ãæå³ã§Googleã®èªä¿¡ã®è¡¨ãã¨åãåã£ãæ¹ãããããããã¾ãããGoogleã§æ°è¦å ¬éã«ãªã£ãããã¸ã§ã¯ãã¨ãã¦ã¯çããï¼ãã¼ã¿çã®è¡¨è¨ãããã¾ããï¼Go
Javascriptã«ã¯replaceAll()çãªé¢æ°ã¯ç¡ãã®ã§ãããæ£è¦è¡¨ç¾ãç¨ãããã¨ã§ä¼¼ããããªæ©è½ãå®è£ ã§ãã¾ãã replaceé¢æ°ã¯åºæ¬çã«ã¯ãããããæåã®æåã ãç½®æãã¾ãã document.write( "this is a test".replace("t", "T")); This is a test ããããæ£è¦è¡¨ç¾ã®gãªãã·ã§ã³ãã¤ãããã¨ã§ããããããå ¨ã¦ã®æåãç½®æãããã¨ãå¯è½ã§ãã document.write( "this is a test".replace(/t/g, "T")); This is a TesT
JavaScriptããããªãè¦ãã¦ããã¨è¶ 便å©ãªãã³ã¼ãããã©ã¦ã¶ä¸ã§éçºï¼çºè¡ã§ãããJS Binã 2009å¹´10æ23æ¥- JavaScriptããããªãè¦ãã¦ããã¨è¶ 便å©ãªãã³ã¼ãããã©ã¦ã¶ä¸ã§éçºï¼çºè¡ã§ãããJS Binãã¨ãããµã¤ããçºè¦ã ã¡ãã£ã¨ããåä½ç¢ºèªç¨ã®ã³ã¼ããæ¸ããããå ¥éè ã®æ¹ãJavaScriptãå¦ã¶ã®ã«é常ã«æç¨ã§ããããã®çµæãä¿åãã¦ãµã¼ãã«ç½®ãã¦ãã¹ãã£ã³ã°ãã¦ããããã¨ãå¯è½ã ã¾ããæ¯è¼çé¢åãªjQueryãjQuery UIãprototype.js çã®æåã©ããã®ãã¬ã¼ã ã¯ã¼ã¯ãç°¡åã«èªè¾¼ãã¦ä½¿ããæ©è½ãããã¾ãã ãµã¤ããéãã¨ãã¾ã3ã¤ã®ã¿ãããã£ã¦ãJavaScript ã®ã¿ãã«ã¯JSããHTMLã®ã¿ãã«ã¯JavaScript ããæä½ããHTMLããOutput ã«ã¯å®è¡çµæãåºåãããããã«ãªã£ã¦ãã¾ãã JavaScript
twitter facebook hatena google pocket ç¾å¨JavaScriptã©ã¤ãã©ãªã¯æ°å¤ããªãªã¼ã¹ããã¦ãã¾ããããããã®ããããã¨ãªã£ãã®ã¯ãprototypeãã§ããã ã¾ãNASAã®ãµã¤ãã§ã使ç¨ããã¦ããããã«ããã®å®åã¯åºãèªãããã¦ãã¾ãã ä»åã¯prototypeã®ä¾¡å¤ãè¦ç´ããåå¼·ã§ãããµã¤ããç´¹ä»ãã¾ãã sponsors Reference ã»prototype.js ãªãã¡ã¬ã³ã¹ï¼v1.4.0,1.5.x,1.6.0ï¼ ã»prototype.js ã®éçºè åãã¡ã¢ï¼ï¼v1.5.0ï¼ ã»prototype.jsãªãã¡ã¬ã³ã¹ HowTo / Review ã»ç¬¬ï¼åï¼Prototypeã©ã¤ãã©ãªã®å é¨ ã»ãã¾ããã¯ãããPrototype.js ã»ç¬¬ï¼åï¼Prototype.jsã使ãæºå ã»Prototype.jsã¨ã¯ä½ã ã»Prototype
Eloquent JavaScript Eloquent JavaScriptã¨ããã¿ã¤ãã«ã®ãã¨ã§JavaScriptã«é¢ããæ å ±ãå ¬éããã¦ãããåã³ã³ãã³ãã®ä½æã¯Marijn Haverbekeæ°ã®æã«ãããã®ãããã°ã©ãã³ã°ã®ç°¡åãªç´¹ä»ããJavaScriptã使ã£ãããã°ã©ãã³ã°ã®åã©ãããä¸å¯§ã«ã¾ã¨ã¾ã£ã¦ãããJavaScriptã®ä»æ§ã解説ããã¹ã¿ã¤ã«ã§ã¯ãªããå®éã«å¿ è¦ã«ãªãå¦çãééããããé¨åã«ã¤ãã¦åãä¸ããªãã説æããããªããã¦ãããJavaScriptã使ã£ãããã°ã©ãã³ã°ãå®æ½ãããã¹ã¦ã®ãããããã«ä¸èªããè¦ããããã³ã³ãã³ãã ãEloquent JavaScriptã®ç®æ¬¡ã¯æ¬¡ã®ã¨ããã Introduction Basic JavaScript: values, variables, and control flow Functions Data stru
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}