<%
// properties 配置文件名称
ResourceBundle res = ResourceBundle.getBundle("comm");
%>
var cname='<%=res.getString("clxtpath")%>';
本文展示了一个简单的示例,通过Java代码从配置文件中读取特定路径的属性。使用ResourceBundle类来获取配置文件中的字符串资源。
<%
// properties 配置文件名称
ResourceBundle res = ResourceBundle.getBundle("comm");
%>
var cname='<%=res.getString("clxtpath")%>';
786
595

被折叠的 条评论
为什么被折叠?