Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Akshell: »ùÓÚJavaScriptºÍÔÚÏßIDEµÄRADÔÆ


×÷Õß




Dionysios G. Synodinos




ÒëÕß

ºî²®Þ±

·¢²¼ÓÚ
2010Äê5ÔÂ21ÈÕ ÏÂÎç9ʱ38·Ö

Akshell
ÊÇÒ»ÖÖÔÆ·þÎñ£¬ËüʹÓ÷þÎñ¶ËµÄ
JavaScriptºÍÔÚÏßµÄIDE°ïÖú¿ª·¢Õß½øÐпìËÙÓ¦ÓóÌÐò¿ª·¢¡£ Ëü»¹ÌṩÔÆÍйܣ¬ËùÒÔ²¿ÊðÊǼ´Ê±µÄ¡£ ËüµÄ´´½¨Õß½«ÆäÃèÊöΪ“webÓ¦ÓÃ
ÍøÂç
”¡£
AkshellµÄºËÐÄ»áʹÓÃGoogle V8
JavaScriptÒýÇæÀ´Ö´ÐÐÓ¦ÓóÌÐò£¬Ëü»á½«JavaScript´úÂë±àÒë³É±¾µØ´úÂëÒÔÌá¸ßÐÔÄÜ¡£
ΪÁË´¦ÀíÇëÇó£¬AkshellºËÐÄ»áÆÀ¹ÀÓ¦ÓóÌÐòµÄmain.jsÎļþ£¬²¢Ö´ÐÐËüËùµ¼³öµÄapp()º¯Êý£¬½«ÇëÇó¶ÔÏ󴫵ݸøÕâ¸öº¯Êý¡£ Õâ¸ö¼Ü¹¹·ûºÏJSGI
¹æ
·¶¡£
Ó¦ÓóÌÐòÊÇAkshell»·¾³µÄ»ù±¾µ¥Ôª¡£ ÿ¸öÓ¦ÓóÌÐò¶¼ÓµÓÐΨһµÄÃû³Æ£¬²¢´ÓÊôÓëappName.akshell.comÓò¡£
ÿ¸öAkshellÓû§¶¼¿ÉÒÔ´´½¨Ó¦ÓóÌÐò£¬µ«Êǵ±Ç°Ö»ÌṩÁ˶ÔÃâ·ÑµÄ·ÇÉÌÒµÓ¦ÓóÌÐòµÄÖ§³Ö£¬²¢ÇÒÕâÑùµÄÓ¦ÓóÌÐò´úÂë±ØÐë»ùÓÚBSDÐí¿ÉÀ´Ìṩ¡£
InfoQ¶ÔAkshellµÄ´´Ê¼ÈËAnton Korenyushkin½øÐÐÁ˼ò¶ÌµÄ²É·Ã¡£
InfoQ: Äú´´½¨AkshellµÄ¶¯»úÊÇʲôÄØ£¿ËüÊÇÈçºÎ°ïÖú¿ª·¢ÕßµÄÄØ£¿
Anton:
¹Ø¼üµÄ¶¯»úÊÇÄܹ»Èÿª·¢ÕßרעÓÚÈÎÎñ£¬¶ø²»ÊǶÔËùÓÐwebÓ¦ÓóÌÐò¶¼Í¨ÓõĶ«Î÷¡£
¶ÔÎÒÀ´Ëµ£¬µ±ÎÒ˵µ½ÏµÍ³±à³ÌµÄʱºò£¬Web¿ª·¢¿´ÆðÀ´ÓÐЩ²»ºÃ¿ØÖÆ¡£ ¼´±ãÊÇΪÁ˱àд²»ÖØÒªµÄÕ¾µã£¬Ò»¸öÈËÒ²ÐèÒªÁ˽âÓëÕ¾µãµÄÖ÷ҪĿµÄÎ޹صÄÒ»´ó¶Ñ֪ʶ¡£
ÎÒÃÇÒ»´ÎÓÖÒ»´ÎµØ·¢Ã÷ÂÖ×Ó¡£ ÔÚ¾­ÀúÕâЩÂé·³Ö®ºó£¬ÎÒÃÇ»¹ÐèÒª¹ÜÀí·þÎñÆ÷¡£
AkshellÊÇÎÒÒª¸Ä±äÕâÒ»ÇÐËù×öµÄŬÁ¦£»Ëü½èÓÃÁËUNIXµÄÕÜѧ£º ÿ¸ö³ÌÐòÖ»°ÑÒ»¼þÊÂ×öºÃ¡£
InfoQ: ÄÜ·ñÇëÄãΪÎÒÃǸÅÊöÒ»ÏÂʹÓÃAkshell¹¹½¨µÄ³ÌÐòµÄ¼Ü¹¹ÄØ£¿ ËüµÄÖ÷Òª×é¼þÊÇʲôÄØ£¿
Anton:
AkshellÓ¦ÓóÌÐòÓ¦¸ÃÖ»Ö´ÐÐËüµÄÖ÷ÈÎÎñ£»¸¨ÖúÈÎÎñÓ¦¸ÃÓÉÆäËüÓ¦ÓóÌÐòÀ´´¦Àí¡£
AkshellΪËûÃÇÌṩÁ˽»»¥µÄ·½·¨¡£ ÿ¸öÓ¦ÓóÌÐò¶¼¿ÉÒÔÊÇÒ»¸öÀà¿â£¬¼´¿ÉÒÔÓëÆäËüÓ¦Ó÷ÖÏíËüµÄ´úÂë¡£
×î»ù±¾µÄAkshellÀà¿â½Ð×öak£¬ËüÌṩÁËÒ»¸öÄ£ÐÍ-ÊÓͼ-¿ØÖÆÆ÷µÄ¿ò¼Ü¡£ ʹÓøÿò¼Ü´´½¨µÄÓ¦ÓóÌÐòÓÐÈý¸öÖ÷ÒªµÄ×é¼þ£º
Êý¾Ý¿âÄ£ÐÍ¡¢HTMLÄ£°å£¨À´Ô´ÓÚDjango£©ÒÔ¼°´¦ÀíÇëÇóµÄJavaScript´úÂë¡£
Õâ¸ö»ù±¾Àà¿âÊÇ¿ÉÑ¡µÄ£»ÈκÎÈ˶¼¿ÉÒÔ´´½¨¿ò¼ÜÀ´Ìæ»»Ëü¡£ Akshell·ûºÏJSGI¹æ·¶£»Òò´ËÎÒÃÇ¿ÉÒÔÔÚÆäÖÐʹÓÃһЩÒÑÓеĿò¼Ü¡£
InfoQ: ÄãÈçºÎÀ´´¦Àí³Ö¾ÃÐÔÎÊÌ⣿
Anton:
ÿ¸öÓ¦ÓóÌÐò¶¼Äܹ»·ÃÎÊÒ»¸öÎļþ´æ´¢ºÍÒ»¸ö¹ØϵÐÍÊý¾Ý¿â¡£ Ç°ÕßÊÇ


Ïà¹ØÎĵµ£º

JavaScriptѧϰ——ʼþ

     ÕâÁ½ÌìÉÏÎçÒ»Ö±ÔÚѧϰJavaScript£¬ÓÉÓÚ×ÜÊÇÔÚ¿´£¬Ð§¹û²»ÊǺܴó£¬Ò²ºÃ¾ÃûÓз¢±íÎÄÕÂÁË£¬ËùÒÔΪÁ˸üºÃµÄѧϰ£¬°Ñѧµ½µÄ¶«Î÷¼Ç¼ÏÂÀ´¡£ÎÒѧϰJavaScriptµÄÊéÊÇ¡¶¾«Í¨JavaScript+jQuery¡·£¬Èç¹û´ó¼ÒÓиüºÃµÄÊéÇëÍƼö¡£
Ò». ʼþµÄ¸ÅÄî
     C#ÖÐʼþµÄ¶¨Ò壺ʼþÀàËÆÓÚÒì³££¬Ë ......

javascriptÖÐsetTimeoutÓ¦ÓÃ

²»ÖªµÀÔõô»ØÊ£¬ÒÔÇ°ÓÃsetTimeoutû³ö¹ýÎÊÌ⣬Õâ´ÎÔõôÓö¼´í
´úÂ룺
window.onload=function(){
function x(){
alert("s");
}
setTimeout("x()",1000);
}
°Ñwindow.onload=function(){}È¥µô¾ÍÄÜÓÃÁË£¬µ«ÊÇÕâÑùд¹ßÁË£¬¶øÇÒÈ¥µôÖ®ºó£¬Ïñdocument.getElementByIdÕâÑùµÄ·½·¨»áÕÒ²»µ½¶ÔÏó£¬ ......

Javascript ÐÞ¸Ä URL ²ÎÊý


String.prototype.changeQuery = function(name,value)
{
var reg = new RegExp("(^|)"+ name +"=([^&]*)(|$)");
var tmp = name + "=" + value;
if(this.match(reg) != null)
{
return this.replace(eval(reg),tmp);
}
else
{
if(this.match("[\?]"))
{
return this + ......

javascriptѧϰÈÕÖ¾Ò»

ScriptÊǸæËßhtml½Å±¾³ÌÐò´Ó´Ë´¦Ö´ÐУ¬±ê×¼Êä³öÓï¾äΪdocument.write()¡£
µ±Ò³ÃæÔØÈëµÄʱºò£¬»áÖ´ÐÐbody²¿·ÖµÄjavascript£»µ±Ò³Ãæµ÷ÓõÄʱºò£¬»áÖ´ÐÐhead²¿·ÖµÄjavascript£»¼´body²¿·ÖΪҳÃ沿·Ö£¬¶øheadΪÔÚÓû§´¥·¢µÄʱºòµ÷Óá£
Àý£º<html>
<head>
<script type=”text/javascript”>
F ......

JavaScript¶ÔÏóµÄAPIÎĵµ

W3SchoolÊÇÒ»¸öºÜºÃµÄ³õѧÕßѧϰÍøÕ¾¡£ÏÂÃæµÄÊÇÀïÃæµÄÄÚÈÝ£¬Ö÷ÒªÊÇjavascript¶ÔÏóµÄAPI˵Ã÷ÓëʹÓã¬Ï£ÍûÔÚ²»¶®µÄʱºò¿ÉÒԺܷ½±ãµØ²é¿´µ½ËùÐèÒªµÄÒÉÎÊ¡£
JavaScript String ¶ÔÏó²Î¿¼ÊÖ²á
http://www.w3school.com.cn/js/jsref_obj_string.asp
JavaScript Date ¶ÔÏó²Î¿¼ÊÖ²á
http://www.w3school.com.cn/js/jsref_obj_dat ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ