ÐÞ¸´µ¯³öJavaScript¶Ô»°¿òÊ±Ò³Ãæ±³¾°±ä°×µÄÎÊÌâ
from http://niunan.javaeye.com/blog/248256
Page.ClientScript.RegisterStartupScript(Page.GetType(),"message", "<mce:script language='javascript' defer>alert('ÑéÖ¤ÂëÊäÈë´íÎó£¡');</mce:script>");
Ïà¹ØÎĵµ£º
·½·¨£º string.replace(new RegExp(oldString,"gm"),newString))
gm g=global, m=multiLine£¬´óÖÂÉÏ·½·¨¾ÍÊÇÕâÑùµÄ£¬¿ÉÒÔʵÏÖÌæ»»È«²¿Ö¸¶¨×Ö´®
ÁíÒ»¸ö¼òµ¥µÄÑéÖ¤JSµÄ·½·¨£º
ÔÚä¯ÀÀÆ÷µØÖ·À¸ÊäÈë
javascript:alert("abcabcabc".replace(new RegExp("a","gm"),"ad&quo ......
<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();
} ......
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 ......
2007-01-20 01:01
ieµÄjavascriptʧЧÁË£¬²»ÊÇÉèÖõÄÎÊÌâ
ÕÛÌÚÁËÒ»ÍíÉÏÖÕÓÚÔÚˮľÉÏÕÒµ½´ð°¸ÁË,¾¹ýÊÔÑé³É¹¦ÁË¡£¸ÐлÕâλhaning¡£Ò²Ï£Íû×ªÔØÖ®ºó£¬ÕâÆªÎÄÕÂÄܰïÖú¸ü¶àµÄÈË¡£
================================================
·¢ÐÅÈË: haning (°Øº®Óî), ÐÅÇø: Virus
±ê Ìâ: KAV6.0ʹjavascriptÓï¾äʧЧÐÞ¸´·½·¨ ......
<html>
<head>
<title>²âÊÔÊäÈë×Ö·û</title>
<script language=javascript>
String.prototype.lenB =function(){
return this.replace(/[^\x00-\xff]/g,"**").length;
}
function a() ......