Java,JavaScript,JScript Çø±ð
ÕâÈý¸öÓïÑÔ·Ö±ðÊÇÈý¸ö¹«Ë¾¿ª·¢µÄ£¬SUNµÄJava£¬NetscapeµÄJavaScript£¬MicrosoftµÄJScript
JavaScriptÊÇÓÉNetscape¹«Ë¾¿ª·¢²¢ËæNavigatorµ¼º½ÕßÒ»Æð·¢²¼µÄ¡¢½éÓÚJavaÓëHTMLÖ®¼ä¡¢»ùÓÚ¶ÔÏóʼþÇý¶¯µÄ±à³ÌÓïÑÔ£¬²»ÐèÒªJava±àÒëÆ÷£¬¶øÊÇÖ±½ÓÔËÐÐÔÚWebä¯ÀÀÆ÷ÖУ¬ËüµÄÇ°ÉíÊÇLive Script¡£
JScriptÊÇÒ»ÖÖÀàËÆJavaScriptµÄÓïÑÔ¡£
JavaÊÇSUN¹«Ë¾ÍƳöµÄÐÂÒ»´úÃæÏò¶ÔÏóµÄ³ÌÐòÉè¼ÆÓïÑÔ£¬ÌرðÊʺÏÓÚInternetÓ¦ÓóÌÐò¿ª·¢£¬µ±È»Ò²¿ÉÒÔ¿ª·¢ÆäËüµÄÓ¦ÓóÌÐò£¬ÒÔÇ°ÔÚ°²×°SYBASEºÍDB2µÄʱºò£¬ÎÒ¶¼×¢ÒⶼËüÃǵݲװ³ÌÐòºÃÏó¶¼ÊÇÓÃJavaдµÄ¡£JavaµÄÇ°ÉíÊÇOakÓïÑÔ
1.×ʼwebÉÏÖ»Óо²Ì¬µÄhtml
2.ΪÁËÂú×ã¸üºÃµÄ½»»¥ÐèÇó£¬netscape¿ª·¢ÁËÔÚNavigatorÖÐʹÓõÄLiveScriptÓïÑÔ£¬ºó¸ÄÃûΪJavaScript
3.Microsoft·¢ÐÐjscriptÓÃÓÚinternet explorer.
4.×î³õµÄjscriptºÍjavascript²îÒì¹ý´ó£¬web³ÌÐòÔ±²»µÃ²»Í´¿àµÄΪÁ½ÖÖä¯ÀÀÆ÷±àдÁ½Öֽű¾¡£ÓÚÊǵ®ÉúÁËECMAScript,ÊÇÒ»ÖÖ¹ú¼Ê±ê×¼»¯µÄjavascript°æ±¾¡£ÏÖÔÚµÄÖ÷Á÷ä¯ÀÀÆ÷¶¼Ö§³ÖÕâÖÖ°æ±¾¡£
5.ÎÒÃÇд³ÌÐòµÄʱºò×îºÃд<script language=javascript>¶ø²»ÊÇ<script language=jscript>ÒòΪjavascriptÊÇÒ»¸öͨÓõÄÃû³Æ£¬ËùÓÐä¯ÀÀÆ÷¶¼ÈÏʶ£¬¶øjscriptÖ»ÓÐIEÈÏʶ¡£
6.ÆäËûÓïÑÔϸ½ÚÉϵÄÇø±ð£¬²»ÊÇÒ»Á½ÏÂÄÜ˵ÍêµÄ¡£²»¹ýÎÒ¸öÈËÈÏΪ±à³Ìʱ×îºÃ×ñÑECMAscript±ê×¼¡£ÕâÑù¿ÉÒÔ±£Ö¤¼æÈÝÐÔ¡£
7.˳±ã˵һÏÂ,javascriptÔÀ´½ÐLivescript£¬ºóÀ´SunµÄjava·çÍ·ÕýÊ¢µÄʱºònetscape¾Í°ÑÃû×ָijÉjavascript¡£
Ïà¹ØÎĵµ£º
//ºǫ́CSµ÷ÓÃǰ̨JS·½·¨
ClientScript.RegisterStartupScript(this.GetType(), "onclick", "<script>CheckInput()</script>");
//УÑéÊäÈë¿òÊÇ·ñΪ¿Õ£¬Ð£ÑéÊÇ·ñÊÇÊý×Ö
<script type="text/javascript" language="javascript">
function CheckInput ......
AA.HTM
-------------------------------------
<!--
showModalDialogº¯ÊýµÄʹÓà (ת)
±¾·¶Àý¿ÉÒÔʵÏÖµ¯³öÒ»¸öģ̬´°¿Ú£¬²¢ÑÝʾÁËÁ½ÖÖ½ÓÊպʹ«µÝ²ÎÊýµÄ·½·¨£¬Í¬Ê±¿ÉÒÔ½ÓÊÜģ̬´°¿Ú·µ»ØµÄ¶à¸ö±äÁ¿
-->
<html> &nbs ......
javascriptµ÷Óø¸´°¿ÚµÄº¯ÊýºÍ±äÁ¿
·¢²¼ÈÕÆÚ£º2008-05-28×î½ü¸üУº2008-05-28À´Ô´£ºBHCODE×÷Õߣº
web¿ª·¢µÄʱºò£¬ÓÐʱºòÐèҪʹÓÃÆäËûÒ³ÃæÉÏдºÃµÄjavasriptº¯Êý¡¢±äÁ¿¡£È絯³ö´°¿ÚÐèҪʹÓø¸´°¿ÚÖеĺ¯Êý£¬¿ò¼Ü1ÐèҪʹÓÿò¼Ü2Öеĺ¯Êý¡£
µ÷Óú¯Êý¡¢±äÁ¿µÄ·½·¨Ò»Ñù£¬¶¼ÊÇÐèÒªÊ×ÏÈ»ñµÃÄãÐèÒªµ÷Óõĺ¯ÊýËùÔÚµÄwindow¶ÔÏó ......
ÔÚjsÖУ¬Ã¿¸ö¶ÔÏó¶¼ÓÐÒ»¸öprototypeÊôÐÔ£º·µ»Ø¶ÔÏóÀàÐÍÔÐ͵ÄÒýÓ᣺ÜÞÖ¿Ú£¡Ï°Óï“ÒÀºù«»Æ°”£¬ÕâÀïµÄºù«¾ÍÊÇÔÐÍ£¬ÄÇô“Æ°.prototype” ·µ»ØµÄ¾ÍÊǺù«£¬»òÕß“Æ°.prototype= new ºù«()”¡£
prototypeµÄÓÃ;£º
¼Ì³Ð
ÓÐÒ»¸ö¶ÔÏó££×ÓÀࣺ
function ×ÓÀà() {
this.lastname = ......
¶þÊ®¡¢Bookmarklet
1¡¢Ê²Ã´ÊÇBookmarklet£¿£¨What's a Bookmarklet?£©
Q£ºÊ²Ã´ÊÇBookmarklet£¿
A£ºBookmarkletÊÇÕû¸ö¶¼±»°üº¬ÔÚ³¬Á´½ÓURLÖеÄһС¶ÎJavaScript³ÌÐò¡££¨JavaScript URL¾ÍÊÇÕâ¸öÑù×Ó£º<a href="javascript:the code goes here">¡££©¶àÊýä¯ÀÀÆ÷ÔÊÐíÓû§Ìí¼ÓÕâЩJavaScript URLÊéÇ©£¬¾ÍÏñÌí¼ÓÆäËû³¬Á´½ ......