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

ÓÃ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µÈ´ò¿ªÊ±»á±¨¡¸NotSuportedErr¡¹´íÎó.
2. ÈçºÎÅж¨PDFÊÇÓÃAcrobat Reader´ò¿ª,»¹ÊÇÓÃIE´ò¿ªµÄ·½·¨
this.external = True    (IEµÈ´ò¿ª)
this.external = False   (Acrobat Reader´ò¿ª)
 
¾ßÌå²ÎÔÄ£ºhttp://www.openspc2.org/reibun/Acrobat7/javascript/doc/010/index.html


Ïà¹ØÎĵµ£º

[¶­î£]javascriptÖеÄÊý¾ÝÀàÐÍ¡¢ObjectÓëFunction

1. Êý¾ÝÀàÐÍ
javascriptÖаüº¬6ÖÖÊý¾ÝÀàÐÍ£ºundefined¡¢null¡¢string¡¢number¡¢booleanºÍobject¡£ÆäÖУ¬Ç°5
ÖÖÊÇԭʼÊý¾ÝÀàÐÍ£¬objectÊǶÔÏóÀàÐÍ¡£
objectÀàÐÍÖаüÀ¨Object¡¢Function¡¢String¡¢Number¡¢Boolean¡¢Array¡¢Regexp¡¢Date¡¢
Globel¡¢Math¡¢Error£¬ÒÔ¼°ËÞÖ÷»·¾³ÌṩµÄobjectÀàÐÍ¡£
2. ÀàÐÍÅжÏ
ͨ³£ÔÚjav ......

JavaScript ÕÚÕֲ㠵¯³ö¿ò

<script type="text/javas
cript">
var docEle = function() {
    return document.getElementById(arguments[0]) || false;
}
function openNewDiv(_id){
    var m = "mask";
    if (docEle(_id)) document.body.removeChild(docEle(_i ......

javascriptÈÕÆÚÅжÏ

function checkserch()
{
    var stratTime =document.all("startdate").value;
    var endTime = document.all("enddate").value;
    var arr1=stratTime.split("-");
    var arr2=endTime.split("-");
    if((stratTime == '' &a ......

JavaScriptʵÏÖÖÐÎÄתƴÒô

1¡¢ÎÊÌâ±³¾°£º
ÔÚ×öÏîĿʱºòÓöµ½Ò»¸öССµÄÏÔʾ¿Í»§²¿ÃÅÃû³Æ£¨Æ´Òô£©µÄÒµÎñ£¬¾ÍÊÇÔÚ²¿ÃÅÃû³ÆÏÂÓÐÏàÓ¦µÄÆ´Òô£¬¶øÔÚÏÖÓеÄÊý¾Ý¿âÖÐûÓÐÏàÓ¦×ֶΣ¬²¢ÇÒ²¿ÃÅÊýÁ¿±È½Ï¶à£¬Ìí¼ÓÆðÀ´±È½Ï·Ñʱ£¬¾ÍÏëÄÜ·ñÔÚjsÖÐʵÏÖ£¬ÔÚÒ³ÃæÖд¦Àí¡£
2¡¢Ô­ÀíÃèÊö
³ÌÐòÔ­ÀíºÜ¼òµ¥£¬ÍøÉÏ¿ÉÒÔÕÒµ½ºº×ÖÆ´ÒôµÄÊý¾Ý×ֵ䣬µ«ÊÇÓÉÓÚ´ó¼Ò¶¼ÖªµÀGB2312±àÂëÀï ......

Javascriptʱ¼ä²î¼ÆË㺯Êý

JavaScriptʱ¼ä²î¼ÆË㺯Êý
<mce:script language="javascript"><!--
Date.prototype.dateDiff = function(interval,objDate){
//Èô參數²»×ã»ò objDate ²»ÊÇÈÕÆÚÎï¼þ則»Ø傳 undefined
if(arguments.length<2||objDate.constructor!=Date) return undefined;
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ