- 博客(7)
- 收藏
- 关注
转载 页面刷新重载方法汇总
1.JS刷新重载方法点击重新载入页面点击重新载入页面点击重新载入页面点击重新载入页面点击重新载入页面点击重新载入页面点击重新载入页面点击重新载入页面点击重新载入页面点击重新载入页面点击重新载入页面2.html链接重新载入方法点击重新载入页面点击重新载入页面3.页面自动刷新 //代码放在head中,每隔20秒钟刷新一次 //20秒之后页面跳转
2017-12-12 11:30:41 1476
转载 clipboard.min.js 修改
有些地方用了关键字命名,上线时会报错,以下为正确版本,特此保留/*! * clipboard.js v1.7.1 * https://zenorocha.github.io/clipboard.js * * Licensed MIT © Zeno Rocha */(function(f){if(typeof exports==="object"&&typeof module
2017-12-05 11:02:11 2070
转载 rem预设值
;(function(doc, win, undefined) { var docEl = doc.documentElement, resizeEvt = 'orientationchange' in win ? 'orientationchange' : 'resize', recalc = function() { var clientWidt
2017-11-30 18:13:27 253
原创 移动端媒介查询尺寸
/*iphone 4 screen-width:320px*/@media only screen and (min-width: 320px) and (max-width: 360px){}/*三星Galaxy S5 screen-width:360px*/@media only screen and (min-width: 360px) and (max-wi
2017-11-21 10:15:38 303
转载 数组的深浅拷贝
浅拷贝:slice():var arr = ['old', 1, true, null, undefined];var new_arr = arr.slice();new_arr[0] = 'new';console.log(arr) // ["old", 1, true, null, undefined]console.log(new_arr) // ["new", 1,
2017-10-12 00:57:36 200
转载 http状态码
200 & OK: 请求成功;204 & No Content: 请求处理成功,但没有资源可以返回;206 & Partial Content: 对资源某一部分进行请求(比如对于只加载了一般的图片剩余部分的请求);301 & Move Permanently: 永久性重定向;302 & Found: 临时性重定向;303 & See Other: 请求资源存在另一个URI,应使
2017-10-09 20:59:58 165
转载 bootstrap预设置
*bootstrap所有js插件依赖于jQuery,因此jQuery要在bootstrap之前引入 //命令IE运行最新的渲染模式 //自动适配当前设备的真实宽度 & 设置缩放比为不可缩放
2017-10-08 14:12:30 444
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人