会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
cc_Me
博客园
首页
新随笔
联系
管理
订阅
随笔分类 -
JavaScript
iframe 地址栏跳转
摘要:1.a.html: window.cb = function(){ window.location.assign("http://www.baidu.com"); } 2.iframe(b.html) typeof(window.parent.cb) == "function" && window.
阅读全文
posted @
2016-07-07 17:00
fss_0214
阅读(770)
评论(0)
推荐(0)
js中 || && 解释
摘要:1、只要“||”前面为false,无论“||”后面是true还是false,结果都返回“||”后面的值。 2、只要“||”前面为true,无论“||”后面是true还是false,结果都返回“||”前面的值。 3、只要“&&”前面是false,无论“&&”后面是true还是false,结果都将返“&
阅读全文
posted @
2016-06-29 15:03
fss_0214
阅读(224)
评论(0)
推荐(0)
js 计算字符,显示省略号
摘要:1.html 2.js
阅读全文
posted @
2016-06-28 12:24
fss_0214
阅读(603)
评论(0)
推荐(0)
js思维导图
摘要:原文来源于:http://www.cnblogs.com/feng524822/archive/2013/11/10/3416278.html 1.js字符串函数 2.js数组 3.js运算符 4.dom基本操作 5.js流程语句 6.js变量 7.js函数基础 8.js正则表达式
阅读全文
posted @
2016-06-28 11:43
fss_0214
阅读(145)
评论(0)
推荐(0)
wap端,history.go(-1)兼容问题
摘要:页面返回按钮: 今天遇到一个bug,点击“立即结算”,跳转到支付页面,支付页面有了返回按钮,点击返回按钮使用了history.go(-1), 但是在safari浏览器发现再次点击“立即结算”,没有反应,于是就想到了history.go(-1)的兼容;最终结果如下:
阅读全文
posted @
2016-05-21 17:02
fss_0214
阅读(637)
评论(0)
推荐(0)
判断手机端,PC端不同跳转
摘要:1. wap端打开pc端地址,强制跳转到wap地址 2. pc端打开wap端地址,强制跳转到pc端地址
阅读全文
posted @
2016-05-21 16:53
fss_0214
阅读(343)
评论(0)
推荐(0)
input 价格格式校验
摘要:1.html 2.js
阅读全文
posted @
2016-04-25 18:15
fss_0214
阅读(574)
评论(0)
推荐(0)
input计算数量及金额
摘要:1.html 2.css 3.js
阅读全文
posted @
2016-04-25 17:37
fss_0214
阅读(428)
评论(0)
推荐(0)
点击缩略图显示大图支持左右切换及缩放拖拽
摘要:1. css 2.html 3.js
阅读全文
posted @
2016-04-25 16:43
fss_0214
阅读(287)
评论(0)
推荐(0)
js成功页面 3秒自动跳转--代码分享
摘要:1.js var timeID = 0, timeLeft = 3;function count() { timeLeft--; $('#second').text(timeLeft); if (timeLeft <= 0) { clearInterval(timeID); $('#second')
阅读全文
posted @
2016-04-25 16:35
fss_0214
阅读(1979)
评论(0)
推荐(0)
微信朋友圈分享--代码分享
摘要:1. 首先,html页面要链接 2. 判断是否为微信里浏览器打开? 3. 使用以下js:
阅读全文
posted @
2016-04-25 16:34
fss_0214
阅读(623)
评论(0)
推荐(0)
接受后台时间戳转换倒计时--代码分享
摘要:1.html 2.js
阅读全文
posted @
2016-04-25 16:32
fss_0214
阅读(1117)
评论(0)
推荐(0)
代码分享h5-sessionStorage,提示app下载代码块
摘要:1.html <div class="down-app"> <span id="dowm-close">x</span> <dl> <dt>logo</dt> <dd> <h3>某某公司</h3> <p>某某公司宗旨</p> </dd> </dl> <div class="down-app-main
阅读全文
posted @
2016-04-25 16:30
fss_0214
阅读(179)
评论(0)
推荐(0)
文字截断显示省略号
摘要:var s_l = $('.singer-v-list dl');$.each(s_l, function() { var _text = $(this).find('dd'), _maxtext = 30; if (_text.text().length > _maxtext) { _text.text(_text.text().substring(0, _...
阅读全文
posted @
2016-04-25 16:25
fss_0214
阅读(232)
评论(0)
推荐(0)
微信长按出现菜单栏js代码
摘要:1. ios: 2.
阅读全文
posted @
2016-04-25 16:24
fss_0214
阅读(1527)
评论(0)
推荐(0)
获取当前地址栏参数
摘要:1. 当前地址:http:xxxx.com?type=1&area=2; 2. 获取当前地址代码
阅读全文
posted @
2016-04-25 16:22
fss_0214
阅读(161)
评论(0)
推荐(0)
类似新浪input限制
摘要:1. <input type="text" id="item_name" placeholder="项目名称" maxlength="42"/> 2. <script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
阅读全文
posted @
2016-04-25 16:11
fss_0214
阅读(172)
评论(0)
推荐(0)
公告