javascript¸´Ñ¡¿òÑ¡Ôñ
string cbSelectOnClickJS = @"
if(this.checked)
{
document.getElementById('" + hidSelected.ClientID + @"').value += ',' + this.value;
}
else
{
document.getElementById('" + hidSelected.ClientID + @"').value
= document.getElementById('" + hidSelected.ClientID + @"').value
.replace(',' + this.value,'');
}";//else±íʾȥµô×îºóÒ»¸ö¶ººÅ
checkBox.Attributes.Add("onclick", cbSelectOnClickJS);
Òì³£µÄʹÓ÷½·¨
string strIsSpecial = ""; //ÅжÏÊÇ·ñÌØÊâµÄÑ¡ÈË
try
{
strIsSpecial = dic["IsSpecial"];
}
catch (Exception e) { }
Ïà¹ØÎĵµ£º
Ajax¿ò¼Ü jQuery
jQueryÊÇÒ»¿îÃâ·ÑÇÒ¿ª·ÅÔ´´úÂëµÄJavaScript´úÂë¿â£¬ÓÉJohn Resig´´½¨¡£ÊÚȨÐÒéΪGPLºÍMITÐí¿É֤˫ÐÒ顣ʾÀý´úÂ룺 $("p.neat").addClass("ohmy").show("slow"); ÌØµãÇáÁ¿¼¶¾GZipѹËõºó´«ÊäµÄ´úÂëÎļþ½ö14KB£¬Î´¾Ñ¹Ëõ´«Ë͵ĴúÂëÎļþ½ö26KB¡£ jQuery 1.26°æÊ±£º µµ°¸µµ°¸ÐÐÊýµµ°¸Size ±¸×¢ jquery-1.2 ......
ÎÒÃÇ¿ÉÒÔʹÓà JavaScript À´´´½¨¶¯Ì¬µÄͼÏñ¡£
ʵÀý
°´Å¥¶¯»
ÀûÓÃÁ½¸ö²»Í¬µÄʼþÀ´Çý¶¯Á½¸öÏàÓ¦µÄº¯Êý£¬À´Çл»Á½ÕŶÔÓ¦µÄͼƬÒÔ´´Ôì³ö¶¯»Ð§¹û¡£
JavaScript ¶¯»
ʹÓà JavaScript ´´½¨¶¯Ì¬Í¼ÏñÊÇ¿ÉÐеġ£
ÇÏÃÅ
ÊÇ£ºÊ¹Óà JavaScript ͨ¹ý²»Í¬µÄʼþÀ´Çл»²»Í¬µÄͼÏñ¡£
ÔÚÏÂÃæµÄÀý×ÓÖУ¬ÎÒÃÇÒªÖÆ×÷Ò»¸ö³äµ±Á ......
»ñÈ¡ÏÔʾµÄºº×Ö
document.getElementById("bigclass").options[window.document.getElementById("bigclass").selectedIndex].text
»ñÈ¡Êý¾Ý¿âÖеÄid
window.document.getElementById("bigclass").value
»ñÈ¡select×é·ÖÅäµÄË÷Òýid
window.document.getElementById("bigclass").selectedIndex
Àý×Ó£º
<select name= ......
JavaScript »ñÈ¡¿Í»§¶Ë¼ÆËã»úÓ²¼þ¼°ÏµÍ³ÐÅÏ¢
ͨ¹ýWMIÀ´ÊµÏÖ»ñÈ¡¿Í»§¶Ë¼ÆËã»úÓ²¼þ¼°ÏµÍ³ÐÅÏ¢:
1//ϵͳÐÅÏ¢»ñÈ¡
2function getSysInfo(){
3 var locator = new ActiveXObject ("WbemScripting.SWbemLocator");
4 var service = locator.ConnectServer(".");
5 //CPUÐÅÏ¢
6 var cpu = new Enu ......
ǰ¼¸Ìì×öÍøÕ¾µÄʱºòÐèÒª½²Êý¾Ý¿âÖеÄʱ¼ä¶ÁÈ¡µ½±äÁ¿ÖнøÐÐʹÓã¬Óõ½parseIntº¯Êý£¬½²×Ö·ûת»¯ÎªÊý×Ö¡£½ñÌì²âµÄʱºò·¢ÏÖÎÊÌâÁË£¬µ±Êý¾Ý¿âÖÐÔ·ÝΪ09µÄʱºò¾Í³öÎÊÌâÁË£¬ÓÃparseIntת»»Ö®ºó¾Í³É0ÁË¡£ºÃ²»½â¡£²âÁ˺þã¬Ã»Óз¢ÏÖÎÒ´úÂëÖеÄÎÊÌ⣬µ½googleËÑÁËһϣ¬²ÅÖªµÀÊÇÕâôһ»ØÊ¡£
¶ÔÓÚparseInt("01")µ½parseInt( ......