• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
JS小灰童鞋
博客园    首页    新随笔    联系   管理    订阅  订阅

随笔分类 -  实用

新闻滚动条

摘要:<!DOCTYPE html><html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, 阅读全文
posted @ 2016-12-14 16:57 JS小灰童鞋 阅读(122) 评论(0) 推荐(0)
项目

该文被密码保护。
posted @ 2016-03-09 21:20 JS小灰童鞋 阅读(4) 评论(0) 推荐(0)
百度联想

摘要:<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title>百度首页联想词</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, maxim 阅读全文
posted @ 2016-02-26 18:11 JS小灰童鞋 阅读(557) 评论(0) 推荐(0)
模仿百度联想

摘要:<!DOCTYPE html><html lang="en"> <head> <meta charset="UTF-8"> <title></title> <style> * { margin: 0; padding: 0; list-style: none; } .box { width: 640 阅读全文
posted @ 2016-02-26 17:03 JS小灰童鞋 阅读(195) 评论(0) 推荐(0)
滑块验证码

摘要:<!DOCTYPE html> <head> <meta charset="utf-8" /> <title></title> <style> #box { position: absolute; width: 50px; height: 50px; background-color: #FF6E3 阅读全文
posted @ 2016-02-24 18:08 JS小灰童鞋 阅读(3335) 评论(0) 推荐(0)
meta

摘要:<meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" /> <meta name="apple- 阅读全文
posted @ 2016-02-15 16:06 JS小灰童鞋 阅读(136) 评论(0) 推荐(0)
微信分享

该文被密码保护。
posted @ 2016-02-02 17:39 JS小灰童鞋 阅读(3) 评论(0) 推荐(0)
下拉刷新,加载更多

该文被密码保护。
posted @ 2016-02-01 11:19 JS小灰童鞋 阅读(2) 评论(0) 推荐(0)
生成有序的随机数

摘要:<script> function randomNumber(n, start, end) { var i = 0, arr = []; for (; arr.length < n; i++) { var num = Math.floor(Math.random() * (end - start)) 阅读全文
posted @ 2016-01-29 13:10 JS小灰童鞋 阅读(567) 评论(0) 推荐(0)
图片验证码及自动刷新

摘要:<script> function imgCode() { $("#imgCode").on("click", function() { $(this).attr("src", '/user/verify?t=' + Math.random()); }); }; /* 当后台返回验证码错误时,绑定t 阅读全文
posted @ 2016-01-29 11:11 JS小灰童鞋 阅读(1197) 评论(0) 推荐(0)
地址跳转

摘要: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> var browser = { versions: function() { var u = navigator.userAgent, app = navigator.appVersion; return { //移动终端浏览器版本信息 trident: u.indexOf('Tr 阅读全文
posted @ 2016-01-29 10:27 JS小灰童鞋 阅读(170) 评论(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)
仿支付宝金额输入规则

摘要:<!-- 正则 --> <body> <input type="text" id="pay"> <script> document.getElementById("pay").addEventListener("input", function() { this.value = this.value 阅读全文
posted @ 2016-01-27 14:49 JS小灰童鞋 阅读(717) 评论(0) 推荐(0)

博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3