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

JavaScript δ½áÊøµÄ×Ö·û´®³£Á¿

JavaScript δ½áÊøµÄ×Ö·û´®³£Á¿
×öJavaScriptµÄʱºò,·¢ÏÖÀÏÊdzöÏÖ´íÎ󣺓δ½áÊøµÄ×Ö·û´®³£Á¿”.
×Ô¼ºÕÒÁËÏÂÓ¦¸ÃÊÇ´«²ÎÊýµÄʱºò,ÓÐÌØÊâ×Ö·ûÒýÆðµÄ.
ÍøÉÏÒ²ÕÒÁËÏÂ,Ò²Óкöà³öÏÖÕâÖÖÇé¿ö.×öÏÂ×ܽá,ÒÔ·½±ãÒÔºó²éÔÄ.
1.JAVASCRIPTÒýÓÃʱ,ʹÓõÄ×Ö·ûÓïÑÔ²»Ò»ÖÂ.
±ÈÈç:<script type=”text/javascript” src=”xxx.js” charset=”UTF-8″>.
xxx.jsÎļþÄÚ²¿Ê¹ÓõÄÊÇGB2312µÄ¸ñʽ,ÍâÃæµ÷ÓÃʹÓõÄÊÇUTF-8,ËùÒÔÎļþÄÚ²¿²¿·ÖÌØÊâ×Ö·ûÒòΪ¸ñʽ²»Ò»ÖÂ,³öÏÖÂÒÂë,Ôì³É´ËÔ­Òò.
¸ÄΪcharset="GBK"¾Í¿ÉÒÔÁË
2.JAVASCRIPTÊä³öHTML×Ö·ûʱ,Ç°ºó±ê¼Ç²»Æ¥Åä.
ÕâÖֱȽϳ£¼û,ÍùÍùÔÚÊä³ö×Ö·û´®Ê±,³öÏÖµ¥ÒýºÅ(’)»òË«ÒýºÅ(”)²»Åä¶Ô,»òÕßÊÇÔÚdocument.write()µÄʱºò,ûÓÐÕýÈ·Êä³öµ¥ÒýºÅ(’)»òË«ÒýºÅ(”)
3.²ÎÊýÄÚ³öÏÖHTML±ê¼ÇÓïÑÔ»ò°üº¬»»Ðзû
ÎÒ½ñÌìËùÓöµ½µÄÊÇÕâÖÖÇé¿ö.ÒòΪÎÒËùµÃµ½µÄÊý¾ÝÒÔ²ÎÊýÐÎʽ´«¸øÒ»º¯Êý,½á¹û¸ÃÊý¾ÝÀï°üº¬»»Ðзû,Ôì³ÉÁË´Ë´íÎó.
Èç:Ò»°ã²âÊÔʱֻʹÓõ¥ÐеÄÊý¾Ý,ÊÇÕý³£µÄ,δ³öÏÖÕâ¸ö´íÎó,.
µ±²âÊÔʱʹÓöàÐÐÊý¾Ý,²¢Ê¹ÓûسµÁ´»»ÐÐ,¾Í³öÐÐÁË´Ë´íÎó.ÒòΪÀïÃæ°üº¬ÁË»»Ðзû
¶ÔÓÚµÚ3ÖÖÇé¿ö,ÎҵĽâ¾ö·½·¨ÊÇ:²»Ö±½Ó½«¸ÃÊý¾ÝÒÔ²ÎÊýÐÎʽ´«µÝ,¶øÊÇÏȽ«Æ丳ֵÔÚÒ»¸öÒþ²ØµÄÎı¾ÄÚ,ÐèÒªµ÷Óõĺ¯ÊýÀïÖ»Ðè¶ÁÈ¡¸ÃÎı¾ÀïµÄÄÚÈݼ´¿É.


Ïà¹ØÎĵµ£º

JavaScript »ñÈ¡¶ÔÏóµÄ¸ß¶ÈºÍ¿í¶ÈÏêϸ˵Ã÷

scrollHeight: »ñÈ¡¶ÔÏóµÄ¹ö¶¯¸ß¶È¡£
scrollLeft:ÉèÖûò»ñȡλÓÚ¶ÔÏó×ó±ß½çºÍ´°¿ÚÖÐÄ¿Ç°¿É¼ûÄÚÈݵÄ×î×ó¶ËÖ®¼äµÄ¾àÀë
scrollTop:ÉèÖûò»ñȡλÓÚ¶ÔÏó×¶ËºÍ´°¿ÚÖпɼûÄÚÈݵÄ×¶ËÖ®¼äµÄ¾àÀë
scrollWidth:»ñÈ¡¶ÔÏóµÄ¹ö¶¯¿í¶È
offsetHeight:»ñÈ¡¶ÔÏóÏà¶ÔÓÚ°æÃæ»òÓɸ¸×ø±ê offsetParent ÊôÐÔÖ¸¶¨µÄ¸¸×ø±êµÄ¸ß¶È
offsetL ......

JavaScriptµ÷Óñ¾µØÃüÁî

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD id="Head1">
<title>JavaScriptµ÷Óñ¾µØÃüÁî</title>
<script type="text/javascript">
function exec (command)
{
window.oldOnError = window.onerror;
window._command = command;
window. ......

Debugging JavaScript on Internet Explorer Mobile

http://203.208.39.132/search?q=cache:CS7gmmmKO1UJ:cdivilly.wordpress.com/2008/09/05/debugging-javascript-on-internet-explorer-mobile/+mobile+ie+debug&cd=2&hl=zh-CN&ct=clnk&gl=cn&client=firefox-a&st_usg=ALhdy2_5z6wqB0HLfTGoC9EDfEwpnra-LQ ......

Javascriptѧϰ±Ê¼Ç

Ò». »ù´¡Æª
  1.  Javascriptѧϰ±Ê¼Ç1——Êý¾ÝÀàÐÍ
  2.  Javascriptѧϰ±Ê¼Ç2——º¯Êý
  3.  Javascriptѧϰ±Ê¼Ç3——×÷ÓÃÓò
  4.  Javascriptѧϰ±Ê¼Ç4——Evalº¯Êý
  5.  Javascriptѧϰ±Ê¼ ......

[ת]ÓÃJavascript»ñÈ¡Ò³ÃæÔªËصÄλÖÃ

ÓÃJavascript»ñÈ¡Ò³ÃæÔªËصÄλÖÃ
ÈîÒ»·å ·¢±íÓÚ 2009Äê09ÔÂ14ÈÕ
|
·ÖÀࣺÊ×Ò³
-> µµ°¸
-> IT¼¼Êõ


ÖÆ
×÷ÍøÒ³µÄ¹ý³ÌÖУ¬ÄãÓÐʱºòÐèÒªÖªµÀij¸öÔªËØÔÚÍøÒ³ÉϵÄÈ·ÇÐλÖá£
ÏÂÃæµÄ½Ì³Ì×ܽáÁËJavascriptÔÚÍøÒ³¶¨Î»·½ÃæµÄÏà¹Ø֪ʶ¡£
Ò»¡¢ÍøÒ³µÄ¾ø¶Ô´ó ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ