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;
Ïà¹ØÎĵµ£º
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] = [];
}
......
prototype ÊÇÔÚ IE 4 ¼°ÆäÒÔºó°æ±¾ÒýÈëµÄÒ»¸öÕë¶ÔÓÚijһÀàµÄ¶ÔÏóµÄ·½·¨£¬¶øÇÒÌØÊâµÄµØ·½±ãÔÚÓÚ£ºËüÊÇÒ»¸ö¸øÀàµÄ¶ÔÏóÌí¼Ó·½·¨µÄ·½·¨£¡ÕâÒ»µã¿ÉÄÜÌýÆðÀ´»áÓеãÂÒ£¬±ð¼±£¬ÏÂÃæÎÒ±ãͨ¹ýʵÀý¶ÔÕâÒ»ÌØÊâµÄ·½·¨×÷ÒÑϽ²½â£º
¡¡¡¡Ê×ÏÈ£¬ÎÒÃÇÒªÏÈÁ˽âÒ»ÏÂÀàµÄ¸ÅÄJavaScript ±¾ÉíÊÇÒ»ÖÖÃæÏò¶ÔÏóµÄÓïÑÔ£¬ËüËùÉæ¼°µÄÔªËظù¾ÝÆäÊôÐÔµ ......
ÔÚÏß±à¼ÄÚÈݵÄʱºò£¬ÄÇЩ»ùÓÚ JavaScript µÄ±à¼Æ÷°ïÁËÎÒÃÇ´ó棬ÕâЩËù¼û¼´ËùµÃ£¨WYSIWYG£©±à¼Æ÷£¬¸øÎÒÃÇÌṩÁËÀàËÆ
Office µÄ²Ù×÷ÌåÑé¡£Èç½ñ£¬ÈκÎÍøÕ¾ÄÚÈݹÜÀíϵͳ£¨CMS£©ºÍ²©¿Íϵͳ¶¼ÐèÒªÒ»¸öÕâÑùµÄ±à¼Æ÷¡£±¾Îľ«Ñ¡ÁË10¸ö»ùÓÚ JavaScript
µÄ±à¼Æ÷£¬ËüÃÇÓеÄÊÇ»ùÓÚ jQuery ¿ò¼Ü£¬ÓеãÔò²»ÊÇ¡£
Mar ......
(Ò»).È·ÈÏɾ³ýÓ÷¨:
1. BtnDel.Attributes.Add("onclick","return confirm('"+"È·ÈÏɾ³ý?"+"')");
2. linktempDelete.Attributes["onclick"]="javascript:return confirm('"+"È·ÈÏɾ³ý?"+"');";
3. privat ......
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('&' ......