- 博客(5)
- 收藏
- 关注
原创 position、盒模型的故事
可以看出来,和margin没什么关系、、<body><style> * { margin: 0; padding: 0; } .container { position: relative; padding: 40px; margin: 40px; ...
2019-06-26 22:41:19 116
原创 margin、padding、position的故事
4个例子,margin同理正常使用:<body><div style="width:1200px;height: 400px;background-color: blue;"> <div style="padding-top: 10%;"> <p style="position: relative"> ...
2019-06-26 22:03:28 216
原创 require.context
const components = {} const fileLoader = require.context('./', false, /.*\/(?!\bindex\b).*\.vue/) // 形式[./a.vue],dou fileLoader.keys().forEach(path => { const fName = path.match(/....
2019-06-25 16:19:19 556
原创 js2jscode
const js2jscode = (function() { function main(target) { const targetType = Object.prototype.toString.call(target).match(/\[object\s(.*?)]/)[1]; let code = ''; switch (targ...
2019-06-21 08:50:09 562
原创 OPTIONS请求调优
# 触发条件- 必须,跨域- 必须,符合预检请求# 优化方案- 前提,浏览器需关闭disabled cache,https://my.oschina.net/mobinchao/blog/908834- 原理,Access-Control-Max-Age# democonst http = require('http');http.createS...
2019-06-15 11:11:19 1142
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人