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

ÔÚjavascriptÎļþÖÐʹÓÃjstl±êÇ©

½ñÌì¿´µ½Í¬ÊÂharry_duanдµÄÒ»¸öjsÎļþ£¬¸Ð¾õͦÓÐÒâ˼¡£
Ä¿µØÊÇÔÚjsÎļþÖÐʹÓÃjstlµÄfmt:message
1.ÔÚ×ÊÔ´ÎļþÖж¨ÒåÏûÏ¢ errors.message1=error xxxxxx
2.´´½¨Ò»¸öjsÎļþ£¬ÎªÁËjstlÄÜÓ㬽«jsÎļþÃüÃûΪ myjs.js.jsp (ÒÔjsp½áβ)
js ´úÂë
 
<%@ page contentType="text/html; charset=utf-8" %>  
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>  
  
showMessage = function() {  
  alert("<fmt:message key="errors.message1"></fmt:message>");  
}  
3.ÔÚjspÖÐÒýÓÃÕâ¸öjsÎļþ
xml ´úÂë
 
<script type="text/javascript" src="js/myjs.js.jsp">script>  
<input type="button" onclick="javascript: showMessage();" value="showMessage">  
ÕâÑù¾ÍOKÁË


Ïà¹ØÎĵµ£º

javascriptʼþÏêϸ˵Ã÷

 Ô­ÎÄÍøÖ·£ºhttp://www.ccvita.com/?s=onbeforepaste
javascriptʼþÁбí½â˵javascriptʼþÁбí½â˵
ʼþ ä¯ÀÀÆ÷Ö§³Ö ½â˵
Ò»°ãʼþ onclick IE3¡¢N2 Êó±êµã»÷ʱ´¥·¢´Ëʼþ
ondblclick IE4¡¢N4 Êó±êË«»÷ʱ´¥·¢´Ëʼþ
onmousedown IE4¡¢N4 °´ÏÂÊó±êʱ´¥·¢´Ëʼþ
onmouseup IE4¡¢N4 Êó±ê°´ÏºóËÉ¿ªÊó±êʱ´¥·¢´ËÊ ......

javascript¿ò¼ÜÖ®¼Ì³Ð»úÖÆ

´óÒ»µãµÄ¿ò¼Ü¶¼ÓÐÕâ¸ö¶«Î÷¡£PrototypeÔ­À´µÄ¼Ì³Ð»úÖƷdz£Èõ£¬ÎªÁËÓëmootools¶Ô¿¹Ò²Ç¿»¯ÁËÕâÒ»·½Ãæ¡£ÂҪÓÃÔ­Ðͼ̳ÐÀ´Ä£·ÂÀà¼Ì³Ð£¬¶¼»ù±¾´æÔÚÒ»¸ö¿Ë¡º¯Êý¡£°Ñ¸¸ÀàµÄÔ­ÐÍÊôÐÔ¸´ÖƵ½×ÓÀàÉÏÈ¥¡£ÀíÄîµÄ¶«Î÷ÔÝʱÕâô¶à£¬¶¯ÊÖʵ¼ùÒ»ÏÂ×îʵ¼Ê¡£ÎÒÃÇÉè¼ÆÒ»¸öÊý×éÀ࣬ӵÓÐÔ­ÉúÊý×éµÄÄÜÁ¦ÓëÐÂÀ©Õ¹µÄÄÜÁ¦¡£

var isNumber ......

DIVÖйö¶¯ÌõÉèÖõ½Ëæ»úλÖÃ(CSS+Javascript)

¸Õ²ÅÒ»¸öÅóÓѸæËßÎÒËûµÄblogÓÑÇéÁ´½ÓÌ«¶àÁË£¬ËùÒÔ°ÑËùÓÐÁ´½Ó·Åµ½Ò»¸öDIVÖУ¬¼ÓÁ˸ö¹ö¶¯Ìõ£¬¿ÉÊÇËûÓÖ²»Ïëÿ´Î±ðÈËÀ´¿´£¬¿´µ½µÄ¶¼ÊÇÇ°Ã漸¸öÁ´½Ó£¬ÓÚÊÇÎÊÎÒÓÐûÓÐʲô°ì·¨£¬ÏëÁËÒ»¸ö£¬ºÇºÇ£¬ÕýºÃÓиö°ì·¨
styleºóÃæÓÃÓÚÏÞ¶¨DIVÑùʽ²¢¼Ó¹ö¶¯Ìõ£¬Õâ¸ö²»¶à˵
¹Ø¼üµÄµØ·½ÆäʵºÜ¼òµ¥£¬×îºóÁ½ÐÐJavascript¾ÍÊÇÁË£¬Æð×÷ÓõÄÖ»ÓÐ×îº ......

javascript ¼òÒ×¼ÆʱÆ÷

 <script language="javascript">
var timeLen = "0";
var timer = null;
function beginTimer()

  var hour="0";
  var minute="0";
  var second="0";
  timeLen = parseInt(timeLen)+1;
  hour = parseInt(timeLen/3600) ;
  minute = parseInt((timeLen-( ......

[´ÓjQuery¿´JavaScript]

jQueryƬ¶Î£º
var
// Will speed up references to window, and allows munging its name.
window = this,
// Will speed up references to undefined, and allows munging its name.
undefined,
// Map over jQuery in case of overwrite
_jQuery = window.jQuery,
// Map over the $ in case of overwrit ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ