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

javascript¿ª·¢ÏµÁÐ(ÃæÏò¶ÔÏñ)

javascriptÖеÄÃæÏñ¶ÔÏñ¡£
Çë¿´´úÂ룬ÏÂÃ浯³öÒ»¸ö¶Ô»°¿ð¡£
  <script type="text/javascript">
        function win(w, h,,url)
         {
            this.width = 100;
            this.height = 300;
            this.time = 10;
            this.url = url;
            this.openWin = function()
                 {
                  var iTop = (window.screen.availHeight) / 2;
                  var iLeft = (window.screen.availWidth - 10 - w) / 2;
                  window.showModalDialog('open.htm', '', 'dialogHeight=' + this.height + ',dialogWidth=' + this.width + ',help=0;status=1;scroll=1');
              }
         }
         function getWin() {
             var objwin = new win(100, 100,  'open.html');
             objwin.openWin();
          
         }
         window.onload = function() { getWin(); }
       
    </scr


Ïà¹ØÎĵµ£º

Javascript »õ±Ò¸ñʽ»¯º¯Êý

ƽʱÎÒÃÇÓпÉÄÜÓöµ½ÐèÒª°ÑÍøÕ¾ÖеÄÊý×Ö£¨Í¨³£ÊǼ۸ñ£©ÓÃÒ»ÖÖͳһµÄ·½Ê½ÏÔʾ³öÀ´£¬±ÈÈçÿ¸ô3¸ö×Ö·û¼ÓÒ»¸ö¿Õ¸ñ¡£Èç¹ûÊýÖµ±È½Ï´óµÄ»°ÕâÖÖ·½·¨ºÜÓÐÀûÓÚÓû§ÔĶÁ¡£
ÓÃXSLTµÄÅóÓÑ¿ÉÄÜÖªµÀÔÚXSLÖпÉÒÔÓÃÈçÏ´úÂëʵÏÖ
<xsl:decimal-format name="currency" decimal-separator="." grouping-separator=" "/>
½ñÌìÑо¿ÁËһϠ......

Javascriptº¯ÊýºÍʼþ

 
Ò»¡¢Ä¬ÈϺ¯Êý
JavaScriptÌṩÁËһЩĬÈϵĺ¯Êý
 
±àÂ뺯Êýescape()£º½«·Ç×Öĸ¡¢Êý×Ö×Ö·ûת»»³ÉASCIIÂë
ÒëÂ뺯Êýunescape()£º½«ASCIIÂëת»»³É×Öĸ¡¢Êý×Ö×Ö·û
ÇóÖµº¯Êýeval()
ÊýÖµÅжϺ¯ÊýisNaN()£ºÅжÏÒ»¸öÖµÊÇ·ñΪ·ÇÊýÖµÀàÐÍ
ÕûÊýת»»º¯ÊýparseInt()£º½«²»Í¬½øÖÆ£¨¶þ¡¢°Ë¡¢Ê®Áù½øÖÆ£©µÄÊýֵת»»³ÉÊ®½øÖ ......

Javascript±éÀúHtml Table(°üÀ¨ÄÚÈÝºÍ ÊôÐÔÖµ)


1: ±éÀú²¢Êä³öTableÖÐÖµ
<table id="tb">
    <tr>
       <td></td>
    </tr>
    <tr>
       <td></td>
    </tr>
</ ......

JavaScriptÈ¥³ý¿Õ¸ñµÄÈýÖÖ·½·¨ (trim)

<SCRIPT LANGUAGE="JavaScript">
<!--
// Trim() , Ltrim() , RTrim()
String.prototype.Trim = function()
{
return this.replace(/(^\s*)|(\s*$)/g, "");
}
 
String.prototype.LTrim = function()
{
return this.replace(/(^\s*)/g, "");
}
 
String.prototype.RTrim = functio ......

[ת]IE Javascript ½Å±¾Ê§Ð§½â¾ö°ì·¨


Technorati ±êÇ©: µçÄÔÏà¹Ø
Ô­ÎĵØÖ·£ºhttp://www.playes.net/Blog/535.asp
IE ä¯ÀÀÆ÷µÄ½Å±¾Ê§Ð§ÊǸöÔ´Ô¶Á÷³¤µÄÎÊÌâÁË£¬ÓÐʱײÉÏÁËÄÇÒ²Ö»Äܹé½áÓÚÔµ·Ö£¬ÍêȫûµÃ½âÊÍ¡£Õâ´Î±¾È˾ÍÊÇÖдó²ÊµÄÔµ·Ö£¬±»Ð¡Ð¡µØײÁËÒ»ÏÂÑü¡£
µ±È»½Å±¾Ê§Ð§Ò²ÓÐÇáÖØ£¬ÓÐʱÊÇÒ³ÃæÈ«²¿ÀÃɹ£¬Í¼Æ¬ÎÄ×ÖÈ«²¿ÏÔʾ´í룬²Ò²»È̶ã¬Æäʵ»µµÄÕâô³¹µ×·´ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ