var Password= prompt("@Resource.EnterPassword" + UserID);
在调试模式下,我可以翻译成其他语言,但是当我发布到IIS管理器时,它仍然提示英语,有什么设置吗?
You can create a variable for resource get from C#
<script>
var resource = '@Resource.EnterPassword'
var Password= prompt(resource + UserID);
</script>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.