1.deviceOperateTrendIndex.jsp
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <% String basePath = request.getContextPath();%> <html> <head> <title>设备操作趋势主界面</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=9"> <link rel="stylesheet" type="text/css" href="<%=basePath%>/theme/css/base.css" /> <script src="<%=basePath%>/components/jq/jquery-1.8.2.min.js"></script> <script src="<%=basePath%>/js/common/index.js"></script> <script type="text/javascript"> //设置默认访问的界面 var indexPage = "<%=basePath%>/device/deviceListAjax.do"; $(document).ready(function(){ //绑定tab页 $("#tabs span").click(function(){ var tabHtml = $(this).html(); switch(tabHtml){ case "空气魔方": $("#mainframe").attr("src", "<%=basePath%>/device/deviceListAjax.do"); break; default: break; } $(this).addClass('active').siblings().removeClass('active'); }); }); </script> </head> <body id="indexBody"> <div id="navigation" class="item" style="width:80%; height:100%;margin-bottom: 0;"> <div id="nav"> <i class="home"></i> <span class="active">KPI</span> <span class="active">></span> <!-- <span class="active">空气魔方KPI</span> <span class="active">></span> --> <span class="">设备操作趋势</span> </div> <div id="wrap" class="wrap" style="padding: 15px 0 0 20px"> <div id="tabs" class="selectTab title" style="margin: 4px 0 0 0"> <span>全部</span> <span>空调</span> <span>空气盒子</span> <span class="active lfborder">空气魔方</span> <span>净化器</span> <span>空气mini</span> </div> <iframe frameborder="0" id="mainframe" src="" scrolling="scrolling" style="overflow-x: hidden; width: 100%;height:800px;"> </iframe> </div> </div> </body> </html>