htmlÍøÒ³ÖÐʹÓÃjavascript½Å±¾µ÷ÓÃxmlÎĵµÊµÀý
±¾Ê¾ÀýÊÇҪʵÏÖÓÃjavascript½Å±¾¶ÁÈ¡xmlÎĵµ£¬ÔÚxmlÎĵµÖÐʵÏÖÔ¼Êø¹¦ÄÜ£¬test.htmlÎļþ´úÂëÈçÏ£º
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8">
<script type="text/javascript">
var xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); //´´½¨xmlÎĵµ¶ÔÏó£»
xmlDoc.validateOnParse="true"; //¿ªÆôУÑ鹦ÄÜ£»
xmlDoc.async="false";
xmlDoc.load("product.xml"); //×°ÔØxmlÎĵµ
var reason = xmlDoc.parseError.reason; //»ñÈ¡´íÎóÔÒò
var line = xmlDoc.parseError.line; //»ñÈ¡´íÎóÐкÅ
document.write("´íÎóÔÒò" + reason + "<br/>" + "´íÎóÐ
Ïà¹ØÎĵµ£º
scrollHeight: »ñÈ¡¶ÔÏóµÄ¹ö¶¯¸ß¶È¡£
scrollLeft:ÉèÖûò»ñȡλÓÚ¶ÔÏó×ó±ß½çºÍ´°¿ÚÖÐÄ¿Ç°¿É¼ûÄÚÈݵÄ×î×ó¶ËÖ®¼äµÄ¾àÀë
scrollTop:ÉèÖûò»ñȡλÓÚ¶ÔÏó×¶ËºÍ´°¿ÚÖпɼûÄÚÈݵÄ×¶ËÖ®¼äµÄ¾àÀë
scrollWidth:»ñÈ¡¶ÔÏóµÄ¹ö¶¯¿í¶È
offsetHeight:»ñÈ¡¶ÔÏóÏà¶ÔÓÚ°æÃæ»òÓɸ¸×ø±ê offsetParent ÊôÐÔÖ¸¶¨µÄ¸¸×ø±êµÄ¸ß¶È
offsetL ......
1. oncontextmenu="window.event.returnValue=false" ½«³¹µ×ÆÁ±ÎÊó±êÓÒ¼ü
<table border oncontextmenu=return(false)><td>no</table> ¿ÉÓÃÓÚTable
2. <body onselectstart="return false"> È¡ÏûÑ¡È¡¡¢·ÀÖ¹¸´ÖÆ
3. onpaste="return false" ²»×¼Õ³Ìù
4. oncopy="return false;" oncut="re ......
Ò»¡¢ÑéÖ¤Àà
1¡¢Êý×ÖÑéÖ¤ÄÚ
1.1 ÕûÊý
1.2 ´óÓÚ0µÄÕûÊý £¨ÓÃÓÚ´«À´µÄIDµÄÑéÖ¤)
1.3 ¸ºÕûÊýµÄÑéÖ¤
1.4 ÕûÊý²»ÄÜ´óÓÚiMax
1.5 ÕûÊý²»ÄÜСÓÚiMin
2¡¢Ê±¼äÀà
2.1 ¶Ìʱ¼ä£¬ÐÎÈç (13:04:06)
2.2 ¶ÌÈÕÆÚ£¬ÐÎÈç (2003-12-05)
2.3 ³¤Ê±¼ä£¬ÐÎÈç (2003-12-05 13:04:06)
2.4 Ö»ÓÐÄêºÍÔ¡£ÐÎÈç(2003-05,»òÕß2003-5)
2.5 ......
´óÒ»µãµÄ¿ò¼Ü¶¼ÓÐÕâ¸ö¶«Î÷¡£PrototypeÔÀ´µÄ¼Ì³Ð»úÖƷdz£Èõ£¬ÎªÁËÓëmootools¶Ô¿¹Ò²Ç¿»¯ÁËÕâÒ»·½Ãæ¡£ÂҪÓÃÔÐͼ̳ÐÀ´Ä£·ÂÀà¼Ì³Ð£¬¶¼»ù±¾´æÔÚÒ»¸ö¿Ë¡º¯Êý¡£°Ñ¸¸ÀàµÄÔÐÍÊôÐÔ¸´ÖƵ½×ÓÀàÉÏÈ¥¡£ÀíÄîµÄ¶«Î÷ÔÝʱÕâô¶à£¬¶¯ÊÖʵ¼ùÒ»ÏÂ×îʵ¼Ê¡£ÎÒÃÇÉè¼ÆÒ»¸öÊý×éÀ࣬ӵÓÐÔÉúÊý×éµÄÄÜÁ¦ÓëÐÂÀ©Õ¹µÄÄÜÁ¦¡£
var isNumber ......
ÔÚrubyÖÐÎÒÃÇ¿ÉÒÔͨ¹ý"*"²Ù×÷·ûÈ¥×Ö·û´®½øÐб¶Ôö£¬Èç"ruby"*2Ôò·µ»Ø"rubyruby"¡£ÔÚjavascriptÖУ¬×Ö·û´®Ö»ÄÜÓüӺţ¬Â³Ë·¨Ò²¼Ó·¨Ñݱä¹ýÀ´µÄ¡£ÎÒÃÇ¿ÉÒÔ¸ãÒ»¸öÊÔÊÔ¡£
·½·¨Ò»
String.prototype.times = function(n) {//IE6 530-640 FF3 400~550 IE8 840 ~1110 chrome 600~1000
&nb ......