CultureInfo in JavaScript

前端 未结 3 1513
轮回少年
轮回少年 2021-01-11 11:26

In c# I use the below method in order to get the CultureInfo.

System.Globalization.CultureInfo.CurrentCulture.Name // output :en-US

Can any

3条回答
  •  忘掉有多难
    2021-01-11 11:34

    Very easy way is to render it into the view, like this:

    
    

    This is razor syntax, if you use classic asp.net, then use:

    
    

提交回复
热议问题