本文实例讲述了框架遍历混杂操作。分享给大家供大家参考,具体如下:
html lang=' en ' head meta charset=' UTF-8 ' meta name=' viewport ' content=' width=device-width,initial-scale=1.0 ' meta http-equiv=' X-UA-Compatible ' content=' ie=edge ' title运维平台/title style type=' text/CSS ' * { margin : 0;padd : 0;} body { font-size : 20px颜色: # 333 } h1 {位置:相对;高度: 100像素;线高: 100像素;保证金: 0;背景: # 555;color : # f2f2f2f font-size : 25px;文本对齐:中心;} ul、ol、Li { list-style-type :无;} # list { margin: 0自动添加-top : 4px;} # list ul { display: flex柔性包装:包装;边距-top : 30px;} /* 设置框框大小*/#列表李{ flex : 1;最小宽度: 100像素;最小高度: 50pxmargin : 2px 4 xpadding : 5px 10pxborder : 1px固体# eee} #列表。名称{ font-weight : bold;font-size : 20px} #列表。红色{ color : # ffffont-weight :粗体;背景技术# f00background: rgba(255,0,0,8);} #列表。红色p span { color: # fff} #列表。黄色{ font-weight : bold;背景# ff0background: rgba(255,255,0,8);} #列表。绿色{ background : # 0f 0 background : rgba(0,255,0,8);} #列表。去世{ background: # 666背景: rgba(162,162,162,8);color : # fff } # list p { padding-top : 3px;} # list p span { color : # f00 font-weight :粗体;} .时间{位置:绝对值;top : 0pxright : 20pxcolor : # fffffont-size : 25px;}/style/head dy h1泰隆银行分贝运行监控/60s span class=' time '/span/h1 ul id=' list '/ul!-script src=' http :3358 libs。明思学。com/jquery/1。12 .4/jquery。量滴js '/script-script src=' http :3358 libs。百度。com/jquery/2。0 .0/jquery。量滴js '/script $(function(){ var render time=function(){ var now=new Date();var y=现在。getfull year();var m=现在。get month()1;var d=现在。getdate();var h=现在。gethours();var I=现在。getminutes();var s=现在。getseconds();m=m 10?0 ' m :md=d 10?0 ' d :dh=h 10 ' 0 ' h :h'i=i 10 '0 ' i : i的s=s 10 '0的:svar _ date=y '-' m '-' d;var _ time=h ' : ' I ' :s$('.时间')。html(_ date ' ' _ time);};var render=函数(数据){ console。日志(' 111111111111111111111111111 ');console.log(数据);控制台。日志(' 1111111111111111111111111111111 ');用于(数据中的var k){控制台。日志(' 22222222222222222222222222 ');控制台。log(k '=' data[k]);console.log(数据[k]);控制台。日志(' 22222222222222222222222222222 ');用于(数据[k]中的var p){控制台。日志(' 33333333333333333333333333333 ');控制台。log(p '=' data[k][p]);控制台。日志(' 3333333333333333333333333333333 ');};};};var getOracleService=函数(错误){ $。ajax({ url: '/returnmq/',type: 'GET ',data: {},async: false,dataType: 'json ',success : function(RES){ render(RES);},错误:函数(res) { //alert('数据返回出错');} });} getOracleService();});/脚本/正文/html
更多关于框架相关内容可查看本站专题: 《jquery中Ajax用法总结》 、 《jQuery扩展技巧总结》 、 《jQuery常用插件及用法总结》 、 《jQuery常见经典特效汇总》 及《jquery选择器用法总结》
希望本文所述对大家框架程序设计有所帮助。