亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

Windows 腳本部件  

getResource 函數(shù)

取得用 <resource> 元素定義的資源的值。

value = getResource(resourceID)

resourceID
在腳本部件內(nèi)代表該資源的唯一標(biāo)識(shí)符。

說明

使用 <resource> 元素可以將腳本部件內(nèi)的字符串或數(shù)值隔離開,但又可以在腳本部件的腳本中使用這些資源。例如,資源元素通常用來保存那些可能需要本地化為別的語言的字符串。您可以在腳本部件的腳本內(nèi)使用 getResource 函數(shù)來提取 <resource> 元素的內(nèi)容。

示例

下面的腳本部件片段定義了一個(gè)資源(稱為 errNonNumeric),并演示了在腳本中如何使用該資源。

注意   CDATA 項(xiàng)是必需的,以使 <script> 元素中的腳本成為不透明的。詳細(xì)信息請(qǐng)參閱腳本部件文件和 XML 一致性
<public>
   <method name="random" internalName="getRandomNumber"/>
</public>
<resource id="errNonNumeric">Non-numeric value passed</resource>

<script language="VBScript">
<![CDATA[
Function getRandomNumber(upperBound)
   If IsNumeric(upperBound) Then
      getRandomNumber = Cint(upperBound * Rnd + 1)
   Else
      getRandomNumber=getResource("errNonNumeric")
   End If
End Function
]]>
</script>

請(qǐng)參閱

引用其他部件