会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
ghelement
Powered by
博客园
博客园
|
首页
|
新随笔
|
联系
|
订阅
|
管理
上一页
1
2
3
4
5
6
7
下一页
2015年6月12日
jQuery checkbox 全选
摘要: jQuery1.6版本以后 if($("#id").attr("checked")) 不能返回 ture 和 false高版本中jQuery 提供prop它将“属性”与“特性”做了区别,属性指的是“name,id”等等,特性指的是“selectedIndex, tagName, nodeName”等...
阅读全文
posted @ 2015-06-12 17:09 ghelement
阅读(215)
评论(0)
推荐(0)
编辑
2015年5月25日
html5 localStorage和sessionStorage
摘要: 该随便来自:http://www.cnblogs.com/yuzhongwusan/archive/2011/12/19/2293347.htmlhtml5中的Web Storage包括了两种存储方式:sessionStorage和localStorage。sessionStorage用于本地存储一...
阅读全文
posted @ 2015-05-25 14:19 ghelement
阅读(171)
评论(0)
推荐(0)
编辑
jQuery 回到顶部
摘要: $("XX").click(function(){$(body).animate({scrollTop:0});})
阅读全文
posted @ 2015-05-25 14:16 ghelement
阅读(118)
评论(0)
推荐(0)
编辑
2015年5月22日
c# 获取客户端ip
摘要: 针对HttpContext.Current.Request.UserHostAddress 如果客户使用的是代理,将获取不到真是的ip要想透过代理服务器取得客户端的真实IP地址,就要使用Request.ServerVariables("HTTP_X_FORWARDED_FOR")来读取。不过要注意的...
阅读全文
posted @ 2015-05-22 15:09 ghelement
阅读(268)
评论(0)
推荐(0)
编辑
2015年5月19日
JS 新浪API获取IP归属地
摘要: http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js返回值数据格式:var remote_ip_info = {“ret”:1,”start”:”59.37.164.179″,”end”:”59.37.165.17″,”countr...
阅读全文
posted @ 2015-05-19 21:33 ghelement
阅读(764)
评论(0)
推荐(0)
编辑
2015年5月18日
c#抓取网站数据
摘要: string url = "http://www.123.com/fast_view?a=1&gameId=25&areaId=0&serverId=0"; string reffer = "http://www.123.com/"; string htm...
阅读全文
posted @ 2015-05-18 15:20 ghelement
阅读(315)
评论(0)
推荐(0)
编辑
sessionStorage用于分页,瀑布流和存储用户数据等
摘要: 在手机网页开发中,会用到分页和瀑布流来分量显示数据。这里会遇到一个问题。当点击某条数据进入详情后,再按手机的返回键会到上一个页面,该页面是重新加载的。本人在微信里用内置的qq浏览器打开页面,window.history.back(),window.history.go()这些不说参数会重置,但a标签...
阅读全文
posted @ 2015-05-18 15:10 ghelement
阅读(331)
评论(0)
推荐(0)
编辑
js瀑布流
摘要: /************************瀑布流**********************************//*滚动条在Y轴上的滚动距离*/function ScrollTop(){ var scrollTop = 0, bodyScrollTop = 0, document...
阅读全文
posted @ 2015-05-18 14:55 ghelement
阅读(248)
评论(0)
推荐(0)
编辑
sql 日结
摘要: --生成日结数据====================================-- Author: -- Create date: -- Description: 资金日结-- =============================================ALTE...
阅读全文
posted @ 2015-05-18 11:45 ghelement
阅读(348)
评论(0)
推荐(0)
编辑
js 去除html标签
摘要: function removeHTMLTag(str) { str = str.replace(/]*>/g,''); //去除HTML tag str = str.replace(/[ | ]*\n/g,'\n'); //去除行尾空白 //str = str.repl...
阅读全文
posted @ 2015-05-18 11:34 ghelement
阅读(1044)
评论(0)
推荐(0)
编辑
上一页
1
2
3
4
5
6
7
下一页