摘要: main的height很小时,footer能紧贴浏览器底部; main的height很大时,footer在页面最后; <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content=" 阅读全文
posted @ 2021-09-08 21:57 Allalms 阅读(146) 评论(0) 推荐(0)
摘要: html:代码 <body> <div class="header">header</div> <div class="box"> <div class="left">left</div> <div class="right">right</div> </div> <div class="foote 阅读全文
posted @ 2021-09-08 21:27 Allalms 阅读(46) 评论(0) 推荐(0)
摘要: 网站重定向 response.statusCode = "302"; response.setHeader("Location",'index.html'); response.end(); url.parse() 解析url串 将url拆成几部分 var url = require('url'); 阅读全文
posted @ 2020-03-14 22:23 Allalms 阅读(140) 评论(0) 推荐(0)
摘要: JSON.parse()将字符串转化为json对象 JSON.stringify()将json对象转化为字符串 .toString()在node.js中由于数据传入为buffer类型,如果需要使用,先将buffer数据转化为字符串,再使用JSON.parse()将字符串转化为对象 例如 json = 阅读全文
posted @ 2020-03-13 21:35 Allalms 阅读(130) 评论(0) 推荐(0)
摘要: 匿名函数 没有名称的函数正常函数: function fn(){} 匿名函数: function (){} 立即执行函数: (function(){}) 在正常情况下 function (){} 不能直接运行 如需立即执行 需要在外面加小括号将函数变为立即执行函数 阅读全文
posted @ 2020-03-08 18:33 Allalms 阅读(125) 评论(0) 推荐(0)
点击右上角即可分享
微信分享提示