jsp页面

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%
// properties 配置文件名称
ResourceBundle res = ResourceBundle.getBundle("application");
%>


//获取properties配置文件中的属性值
var getDataJsonFreq= <%=res.getString("getDataJsonFreq")%>;
var showAllPointFreq= <%=res.getString("showAllPointFreq")%>;


properties配置文件
##获取实时数据频率(1000=1秒)
getDataJsonFreq = 1000;
##页面刷新频率(1000=1秒)
showAllPointFreq = 1000;

相关文章:

  • 2021-12-28
  • 2022-12-23
  • 2021-11-16
  • 2022-12-23
  • 2022-12-23
  • 2021-09-29
  • 2021-07-10
猜你喜欢
  • 2022-12-23
  • 2022-02-08
  • 2022-12-23
  • 2022-02-11
  • 2022-02-17
  • 2021-11-05
  • 2021-06-03
相关资源
相似解决方案