JavaScriptµÄÄÚÖöÔÏóºÍä¯ÀÀÆ÷¶ÔÏó
ÔÚjavascriptÖжÔÏóͨ³£°üÀ¨Á½ÖÖÀàÐÍ£ºÄÚÖöÔÏóºÍä¯ÀÀÆ÷¶ÔÏ󣬴ËÍ⣬Óû§»¹¿ÉÒÔ×Ô¶¨Òå¶ÔÏó¡£
¶ÔÏó°üº¬Á½¸öÒªËØ£º1.ÓÃÀ´ÃèÊö¶ÔÏóÌØÐÔµÄÒ»×éÊý¾Ý£¬Ò²¾ÍÊÇÈô¸É±äÁ¿£¬Í¨³£³ÆΪÊôÐÔ¡£2.ÓÃÀ´²Ù×÷¶ÔÏóÌØÐÔµÄÈô¸É¶¯×÷£¬Ò²¾ÍÊÇÈô¸Éº¯Êý£¬Í¨³£³ÆΪ·½·¨¡£
ä¯ÀÀÆ÷¶ÔÏó
¶ÔÏó
º¬Òå
anchor
µ±Ç°ÎĵµÖÐÉèÖÃÁËnameÊôÐԵij¬Á´½Ó
applet
µ±Ç°ÎĵµÖеÄС³ÌÐò
area
¿Í»§¶ËͼÐÎÓ³ÉäÖеÄÇøÓò
button
±íµ¥Öеİ´Å¥
checkbook
±íµ¥Öеĸ´Ñ¡¿ò
document
µ±Ç°´°¿ÚÖеÄHTMLÎĵµ
embed
µ±Ç°´°¿ÚÖеÄǶÈë¶ÔÏó
event
ä¯ÀÀÆ÷Öз¢ÉúµÄʼþ
fileUpload
±íµ¥ÖеÄÎļþÑ¡Ôñ¿ò
form
µ±Ç°ÎĵµÖÐµÄ±íµ¥
frame
µ±Ç°´°¿ÚÖеĿò¼Ü
hidden
±íµ¥ÖÐÒþ²Ø×Ö¶Î
history
ä¯ÀÀÆ÷·ÃÎʹýµÄurlÀúÊ·¼Ç¼
image
µ±Ç°ÎĵµÖеÄͼÐÎÎļþ
link
µ±Ç°ÎĵµÖÐÉèÖÃÁËhrefÊôÐԵij¬Á´½Ó
location
ä¯ÀÀÆ÷µ±Ç°ÏÔʾÍøÒ³µÄURL
mimeType
ä¯ÀÀÆ÷Ö§³ÖµÄÌض¨MIMEÀàÐÍÐÅÏ¢
navigator
µ±Ç°ä¯ÀÀÆ÷
option
±íµ¥ÖÐÑ¡Ïî²Ëµ¥µÄÑ¡Ïî
password
±íµ¥ÖеĿÚÁî¿ò
plugin
µ±Ç°ä¯ÀÀÆ÷ÖеIJå¼þ
radio
±íµ¥Öеĵ¥Ñ¡¿ò
reset
±íµ¥ÖеÄÖØÖð´Å¥
screen
Óû§ÆÁÄ»
select
±íµ¥ÖеÄÑ¡Ïî²Ëµ¥
submit
±íµ¥ÖеÄÌá½»°´Å¥
text
±íµ¥Öеĵ¥ÐÐÎı¾¿ò
textarea
±íµ¥ÖеĶàÐÐÎı¾¿ò
window
ä¯ÀÀÆ÷´°¿Ú»ò´°¿ÚÖеĿò¼Ü
ÄÚÖöÔÏó
1.Array¶ÔÏó;2.Boolean¶ÔÏó;3.Date¶ÔÏó;4.Math¶ÔÏó;5.Number¶ÔÏó;6.Object¶ÔÏó;7.RegExp¶ÔÏó;8.String¶ÔÏó;9.Global¶ÔÏó;10.Function¶ÔÏó
1.Array¶ÔÏóÒ²¾ÍÊÇÊý×é¶ÔÏó£¬Êý×éÔªËز»µ«¿ÉÒÔʹÆäËûÊý¾ÝÀàÐÍ£¬¶øÇÒ¿ÉÒÔÊÇÆäËûÊý×é»ò¶ÔÏó
constructor
·µ»Ø¶Ô´´½¨´Ë¶ÔÏóµÄÊý×麯ÊýµÄÒýÓá£
index
input
length
ÉèÖûò·µ»ØÊý×éÖÐÔªËصÄÊýÄ¿¡£
concat()
Á¬½ÓÁ½¸ö»ò¸ü¶àµÄÊý×飬²¢·µ»Ø½á¹û¡£
join()
°ÑÊý×éµÄËùÓÐÔªËØ·ÅÈëÒ»¸ö×Ö·û´®¡£ÔªËØͨ¹ýÖ¸¶¨µÄ·Ö¸ô·û½øÐзָô¡£
pop()
ɾ³ý²¢·µ»ØÊý×éµÄ×îºóÒ»¸öÔªËØ
push()
ÏòÊý×éµÄĩβÌí¼ÓÒ»¸ö»ò¸ü¶àÔªËØ£¬²¢·µ»Øеij¤¶È¡£
reverse()
µßµ¹Êý×éÖÐÔªËصÄ˳Ðò¡£
shift()
ɾ³ý²¢·µ»ØÊý×éµÄµÚÒ»¸öÔªËØ
slice()
´Óij¸öÒÑÓеÄÊý×é·µ»ØÑ¡¶¨µÄÔªËØ
sort()
¶ÔÊý×éµÄÔªËؽøÐÐÅÅÐò
splice()
ɾ³ýÔªËØ£¬²¢ÏòÊý×éÌí¼ÓÐÂÔªËØ¡£
toSource()
·µ»Ø¸Ã¶ÔÏóµÄÔ´´úÂë¡£
toString()
°ÑÊý×éת»»Îª×Ö·û´®£¬²¢·µ»Ø½á¹û¡£
toLocaleString()
°ÑÊý×éת»»Îª±¾µØÊý×飬²¢·µ»Ø½á¹û¡£
unshift()
ÏòÊý×éµÄ¿ªÍ·Ìí¼ÓÒ»¸ö»ò¸ü
Ïà¹ØÎĵµ£º
ÀûÓÃjsÀ´¶¯Ì¬´´½¨±í¸ñÓÐÁ½ÖÖ¸ñʽ£¬appendChild()ºÍinsertRow¡¢insertCell()¡£Á½ÖÖ·½Ê½Æäʵ²î²»¶à£¬µ«µÚÒ»ÖÖÓпÉÄÜÔÚIEÉÏÓÐÎÊÌ⣬ËùÒÔÍƼö´ó¼ÒʹÓõڶþÖÖÁË£¬Ö±½Ó˵°É¡£
1¡¢inserRow()ºÍinsertCell()º¯Êý
insertRow()º¯Êý¿ÉÒÔ´ø²ÎÊý£¬ÐÎʽÈçÏ£º
insertRow(index)£ºindex´Ó0¿ªÊ¼
¡¡¡¡Õâ¸öº¯Êý½«ÐÂÐÐÌí¼Óµ½indexµÄÄÇÒ»ÐÐÇ ......
×¢Ò⣺readOnlyÖеÄOÒª´óд
//Ò³Ãæ³õʼ»¯Â¼È룬ÅжÏÖ¸±ê˵Ã÷ÊÇ·ñΪ¹¤×ÊÐÔÖ§³ö¡£
function init() {
var mark = "<%=mark%>";
//Èç¹ûÖ¸±ê˵Ã÷Ϊ“¹¤×ÊÐÔÖ§³ö”£¬Ôò¹¤×ÊÖ§³öÄÇÒ»Ïî±äΪֻ¶Á£¬ÇÒֵΪ“Ö¸±ê¿ÉÓýð¶î”£»ÆäËû¼Èë¿ò¶¼²»¿É¼Èë¡£
......
Although the days of long and tedious code branches to target specific browsers in JavaScript are over, once in a while it's still necessary to do some simple code branching and object detection to ensure that a certain piece of code is working properly on a user's machine.
In this article, I ......
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>select-option onclick </title>
<script type="text/javascript" >
function simOptionClick4IE(){  ......
@author songfeng
ÒòΪJSÄÚ¶ÔÏóµÄ·½·¨Êµ¼ÊÉÏÊÇ´æ´¢Óï¾äµÄÒ»¸öÀàËÆÓÚÖ¸ÕëµÄ¶«Î÷. ÆäÖ¸ÏòÁËÄÚ´æµÄÒ»¸öλÖÃ, Ò²¾ÍÊÇÆ亯ÊýµÄλÖÃ,µ±È»Ò²¿ÉÒÔÈÃÆäÖ¸ÏòÒ»¸ö±äÁ¿Öµ.
var foo = new Object();
&nbs ......