会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
雪梨laxe
导航
博客园
首页
新随笔
联系
订阅
管理
公告
2017年2月10日
浏览器禁止右键
摘要: document.oncontextmenu=function(e){ return false; } //鼠标右键事件
阅读全文
posted @ 2017-02-10 16:28 雪梨laxe
阅读(121)
评论(0)
推荐(0)
2017年2月9日
jQuery判断滑到底部
摘要: $(document).scroll(function(){ if($(document).scrollTop()>=$(document).height()-$(window).height()){ //滑到底部操作 } }); //alert($(document).height());获取文档
阅读全文
posted @ 2017-02-09 11:53 雪梨laxe
阅读(146)
评论(0)
推荐(0)
2016年10月26日
jQuery获取字符串中两个字符之间的字符
摘要: //获取@和.之间的字符 var str1 = "laxe@ll.com"; var str2 = str1.substring(str1.indexOf('@')+1,str1.indexOf('.')); alert(str2);//弹出 ll substring(start,end);//st
阅读全文
posted @ 2016-10-26 10:16 雪梨laxe
阅读(1068)
评论(0)
推荐(0)
2016年10月24日
jquery/js分割数组
摘要: substr(star[,length]);//star起始位置 length截取的长度 substring(star,end);//star起始位置,end结束位置 都是以0开始的索引值
阅读全文
posted @ 2016-10-24 17:00 雪梨laxe
阅读(570)
评论(0)
推荐(0)
jQuery判断一个字符串中是否包含一个字符串(一)
摘要: var key = ‘java’; var str = "hello,javascript,welcome to my world"; if(key.indexOf(str)!=-1){ alert('Yes'); }
阅读全文
posted @ 2016-10-24 16:30 雪梨laxe
阅读(774)
评论(0)
推荐(0)
function中的ajax怎么返回一个数
摘要:
阅读全文
posted @ 2016-10-24 15:49 雪梨laxe
阅读(138)
评论(0)
推荐(0)