·¢²¼Ò»¸ö»ùÓÚjavascriptµÄÈÕÆÚÀ©Õ¹
javascriptÖжÔÈÕÆÚÊDZȽÏÈõµÄ£¬ÌرðÊÇÈÕÆÚ¸ñʽ»¯ºÍ´Ó×Ö·ûÖлñÈ¡ÈÕÆÚÕâÁ½¸ö¹¦ÄÜÊÇû
Óеģ¬×Ô¼ºÐ´³ÌÐòµÄʱºò·â×°ÁËÕâЩ¹¦ÄÜ£¬·ÖÏíһϣ¬Ï£Íû¶Ô´ó¼ÒÓÐÓá£ÕâЩÀ©Õ¹ÓÐЩÊÇÍøÉÏһЩÅóÓÑдµÄ£¬¾¹ýÎҵĸÄÔ죬ÓÐЩÊÇÎÒ×Ô¼ºÐ´µÄ¡£
º¯ÊýµÄ¹¦ÄÜ·Ö±ðÊÇ£º
Date.prototype.format =
function(format)£º¸ù¾Ý±í´ïʽ½«ÈÕÆÚ¸ñʽ»¯Îª×Ö·û´®£¬ÒªÇóÖ¸¶¨Ò»¸ö²ÎÊýformat¡£²ÎÊýformat±íʾ¸ñʽ»¯µÄ±í´ïʽ£¬²ÉÓñê×¼µÄÈÕ
ÆÚ±í´ïʽ£¬Èçyyyy±íʾÄ꣬MM±íʾÔ¡£Ê¾Àý£ºnew
Date().format("yyyy-MM-dd");½«·µ»Ø2009-12-23µÄ×Ö·û´®¡£
Date.prototype.clone =
function()£ºÈÕÆÚ¿Ë¡£¬ÕâÆäʵÊÇÒ»¸ö±È½Ï¼òµ¥µÄº¯Êý£¬ÈÕÆÚÊÇÒýÓÃÀàÐÍ£¬ËùÒÔ»áÐèÒªÕâ¸ö¹¦ÄÜ£¬ÌرðÊÇÔÚ²ÎÊý´«µÝµÄʱºò¡£
Date.prototype.dateDiff =
function(interval,
date)£ºÈÕÆÚÏà¼õ£¬Õâ¸öº¯ÊýÎÒ¼¸Ð´ÁËÈÕÆÚÌìµÄÏà¼õ£¬ÒòΪÎÒ»¹Ã»ÓÐÆäËüÀàÐ͵ÄÈÕÆÚÏà¼õ£¬ºÇºÇ£¬Èç¹ûÄãÒªÓõĻ°£¬×Ô¼ºÐ´Ò»ÏÂÒ²ºÜÈÝÒ×£¬¸ÄÌìÎÒÓÐʱ¼äÔÙ²¹ÉÏ
È¥°É¡£
Date.prototype.dateAdd =
function(expr)£ºÈÕÆÚÏà¼Ó£¬ÔÚÈÕÆÚ¼ÆËãµÄʱºòÓã¬Õâ¸öº¯ÊýÐèÒªÖصã½éÉܾÍÊÇexprÕâ¸ö±í´ïʽ£¬Õâ¸ö±í´ïʽÎÒºóÃæÓÐÒ»¸ö¶ÔStringµÄÀ©
Õ¹£¬Ëü¿ÉÒÔÖ§³Ö +2d(±íʾ¼Ó2Ìì)£¬3d(±íʾ¼Ó3Ìì)£¬-5y(±íʾ¼õ5Äê)£¬Ã÷°×ÁËô£¬·Ç³£ÊµÓõŦÄÜ£¬Ö±½ÓдÎı¾±í´ïʽ¾Í¿ÉÒÔÁË¡£
String.prototype.dateExpression
= function()
£º·ÖÎöÈÕÆÚ±í´ïʽ£¬Õâ¸öº¯ÊýÆäʵÊÇΪÁËdateAdd·þÎñµÄ£¬´Ó±í´ïʽÖÐÌáÈ¡¼ÆËãÈÕÆÚµÄÀàÐͼ°Ïà¾ÍµÄÊý×Ö£¬ÆäʵdateDiffÒ²Ó¦¸ÃÓõ½ÕâÖÖ·½Ê½£¬µ«ÎÒ
ÏÖÔÚÔÝʱûÓÐʱ¼äÈ¥¸Ä¡£
String.prototype.toDateEx =
function()£ºÖ±½Ó´Ó×Ö·û´®ÖÐÌáÈ¡µ½ÈÕÆÚ£¬Õâ¸öº¯Êý±È½ÏÀ÷º¦£¬ºÇºÇ£¬Èç¹ûÄãµÄÈÕÆڱȽϹ淶£¬¿ÉÒÔÖ±½ÓÓÃÕâ¸öº¯ÊýÌáÈ¡¾ÍOK¡£ÎҼǵÃÎÒÔÚ֮ǰһƪÎÄ
ÕÂÖн²µ½¹ýËü£¬ÎÄÕÂÃû×Ö½ÐJSÖ±½Óת»»º¬ÖÐÎĵÄÂÒÐò
×Ö·ûΪÈÕÆÚ
£¬ÓÐÐËȤµÄ²»·Á¿´Ò»Ï¡£
String.prototype.toDate =
function(format)£ºÕâ¸öº¯ÊýÊǸù¾ÝÒ»¸ö±í´ïʽ´Ó×Ö·û´®ÌáÈ¡ÈÕÆÚ£¬ºÍtoDateEx²»Í¬µÄÊ£¬ËüÐèÒªÖ¸¶¨Ò»¸ö±í´ïʽ²Å¿ÉÒÔ¡£ÆäʵÎÒÒ»Ö±¾õ
µÃÕâ¸öº¯ÊýÓеãÅÓ´óÁË£¬µ«ÊÇÒòΪJavascript²»Ö§³ÖÕýÔòµÄÃüÃû²¶»ñ×飬ËùÒÔһֱû°ì·¨¸øËü¼õ·Ê£¬Èç¹ûÓÐÅóÓÑÓиüÇÉÃîµÄ·½·¨¿ÉÒÔʵÏÖ£¬Çë¸øÎÒÁôÑÔ»ò
Õß·¢Óʼþ¸øÎÒ£¬·Ç³£¸Ðл¡£
½éÉܾÍÕâô¶àÁË£¬Javascript»¹ÊÇͦÓÐÒâ˼µÄ£¬ÈõÀàÐ͵ÄÓïÑÔÓÐËüµÄºÃ´¦£¬·½±ã£¬µ«¶ÔÓÚ³õѧÕßÀ´Ëµ£¬¿ÉÄܲ»Ì«ºÃ£¬¶ÔÓÚÀÏÊÖÀ´Ëµ£¬¿ÉÄÜ»áϲ»¶Ò»
Щ¡£ÔÚÕâЩÈÕÆÚµÄÀ
Ïà¹ØÎĵµ£º
´ò¿ªÇëÇó
¡¡¡¡ÓÐÁËÒªÁ¬½ÓµÄ URL ºó¾Í¿ÉÒÔÅäÖÃÇëÇóÁË¡£¿ÉÒÔÓà XMLHttpRequest ¶ÔÏóµÄ open() ·½·¨À´Íê³É¡£¸Ã·½·¨ÓÐÎå¸ö²ÎÊý:
request-type:·¢ËÍÇëÇóµÄÀàÐÍ¡£µäÐ͵ÄÖµÊÇ GET »ò POST£¬µ«Ò²¿ÉÒÔ·¢ËÍ HEAD ÇëÇó¡£
url:ÒªÁ¬½ÓµÄ URL¡£
asynch:Èç¹ûÏ£ÍûʹÓÃÒì²½Á¬½ÓÔòΪ true£¬·ñÔòΪ false¡£¸Ã²ÎÊýÊÇ¿ÉÑ¡µÄ£¬Ä¬ÈÏΪ true¡£
......
ÓÃjs ´ò¿ªÐ´°¿ÚµÄʱºò£¬´°¿Ú×î´ó»¯¡£
function showBigLisence(url){
if(url!== undefined && url!== null && url !== ''){
var scrWidth=screen.availWidth;
var scrHeight=screen.availHeight;
var self=window.open( ......
<script>
///Óû§Êý¾Ý½á¹¹
function _tagUser()
{
this.UserId = 0; //0-4
this.UserName = ""; //5-
this.Parse = function(VarTypeUser)
{
for (var i=0;i<VarTypeUser.length;i++)
VarTypeUser[i] = String.fro ......
¼ÇµÃ´óÒ»µÄʱºò£¬ÎÒÃÇרҵ¿ªÁËÍøÒ³Éè¼ÆÕâÃſγ̣¬ÄÇʱ£¬¿´×ÅÊéÉϵļòµ¥¼¸ÐдúÂë²úÉúµÄJSÌØЧ£¬ºÜÕ𾪣¬¾Íϲ»¶ÉÏÁËjs½Å±¾ÓïÑÔ£¬ºÃËÆÈËÃdz£ËµµÄÒ»¼ûÖÓÇé°É¡£¾ªÑÞÓÚËýÇ¿´óµÄ¹¦ÄÜ¡£¿ÉÊÇ£¬¶ÔÓÚ£ê£ó,Ö»ÄÜÓÃÒź¶À´ÐÎÈݵ±Ê±ÎÒµÄÐÄÇé¡£µ±Ê±£¬ÀÏʦֻÊÇΪ¸Ï½ø¶È£¬Íê³ÉËùνµÄѧԺ²¼ÖõĽÌѧÈÎÎñ£¬×øÔÚ¶àýÌåµçÄÔÇ°£¬ ......
ÕýÔò±í´ïʽÊÇÒ»¸ö·Ç³£·Ç³£·Ç³£Ç¿´óµÄÓïÑÔ£¬ÕâÀïÁ¬ÐøÓÃÁËÈý¸ö·Ç³££¬ÎÒ¾õµÃ»¹²»¹»£¬Ëü½¿Ð¡µ«È´¹¦
ÄÜÇ¿´ó£¬¾ø¶ÔµÄŨËõµÄ¾ÍÊǾ«»ª£¬ÎÒ·¢ÏÖÎÒÔ½À´Ô½Ï²»¶ËüÁË¡£
Õâ¶Îʱ¼ä×öÈÕÆڵĴ¦Àí£¬ÐèÒªÓõ½ÈÕÆڵļÆË㣬°üÀ¨¼Ó¼õʲôµÄ£¬ÓÚÊÇ×öÁËÒ»¸ö¹«Óô¦ÀíµÄÀ©Õ¹£¬½Ð
String.prototype.dateExpression¡£ÒòΪÈÕÆÚ´¦Àí¶¼»áÓõ½±í´ïʽ£¬À ......