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

javascript¶ÔÏó»úÖÆ

                var currItem = listbox.options[currIndex];
                var prevItem = listbox.options[currIndex - 1];
                //alert(currItem);
                alert(prevItem.text);
                listbox.options[currIndex - 1].text = currItem.text;
                listbox.options[currIndex - 1].value = currItem.value;
                alert(prevItem.text);  //Á½´ÎalertÖµÊDz»Í¬µÄ
                listbox.options[currIndex].text = prevItem.text;
                listbox.options[currIndex].value = prevItem.value;


Ïà¹ØÎĵµ£º

JavaScript ¶þάÊý×éÅÅÐò

var o = ['Äã', 'da', 'Äã', 123, 'fm', 'fm', 'da', 123, 'fm', 123];
var n = [];
var s = -1;
var t = null;
o.sort();

for(var i = 0; i < o.length; i++)
{
if(o[i] != t)
{
s += 1;
n[s] = [];
}
......

JavaScript£ºprototypeÊôÐÔʹÓÃ˵Ã÷

prototype ÊÇÔÚ IE 4 ¼°ÆäÒÔºó°æ±¾ÒýÈëµÄÒ»¸öÕë¶ÔÓÚijһÀàµÄ¶ÔÏóµÄ·½·¨£¬¶øÇÒÌØÊâµÄµØ·½±ãÔÚÓÚ£ºËüÊÇÒ»¸ö¸øÀàµÄ¶ÔÏóÌí¼Ó·½·¨µÄ·½·¨£¡ÕâÒ»µã¿ÉÄÜÌýÆðÀ´»áÓеãÂÒ£¬±ð¼±£¬ÏÂÃæÎÒ±ãͨ¹ýʵÀý¶ÔÕâÒ»ÌØÊâµÄ·½·¨×÷ÒÑϽ²½â£º
¡¡¡¡Ê×ÏÈ£¬ÎÒÃÇÒªÏÈÁ˽âÒ»ÏÂÀàµÄ¸ÅÄJavaScript ±¾ÉíÊÇÒ»ÖÖÃæÏò¶ÔÏóµÄÓïÑÔ£¬ËüËùÉæ¼°µÄÔªËظù¾ÝÆäÊôÐÔµ ......

10¸ö»ùÓÚJavaScriptµÄWYSIWYG(Ëù¼û¼´ËùµÃ)±à¼­Æ÷


ÔÚÏ߱༭ÄÚÈݵÄʱºò£¬ÄÇЩ»ùÓÚ JavaScript µÄ±à¼­Æ÷°ïÁËÎÒÃÇ´ó棬ÕâЩËù¼û¼´ËùµÃ£¨WYSIWYG£©±à¼­Æ÷£¬¸øÎÒÃÇÌṩÁËÀàËÆ
Office µÄ²Ù×÷ÌåÑé¡£Èç½ñ£¬ÈκÎÍøÕ¾ÄÚÈݹÜÀíϵͳ£¨CMS£©ºÍ²©¿Íϵͳ¶¼ÐèÒªÒ»¸öÕâÑùµÄ±à¼­Æ÷¡£±¾Îľ«Ñ¡ÁË10¸ö»ùÓÚ JavaScript 
µÄ±à¼­Æ÷£¬ËüÃÇÓеÄÊÇ»ùÓÚ jQuery ¿ò¼Ü£¬ÓеãÔò²»ÊÇ¡£
Mar ......

JavaScriptʹÓü¼Çɾ«ÝÍ

(Ò»).È·ÈÏɾ³ýÓ÷¨:
  1. BtnDel.Attributes.Add("onclick","return confirm('"+"È·ÈÏɾ³ý?"+"')");
  2. linktempDelete.Attributes["onclick"]="javascript:return  confirm('"+"È·ÈÏɾ³ý?"+"');";
  3. privat ......

ÓÃJavaScript»ñÈ¡QueryString£¨Î´²â£©

function QueryString(fieldName){
var urlString = location.search;
if (urlString != null) {
var typeQu = fieldName + "=";
var urlEnd = urlString.indexOf(typeQu);
if (urlEnd != -1) {
var paramsUrl = urlString.substring(urlEnd + typeQu.length);
var isEnd = paramsUrl.indexOf('&' ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ