<body> <h1>prototype.js ãªãã¡ã¬ã³ã¹</h1>
<body> <h1>prototype.js ãªãã¡ã¬ã³ã¹</h1>
ããã¯ä½ï¼ prototype.js 㯠Sam Stephenson ã«ãã£ã¦æ¸ããã JavaScript ã©ã¤ãã©ãªã§ãã ãã®çèã®ä¸è¨è¿°ãããæ¨æºã«æºæ ããã³ã¼ãã¯ãWeb 2.0 ã«ããã¦ç¹å¾´ã¨ãªããªããã§ã¤ã³ã¿ã©ã¯ãã£ããªã¦ã§ããã¼ã¸ãå¶ä½ããéã®éè·ããããªãã®è©ããåãå»ã£ã¦ãããã§ãããã ãããã®ã©ã¤ãã©ãªã使ã£ããã¨ããããªããå å®ããããã¥ã¡ã³ãããã®ã©ã¤ãã©ãªã®å£²ãã§ã¯ãªããã¨ã«æ°ãã¤ããã¯ãã§ãã ç§ã¯ä»ã®éçºè ã¨åæ§ã«ãã½ã¼ã¹ã³ã¼ããèªã¿ã試è¡é¯èª¤ããªãã prototype.js ãç解ãã¾ããã èªåãå¦ãã§ããéã«ã¡ã¢ãåãããããä»ã®äººãã¡ã¨å ±æãããã¨ã¯ä¾¡å¤ãããã®ã§ã¯ãã¨èããã®ã§ãã å ãã¦ããã®ã©ã¤ãã©ãªã«ãã£ã¦æä¾ããã¦ãããªãã¸ã§ã¯ããã¯ã©ã¹ãé¢æ°ãæ¡å¼µæ©è½ã«ã¤ãã¦ã® éå ¬å¼ãªãã¡ã¬ã³ã¹ ãæä¾ãã¦ãã¾ãã ããã§æä¾ããä¾ã¨ãªãã¡ã¬ã³ã¹
Ruby on Rails ã Catalyst ã®ãã©ã°ã¤ã³ãªããã§ã¯ prototype.js ã¨ãã JavaScript ã®ã©ã¤ãã©ãªã使ã£ã¦ãAjax ãµãã¼ããå®ç¾ãã¦ãã¾ããprototype.js ã¨ãã¬ã¼ã ã¯ã¼ã¯ãå¿ è¦ãª Ajax ã® JavaScript ã³ã¼ããåãåºãã¦ãããã®ã§ãRuby ããã°ã©ãã Perl ããã°ã©ã㯠JavaScript ã®å®è£ ãæèããªãã¦ã Ajax ãªã¤ã³ã¿ãã§ã¼ã¹ãä½ãããã¨ãã風ã«ãªã£ã¦ãã¾ãã ãããªæã㧠prototype.js 㯠Ajax ãªé¨åã«æ³¨ç®ãéã¾ã£ã¦ãã¾ãããã»ãã«ã "Class-style OO" ãªãã¬ã¼ã ã¯ã¼ã¯ãå å ãã¦ã¾ãã JavaScript ã¯ãããã¿ã¤ããã¼ã¹ã®ãªãã¸ã§ã¯ãæåè¨èªã§ãC++ ã Java ã®ãããªã¯ã©ã¹ãã¼ã¹ã®ãªãã¸ã§ã¯ãæåè¨èªã¨ã¯ã¡ãã£ã¨å®è£ ãç°ãªãã¾ãããããã¿ã¤ã
è¿½è¨ 2005-08-23 Using prototype.js v1.5.0 ãªãã¡ã¬ã³ã¹ããã£ãã¿ããããããèªãã æ¹ãã¯ããã«æçã§ãããã¼æ¸ãããããªãã£ãã ã¯ã¦ãªã®äººæ°è id:naoya ããprototype.js ã§ãã¶ã¤ã³ãã¿ã¼ã³ãã¨ããã®ããã£ã¦ããã ãã©ãprototype.js ã®èª¬æããã¦ãããªãã¦å°ããåãããRails ã® prototype.js ã¯ä¾¿å©ã ãã¨ããã®ãç®ã«ãããã¨ããã£ãã®ã§ãã¡ããã©ããæ©ä¼ã ã£ã¦ãã¨ã§èª¿ã¹ãã http://prototype.conio.net/ ããã¥ã¡ã³ããå ¨ç¶ãªãããªããããªãã¨æãã®ã§ãåç¥ã®æ¹ã¯æãã¦ãã ããããããããªãã®ã§ã³ã¼ããèªããã¨ã«ã http://dev.conio.net/repos/prototype/src/ ããã®ãé 次èªã¿ã¾ãã base.js http://dev.conio.net
ä»è©±é¡(?)ã® prototype.js ã使ã£ã¦ã¿ã¾ããã ããããã㨠Class.create(), extendã¯æé«ã ããç¨åº¦æ°è»½ã«ã¯ã©ã¹ãä½ããããªãã¸ã§ã¯ãæåã«æ £ãã¦ãã人ã¯çç£æ§ã»ã³ã¼ãã®å質ãä¸ããã(å®éã³ã¼ãã¯ã³ã³ãã¯ãã«ãªã£ãããä»æ§è¿½å æã«ãããæãã ã£ããï¼ å®ã¯ã¯ã©ã¹é¢æ°ãä½ãã¦ä¾¿å©ï¼ããã¯prototype.jsã®æ©è½ã§ã¯ãªãï¼ var Hoge { hoge: function() {alert('hoge');}} Hoge.hoge();ã¿ãããªã æ²ããã㨠Ajaxã¨ã®çµã¿åããã§ã¡ãã£ã¨æ¸æãã ã¤ã³ã¹ã¿ã³ã¹é¢æ°ããonreadystatechange ãã³ãã©ã«ç»é²ããå ´åã«ããããã³ã¼ã«ããã¯é¢æ°ãªã®ã§ãthis.xxx ãªã©ã®ããããã£ã«ãã®é¢æ°å ããã¢ã¯ã»ã¹ã§ãããå¾®å¦ãï¼åé¿çãããã¢ã¯ã»ã¹ã§ãããããã§ããã®ã?ä»æ§çã«ä¸å®ãã¯ã
What is that? In case you haven't already used it, prototype.js is a JavaScript library initially written by Sam Stephenson. This amazingly well thought and well written piece of standards-compliant code takes a lot of the burden associated with creating rich, highly interactive web pages that characterize the Web 2.0 off your back. When I first started trying to use this library, a few years ago,
September 12, 200516:45 prototype.js ãã¡ããã¨ä½¿ã£ã¦ã¿ãã ã«ãã´ãªæè¡ãã¿ prototype.js ãã¡ããã¨(ä»äºã§)使ã£ã¦ã¿ããã¨ããäºã§ã´ãã§ã´ãã§ããã¡ã¢ã ããããäºã¯é常ã®ããã¹ããç·¨éå¯è½ã«ã㦠Ajax ã§ä¿åã£ã¦ãããããã¡(ï¼)ãªäºã ã§ã使ãæ¹ã®åå¼·ãã¦ãæ¸ããã³ã¼ããã®ãã¦ããã¨ä»¥ä¸ã®ãããªæã var Editable = Class.create(); Editable.prototype = { initialize: function(text, url) { this.view = $(text); this.url = url; Element.show(this.view); this.editor = document.createElement('input'); this.editor.type = "t
ã¡ã³ããã³ã¹
ãç¥ãã
é害
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}