X
WվO| | DΈD| | Fk| ϵy| ԇJC| Wjg| ܛ| XP| ČWƷ
 
Wվ_l| W| ϵy| DD| ԇJC| | | Ӳg| Fk| Wjg| ЦԒl
λã X-> -> W-> HTML-> VBScript̳̣

VBScript̳̣
ߣ ԴInterNet rg2003-7-21
P
  • VBScript̳̣壩
  • VBScript̳̣ģ
  • VBScript̳̣һ
  • P:


    ʲô׃

    ׃һNʹ÷ռλӋCȴַԓַԴ惦 Script \ЕrɸĵijϢԄһ ClickCount ׃惦ÑΓ Web ijĴΔʹ׃Ҫ˽׃ӋCȴеĵַֻҪͨ^׃׃ͿԲ鿴׃ֵ VBScript ֻһ Variant׃ĔͶ Variant

    •׃

    •׃һNʽʹ Dim ZPublic Z Private Z Script @ʽ•׃磺

    Dim DegreesFahrenheit
    •׃rʹöָ̖׃磺
    Dim Top, Bottom, Left, Right

    һNʽͨ^ֱ Script ʹ׃@һηʽ[ʽ•׃@ͨһT@Еr׃ƴe\ Script rFĽYʹ Option Explicit Z@ʽ•׃ Script ĵһlZ
    Ҏt
    ׃ѭ VBScript Ę˜Ҏt׃ѭ

    һַĸ
    ܰǶľc
    LȲܳ^ 255 ַ
    ڱ•ȱΨһ

    ׃c

    ׃•λÛQ^•׃tֻԓ^еĴaL׃ֵ˕r׃оֲ򲢱Q^̼׃^֮•׃tԓ׃Ա Script ^ReQ Script ׃ Script 

    ׃ڵĕrgQScript ׃Ĵڏı•һֱ Script \нY^̼׃ڃHԓ^\еĕrgԓ^̽Y׃S֮ʧڈ^̕rֲ׃Rr惦g?Eͬӑʹͬľֲ?@ÿֲ׃ֻ•^Re

    o׃xֵ

    ʽı_ʽo׃xֵ׃ڱ_ʽ߅Ҫxֵڱ_ʽ߅磺

    B = 200

    ׃͔M׃

    rֻ•׃xһֵֻһֵ׃Q׃ЕrPֵxoһ׃鷽˿Ԅһϵֵ׃Q锵M׃M׃͘׃ͬķʽ•Ψһą^e•M׃r׃控̖ ( )•һ 11 ԪصһSM

    Dim A(10)

    mȻ̖@ʾĔ 10 VBScript ДMǻ 0 @MHϰ 11 Ԫڻ 0 ĔMMԪصĔĿ̖@ʾĔĿ 1@NMQ̶СĔM

    ڔMʹ锵MÿԪxֵ 0 10xoMԪʾ

    A(0) = 256
    A(1) = 324
    A(2) = 100
    . . .
    A(10) = 55

    cʹԙzĔMԪصĔ磺
    . . .
    SomeVariable = A(8)
    . . .

    MHһSMľSԞ 60Mܴ˲ⳬ^ 3 4 ľS•SMröָ̖̖ÿʾMСĔMyTable ׃һ 6 к 11 еĶSM
    Dim MyTable(5, 10)

    ڶSM̖еһֱʾеĔĿڶֱʾеĔĿ
    Ҳ•ӑBM\ Script rСl׃ĔMM•ʹ Dim Z ReDim ZnjڄӑBM̖вκΔ磺

    Dim MyArray()
    ReDim AnotherArray()

    ҪʹÄӑBMSʹ ReDim _SÿһSĴСReDim ӑBMijʼСOÞ 25 ReDim Z䌢MĴС{ 30ͬrʹ Preserve PI{СrMă

    ReDim MyArray(25)
    . . .
    ReDim Preserve MyArray(30)

    {ӑBMСĴΔǛ]κƵǑע⣺MĴС{СrGʧhԪصĔ


    ʲôdz

    ǾһxQڴ攵ֵַֻIJ׃VBScript xSгԔϢՈ VBScript Zԅ



    ʹ Const Z VBScript ЄÑԶxʹ Const ZԄQһxַͻֵͳoxԭxֵ磺

    Const MyString = "@һַ"
    Const MyAge = 49

    Ոעְַڃɂ̖ (" ") ֮g@Dž^ַͳֵ͔ͳ@ķֺ͕rgְڃɂ̖ (#) ֮g磺

    Const CutoffDate = #6-1-97#

    òһԅ^ֳ׃@ӿԱ\ Script rxֵʹávbconǰY򌢳ĸ׃^__ls Script ry

    VBScript һ\g\^\B\߉݋\



    _ʽ\rAӋÿһ@򱻷Q\ȼ?ʹԽȼ˳?Ӌ_ʽijЩ\rȈ̖е\Ȼو̖\̖ѭ˜\ȼ

    _ʽN\rӋg\ȻӋ^\Ӌ߉݋\б^\ăȼͬՏҵӋ^\g\߉݋\ăȼʾ

    g\ ^\ ߉݋\
    ̖ ̖ ̖
    ^ = ߉݋ Not
    ̖ؓ - <> ߉݋c And
    * С < ߉݋ Or
    / > ߉݋ Xor
    \ Сڵ <= ߉݋ȃr Eqv
    Mod ڵ >= ߉݋[ Imp
    + ñ^ Is
    p -
    ַB &


    ̖c̖ͬrFһ_ʽЕrҵӋ\ͬӮcpͬrFһ_ʽЕrҵӋp\

    ַB (&) \g\ڃȼg\֮б^\֮ǰIs \njñ^\^ֵֻMЙzДɂǷͬһ


    [T:lpc]

    P
  • VBScript̳̣壩
  • VBScript̳̣ģ
  • VBScript̳̣һ
  • P:
    վ]

    CPI~:

    HTML
    DreamWeaver
    FrontPage
    FireWorks
    Flash
    HTML

    X̳x
    @ʾむԵָ
    HTML Z
    ASPшDƬς...
    VBScript̳̣һ
    JavaScript[....
    JavaScript Сȫ...
    VBScript̳̣
    CSSʽЧʹõļ
    2006¹
    NW퓏ڴa