• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
JS小灰童鞋
博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 2 3 4 5 下一页
2016年1月29日
地址跳转
摘要: var _HOSTNAME_ = [window.location.protocol, '//', window.location.hostname, '/'].join(''); if (/^http/.test(data.data.url)) { window.location.href = d 阅读全文
posted @ 2016-01-29 11:04 JS小灰童鞋 阅读(127) 评论(0) 推荐(0)
验证码倒计时
摘要: <body> <span id="sendCode" style="background: #ccc;padding: 5px;">发送验证码</span> <script src="http://code.jquery.com/jquery-1.12.0.min.js"></script> <sc 阅读全文
posted @ 2016-01-29 10:58 JS小灰童鞋 阅读(162) 评论(0) 推荐(0)
倒计时
摘要: <script> function timerOver(year, month, day) { window.setInterval(function() { var now = new Date(), endDate = new Date(year, month - 1, day), leftTi 阅读全文
posted @ 2016-01-29 10:35 JS小灰童鞋 阅读(146) 评论(0) 推荐(0)
判断浏览器内核
摘要: <script> var browser = { versions: function() { var u = navigator.userAgent, app = navigator.appVersion; return { //移动终端浏览器版本信息 trident: u.indexOf('Tr 阅读全文
posted @ 2016-01-29 10:27 JS小灰童鞋 阅读(169) 评论(0) 推荐(0)
2016年1月28日
随机色
摘要: <script> function randomColor() { var arr = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F"]; var colo 阅读全文
posted @ 2016-01-28 18:11 JS小灰童鞋 阅读(141) 评论(0) 推荐(0)
叮当猫
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title> <style> .wrapper{ margin: 50px 0 0 500px; } .doraemon{ position: 阅读全文
posted @ 2016-01-28 11:49 JS小灰童鞋 阅读(183) 评论(0) 推荐(0)
翘边阴影
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title> <style> *{ margin: 0; padding: 0; list-style: none; } .wrap{ widt 阅读全文
posted @ 2016-01-28 11:43 JS小灰童鞋 阅读(150) 评论(0) 推荐(0)
九九乘法表
摘要: <!DOCTYPE html><html lang="en"> <head> <meta charset="UTF-8"> <title>boke</title> <style> table { width: 800px; height: 300px; border-collapse: collap 阅读全文
posted @ 2016-01-28 11:34 JS小灰童鞋 阅读(99) 评论(0) 推荐(0)
将url转化成对象
摘要: <script> var url = "baidu.com?"; //var url = window.location.search; //获取url function getUrl(url) { var obj = {}, arr = [], temp = []; arr = url.split 阅读全文
posted @ 2016-01-28 11:22 JS小灰童鞋 阅读(627) 评论(0) 推荐(0)
监听设备翻转,自动刷新页面
摘要: <script> var supportsOrientationChange = "onorientationchange" in window, orientationEvent = supportsOrientationChange ? "orientationchange" : "resize 阅读全文
posted @ 2016-01-28 11:07 JS小灰童鞋 阅读(341) 评论(0) 推荐(0)
上一页 1 2 3 4 5 下一页
博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3