最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线



GetLocale 函數(shù)

返回當前區(qū)域設置 ID 值。

GetLocale()

說明

locale 是用戶參考信息集合,與用戶的語言、國家和文化傳統(tǒng)有關。locale 決定鍵盤布局、字母排序順序和日期、時間、數(shù)字與貨幣格式。

返回值可以是任意一個 32-位 的值,如 區(qū)域設置 ID所示:

下面舉例說明 GetLocale 函數(shù)的用法。要使用該代碼,請復制標準HTML 文件中 <BODY&gtl 標志之間的所有內(nèi)容。

Enter Date in UK format: <input type="text" id="UKDate" size="20"><p>
Here's the US equivalent: <input type="text" id="USdate" size="20"><p>
<input type="button" value="Convert" id="button1"><p>
Enter a price in German: &nbsp; <input type="text" id="GermanNumber" size="20">
<p>
Here's the UK equivalent: <input type="text" id="USNumber" size="20"><p>
<input type="button" value="Convert" id="button2"><p><script language="vbscript">
Dim currentLocale
' Get the current locale
currentLocale =GetLocaleSub Button1_onclick
Dim original
original =SetLocale("en-gb")
mydate =CDate(UKDate.value)
' IE always sets the locale to US English so use the
' currentLocale variable to set the locale to US English
original =SetLocale(currentLocale)
USDate.value =FormatDateTime(mydate,vbShortDate)
End SubSub button2_onclick
Dim original
original =SetLocale("de")
myvalue =CCur(GermanNumber.value)
original =SetLocale("en-gb")
USNumber.value =FormatCurrency(myvalue)
End Sub</script> 

請參閱

SetLocale 函數(shù) | 區(qū)域設置 ID (LCID) 表

返回首頁
永济市| 仪征市| 阿城市| 萨嘎县| 大同县| 祥云县| 无锡市| 三门县| 巴彦淖尔市| 永丰县| 桑植县| 大兴区| 凤台县| 商水县| 保康县| 中江县| 彰化市| 土默特右旗| 三江| 常德市| 日喀则市| 万年县| 白城市| 和平县| 宣汉县| 海丰县| 山东省| 淳安县| 和政县| 崇文区| 黄骅市| 贡觉县| 金华市| 汤原县| 合作市| 昌邑市| 耒阳市| 通道| 大姚县| 临颍县| 兴隆县|