ASP LCID 屬性

asp lcid 屬性

session 對(duì)象參考手冊(cè) 完整的 session 對(duì)象參考手冊(cè)

lcid 屬性設(shè)置或返回一個(gè)規(guī)定位置或地區(qū)的整數(shù)。諸如日期、時(shí)間以及貨幣等內(nèi)容都會(huì)根據(jù)位置或地區(qū)來(lái)顯示。

語(yǔ)法

session.lcid(=lcid)

參數(shù) 描述
lcid 地區(qū)標(biāo)識(shí)符。

實(shí)例

<%
response.write("

")
response.write("default lcid is: " & session.lcid & "
")
response.write("date format is: " & date() & "
")
response.write("currency format is: " & formatcurrency(350))
response.write("

")

session.lcid=1036

response.write("

")
response.write("lcid is now: " & session.lcid & "
")
response.write("date format is: " & date() & "
")
response.write("currency format is: " & formatcurrency(350))
response.write("

")

session.lcid=3079

response.write("

")
response.write("lcid is now: " & session.lcid & "
")
response.write("date format is: " & date() & "
")
response.write("currency format is: " & formatcurrency(350))
response.write("

")

session.lcid=2057

response.write("

")
response.write("lcid is now: " & session.lcid & "
")
response.write("date format is: " & date() & "
")
response.write("currency format is: " & formatcurrency(350))
response.write("

")
%>

輸出:

default lcid is: 2048
date format is: 12/11/2001
currency format is: $ 350.00

lcid is now: 1036
date format is: 11/12/2001
currency format is: 350,00 f

lcid is now: 3079
date format is: 11.12.2001
currency format is: € 350,00

lcid is now: 2057
date format is: 11/12/2001
currency format is: £ 350.00

session 對(duì)象參考手冊(cè) 完整的 session 對(duì)象參考手冊(cè)
相關(guān)文章
亚洲国产精品第一区二区,久久免费视频77,99V久久综合狠狠综合久久,国产免费久久九九免费视频