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

javascript ѧϰ±Ê¼Ç£¨7£© window ¶ÔÏóµÄ4¸öÊôÐÔ

1. document ʵ¼ÊÉÏÊÇ window ¶ÔÏóµÄÊôÐÔ.ÓÃÓÚ·ÃÎÊÎĵµµÄÐÅÏ¢.
    alert(window.document == document); //outputs "true" 
2. location ¶ÔÏóÊÇ window ¶ÔÏóºÍ document ¶ÔÏóµÄÊôÐÔ,ËùÒÔÏÂÃæÁ½¸öÒýÓû¥ÏàµÈ¼Û.ÓÃÓÚ·ÃÎÊURLµÄÐÅÏ¢.
    window.location;
document.location;
3. navigator ¶ÔÏóÓÃÓÚ·ÃÎÊä¯ÀÀÆ÷µÄÐÅÏ¢.
4. screen ¶ÔÏóÓÃÓÚ·ÃÎÊÓû§ÆÁÄ»ÐÅÏ¢.


Ïà¹ØÎĵµ£º

asp.net¶¯Ì¬×¢²ájavascript×ܽá

Ò».ʹÓÃRegisterStartUpScript×¢²áÖ»Ö´ÐÐÒ»´ÎµÄjavascript
µÚ1²½(´´½¨²¢×¢²á²¢Ê¹ÓÃjavascript)£ºPage.aspx.cs
protected void Page_Load(object sender, EventArgs e)
{
//´´½¨JavaScript
string info = "<mce:script type="text/javascript"><!--alert('ÄãºÃ£¬ÎÒÊÇXXX£¡')// --></mce:scrip ......

javascriptµÄÏà¹Ø¼¼ÊõÎÄÕµÄÊÕ²Ø

±íµ¥Ð§¹û£ºhttp://www.sprymedia.co.uk/article/KeyTable
±íµ¥Ð§¹û£ºhttp://www.datatables.net/examples/
ͼ±íЧ¹û£º http://filamentgroup.com/dwpe/#codeexamples
ͼ±íЧ¹û£º http://people.iola.dk/olau/flot/examples/
±íµ¥Ð§¹û£ºhttp://www.reconstrukt.com/ingrid/src/example1.html#
Ê÷ÐÎĿ¼£ºhttp ......

Javascript¶¯Ì¬Éú³ÉÏÂÀ­Áбí

ÓÃJavascriptʵÏÖ¸ù¾ÝÏÂÀ­ÁбícategoryµÄÑ¡Ôñ½á¹û£¬¸Ä±äÏÂÀ­Áбísub_categoryµÄÑ¡Ïî
<mce:script language="javascript" type="text/javascript">
<!--
function changeSubCategory() {
var sel_category = document.getElementById("category");
var sel_sub_category = document.getElementById("sub_c ......

javascript ѧϰ±Ê¼Ç£¨6£©

1. window ¶ÔÏóÊÇÕû¸ö BOM µÄºËÐÄ,ËùÓжÔÏóºÍ¼¯ºÏ¶¼ÒÔijÖÖ·½Ê½»Ø½Óµ½ window ¶ÔÏó.
          window ¶ÔÏó±íʾÕû¸öä¯ÀÀÆ÷´°¿Ú,µ«²»±íʾÆäÖаüº¬µÄÄÚÈÝ.
2. ¿ª·¢Õß¿ÉÒÔʹÓà window ¶ÔÏóÒÆ¶¯ºÍµ÷Õûä¯ÀÀÆ÷´°¿ÚµÄ±íÏÖÐÎʽ.
    window.moveBy(dx,dy); //Ïà¶Ôµ±Ç°Î»ÖÃ,Ë®Æ½ÒÆ¶ ......

javascript ½á¹¹ÌåʾÀý

<script>
///Óû§Êý¾Ý½á¹¹
function _tagUser()
{
 this.UserId = 0; //0-4
 this.UserName = ""; //5-
 this.Parse = function(VarTypeUser)
 {
  for (var i=0;i<VarTypeUser.length;i++)
   VarTypeUser[i] = String.fro ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ