Suppose you have a page that contains the greeting message "hello" and need to show different translations of "hello" based on the specific locale (for example, zh_CN for China). The target HTML is
假设您有一个包含问候消息“hello”的页面,并且需要根据具体的语言环境(例如,zh_CN 表示中国)显示“hello”的不同译文。
Type the code in Listing 2 into an HTML file, load the file in your browser, and click the Say Hello button for the result shown in Figure 2.
将清单2中的代码输入到一个HTML文件,在浏览器内加载该文件,单击SayHello按钮,结果如图2所示。
The method invocation gets a Hello message as a response in the form of XML, HTML, or text.
方法调用得到一个Hello消息作为响应,形式为XML、HTML或文本。
The method invocation gets a Hello message as a response in the form of XML, HTML, or text.
方法调用得到一个Hello消息作为响应,形式为XML、HTML或文本。
应用推荐