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

ÐÞ¸´µ¯³öJavaScript¶Ô»°¿òÊ±Ò³Ãæ±³¾°±ä°×µÄÎÊÌâ

from http://niunan.javaeye.com/blog/248256
Page.ClientScript.RegisterStartupScript(Page.GetType(),"message", "<mce:script language='javascript' defer>alert('ÑéÖ¤ÂëÊäÈë´íÎó£¡');</mce:script>");


Ïà¹ØÎĵµ£º

JavaScript ÖÐʹÓà replace ´ïµ½ replaceAllµÄЧ¹û

·½·¨£º string.replace(new RegExp(oldString,"gm"),newString))
gm  g=global, m=multiLine£¬´óÖÂÉÏ·½·¨¾ÍÊÇÕâÑùµÄ£¬¿ÉÒÔʵÏÖÌæ»»È«²¿Ö¸¶¨×Ö´®
ÁíÒ»¸ö¼òµ¥µÄÑéÖ¤JSµÄ·½·¨£º
ÔÚä¯ÀÀÆ÷µØÖ·À¸ÊäÈë
javascript:alert("abcabcabc".replace(new RegExp("a","gm"),"ad&quo ......

¼òµ¥µÄJavascript Cookie²Ù×÷

<mce:script type="text/javascript"><!--

function SetCookie(name,value,expire) {
var exp = new Date();
exp.setTime(exp.getTime() + expire);
document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString();
} ......

ÓÃAcrobat JavaScript¹Ø±ÕPDF

function openCheck()
{
if (!this.external)
{
app.alert("Acrobat¤Ç¤Ï実ÐФǤ­¤Þ¤»¤ó");
this.closeDoc(true);
// var myDoc = event.target;
// myDoc.closeDoc(true);
}
}
openCheck();
 
ÐèҪעÒâµÄÊÇ:
1. ÉÏÊöµÄsourceÖ»ÄÜÔÚPDF ÓÃAcrobat Reader´ò¿ªÊ±²ÅÆð×÷ÓÃ,
ÈçÓÃIEµÈ´ò¿ªÊ±»á±¨¡¸NotSu ......

ieµÄjavascriptÓï¾äʧЧÐÞ¸´·½·¨

2007-01-20 01:01
ieµÄjavascriptʧЧÁË£¬²»ÊÇÉèÖõÄÎÊÌâ
ÕÛÌÚÁËÒ»ÍíÉÏÖÕÓÚÔÚˮľÉÏÕÒµ½´ð°¸ÁË,¾­¹ýÊÔÑé³É¹¦ÁË¡£¸ÐлÕâλhaning¡£Ò²Ï£Íû×ªÔØÖ®ºó£¬ÕâÆªÎÄÕÂÄܰïÖú¸ü¶àµÄÈË¡£
================================================
·¢ÐÅÈË: haning (°Øº®Óî), ÐÅÇø: Virus
±ê  Ìâ: KAV6.0ʹjavascriptÓï¾äʧЧÐÞ¸´·½·¨ ......

Javascript ÉèÖÃtextareaÊäÈë¿òµÄ×î´óÖµ

<html>
  <head>
  <title>²âÊÔÊäÈë×Ö·û</title>
  <script language=javascript>  
  String.prototype.lenB =function(){
    return this.replace(/[^\x00-\xff]/g,"**").length;
  }  
  function  a() ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ