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

ÔÚPBÖÐʹÓÃJavaScript½Å±¾º¯Êý

ÔÚPBÖÐʹÓÃJavaScript½Å±¾º¯Êý
ÔÚPBÖÐʹÓÃJavaScript½Å±¾º¯Êý
ÏÖÔÚÐí¶àµÄÐÅϢϵͳ¶¼ÊÇ»ùÓÚB/S°æ±¾£¬µ«PBдµÄÐÅϢϵͳÉú´æ¿Õ¼äÒ²±È½Ï´ó£¬ÍùÍùÊÇÒ»¸öÐÅϢϵͳ¼´ÓÐPB°æ±¾Ò²ÓÐB/S°æ±¾¡£ÐÅϢϵͳ»áÓÐÐí¶àµÄÒµÎñ¹æÔò£¬B/SÖÐÒµÎñ¹æÔòµÄ¼ì²éÔÚJavaScript½Å±¾ÖÐʵÏÖ£¬Èç¹ûÔÚPBÖÐÓÖʵÏÖÒ»´Î£¬·Ñʱ·ÑÁ¦²»Ëµ£¬
ÒµÎñ¹æÔò¸Ä±äÓÖÒªÖØбàÒë·Ö·¢¡£Èç¹ûÔÚPBÖе÷ÓÃÔÚB/SÖÐʵÏÖµÄJavaScript½Å±¾À´Íê³ÉÒµÎñ¹æÔò£¬Ê¡Ê±Ê¡Á¦Î¬»¤Á¿¼õС£¬ÏÂÃæ¾ÍÈÃÎÒÃÇÀ´ÊµÏÖ°É¡£
    Ò»¡¢»·¾³ËµÃ÷
           ÔÚPBÖÐÔËÐнű¾ÓïÑÔÐèÒª½èÖúmsscript.ocx×é¼þ¡£×¢²á±íÖеĶÔÏóÊÇMSScriptControl.ScriptControl.
           ÔËÐÐregedit.exe²éÕÒһϿ´ÊÇ·ñÒÑ´æÔÚ£¬Èç¹ûûÓоÍÏÂÔØÒ»¸ö°É£¬±ðÍüÁË×¢²áºÇ£¡
  ¶þ¡¢ÔÚPBÖÐÉùÃ÷
         oleobject io_script
         io_script = create oleobject
long ll_1=io_script.connecttonewobject( "MSScriptControl.ScriptControl")
if ll_10 then
    messagebox('Ìáʾ','´´½¨MSScriptControl.ScriptControl¶ÔÏó³ö´í£¬Çë×¢²ámsscript.ocx')
    return -1
end if
Èý¡¢×°ÈëjsÎļþ
li_file = FileOpen(gs_currentpath+"Check.js")
if li_file=-1 then
return -1
end if
li_readline=FileRead ( li_file, ls_1 )
do while li_readline>-1
ls_js=ls_js+ls_1+'~r~n'
li_readline=FileRead ( li_file, ls_1 )
loop
fileclose(li_file)
io_script.language="JScript"
io_script.addcode(ls_js)
ËÄ¡¢µ÷ÓÃJSÖеĺ¯Êý
any la_1=io_script.run("CheckFile",ls_filename)
CheckFile ÊÇJSÖеĺ¯Êý£¬ls_filenameÊÇCheckFile º¯ÊýµÄ²ÎÊý¡£


Ïà¹ØÎĵµ£º

JavaScriptÅжÏä¯ÀÀÆ÷ÀàÐͼ°°æ±¾

      ÄãÖªµÀÊÀ½çÉÏÓжàÉÙÖÖä¯ÀÀÆ÷Â𣿳ýÁËÎÒÃÇÊìÖªµÄIE, Firefox, Opera, SafariËÄ´óä¯ÀÀÆ÷Ö®Í⣬ÊÀ½çÉÏ»¹Óнü°ÙÖÖä¯ÀÀÆ÷¡£
       ¼¸ÌìÇ°£¬ä¯ÀÀÆ÷¼Ò×åÓиյ®ÉúÁËһλСÍõ×Ó£¬¾ÍÊÇGoogleÍƳöµÄChromeä¯ÀÀÆ÷¡£ÓÉÓÚChrome³öÉúÃûÃÅ£¬¾¡¹ÜËû»¹ÊǸöС¼Ò»ï£¬Ã»ÓÐÈ˸ÒС ......

JavaScriptʵ¼ÊÓ¦Ó㺶ԲãµÄ¿ØÖÆ

²ãµÄ¿ª·¢ÔÚʵ¼ÊÓ¦ÓÃÖбȽÏÖØÒª£¬±ÈÈçƯ¸¡¹ã¸æµÈµÈ£¬ÎÒÕâÀï¼òµ¥Ì½ÌÖһϡ£
1.  ¿ØÖƲãµÄÏÔʾ»òÒþ²Ø
Á½ÖÖ°ì·¨£¬Æäʵ¶¼ÊÇ¿ØÖÆÑùʽµÄ¡£
°ì·¨Ò»£º¿ØÖÆ display ÊôÐÔ
<script language="javascript">
function show(status)
{
          document.getElemen ......

javascript Öеļ̳з½·¨

1.¿ÉÒÔͨ¹ýprototypeÊôÐÔ£¬ÊµÏּ̳з½·¨µÄ·½Ê½£¬ÕâÖÖ·½Ê½¾ÍÊÇjavaÓïÑÔÖм̳еı任ÐÎʽ¡£
 // Create the constructor for a Person object
function Person( name ) {
    this.name = name;
}
// Add a new method to the Person object
Person.prototype.getName = function() {
   ......

JavaScriptÕýÔò±í´ïʽµÄÓ÷¨

JavaScriptÕýÔò±í´ïʽµÄÓ÷¨
ÕýÔò±í´ïʽÊÇÒ»ÖÖ¿ÉÒÔÓÃÓÚģʽƥÅäºÍÌæ»»µÄÇ¿´ó¹¤¾ß£¬ÔںܶàÓïÑÔÖж¼¿ÉÒÔÓ¦Óá£JavaScript¶ÔÕýÔò±í´ïʽÌṩÁ˺ܺõÄÖ§³Ö£¬
JavascriptÖÐÓÐÒ»¸öÕýÔò±í´ïʽ¶ÔÏóRegExp¡£¸Ã¶ÔÏóÌṩÁË´óÁ¿µÄÊôÐԺͷ½·¨À´´¦ÀíÕýÔò±í´ïʽ£¬Í¬Ê±£¬String¶ÔÏóÒ²ÌṩÁËÏà¹ØµÄ·½·¨À´
´¦ÀíÕýÔò±í´ïʽ£¬ÔÚWebÓ¦ÓÃÖУ¬¾­³ ......

ÓÃJavaScript·â×°ÏÂFileSystemObject£¬×öÏÂÎļþ²Ù×÷£¡

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor
 */
var File = {
    name:'',
    path:'',
    ext:'',
    cfiles:[],
    attributes:{
    ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ