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
Ïà¹ØÎĵµ£º
var currItem = listbox.options[currIndex];
var prevItem = listbox.options[currIndex - 1];
&n ......
1£© Ϊʲô¼ÓÔØjavascriptÎļþºÜÖØÒª£¿
javascriptÎļþÊDZȽÏÌØÊâµÄ£¬ÒòΪä¯ÀÀÆ÷¼ÓÔØjavascriptÊÇ´®Ðеġ£ÒÔΪ×ÅÔÚ¼ÓÔØJavascriptÎļþµÄʱºò£¬ÆäËûÒ»ÇÐ×ÊÔ´µÄÏÂÔØ°üÀ¨Ò³ÃæµÄÏÔʾ¶¼»á±»×èÈû¡£
2£© ÈçºÎÕýÈ·µÄ¼ÓÔØJavaScript£¿
a. ½«JavaScriptÎļþ·ÅÔÚÒ³ÃæµÄ×îºó
ÒòΪJavaScriptµÄ¼ÓÔØ»á×èÈûÒ³ÃæµÄÏÔʾ£¬ËùÒÔ½«JavaScrip ......
Ò»¡¢Ä¬ÈϺ¯Êý
JavaScriptÌṩÁËһЩĬÈϵĺ¯Êý
±àÂ뺯Êýescape()£º½«·Ç×Öĸ¡¢Êý×Ö×Ö·ûת»»³ÉASCIIÂë
ÒëÂ뺯Êýunescape()£º½«ASCIIÂëת»»³É×Öĸ¡¢Êý×Ö×Ö·û
ÇóÖµº¯Êýeval()
ÊýÖµÅжϺ¯ÊýisNaN()£ºÅжÏÒ»¸öÖµÊÇ·ñΪ·ÇÊýÖµÀàÐÍ
ÕûÊýת»»º¯ÊýparseInt()£º½«²»Í¬½øÖÆ£¨¶þ¡¢°Ë¡¢Ê®Áù½øÖÆ£©µÄÊýֵת»»³ÉÊ®½øÖ ......
<html>
<body>
<style>
ul,li{margin: 0; padding: 0;width:100%;}
</style>
<script language="javascript" type="text/javascript">
function checkword()
{
var wordvalue=document.getElementById("word").value.toLowerCase();
var alltxt="¹ÜÀíÔ±| ......
½ñÌìÔÚ²¹Ï°javascriptÖС£Óöµ½¼¸¸öÏà¶ÔÄ°ÉúµÄÔËËã·û£¬ÌرðÔÚ´ËдÏÂÀ´¡£
1¡¢ÈýÔªÔËËã·û?:£¬ÕâÊÇjsÖÐΨһһ¸öÈýÔªÔËËã·û£¨ÕâºÍC#ÖеÄÒ»Ñù£©£¬Ó÷¨ÈçÏÂ
var x=1;
var y=3;
(x>y)?(x-y):(y-x);
2¡¢typeofÔËËã·û
typeof ÊÇÒ»¸öÒ»ÔªÔËË㣬·ÅÔÚÒ»¸öÔËËãÊý֮ǰ£¬ÔËËãÊý¿ÉÒÔÊÇÈÎÒâÀàÐÍ¡£ ......