• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






ghelement

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

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 阅读(325) 评论(0) 推荐(0)
 
sessionStorage用于分页,瀑布流和存储用户数据等
摘要: 在手机网页开发中,会用到分页和瀑布流来分量显示数据。这里会遇到一个问题。当点击某条数据进入详情后,再按手机的返回键会到上一个页面,该页面是重新加载的。本人在微信里用内置的qq浏览器打开页面,window.history.back(),window.history.go()这些不说参数会重置,但a标签... 阅读全文
posted @ 2015-05-18 15:10 ghelement 阅读(340) 评论(0) 推荐(0)
 
js瀑布流
摘要: /************************瀑布流**********************************//*滚动条在Y轴上的滚动距离*/function ScrollTop(){ var scrollTop = 0, bodyScrollTop = 0, document... 阅读全文
posted @ 2015-05-18 14:55 ghelement 阅读(251) 评论(0) 推荐(0)
 
sql 日结
摘要: --生成日结数据====================================-- Author: -- Create date: -- Description: 资金日结-- =============================================ALTE... 阅读全文
posted @ 2015-05-18 11:45 ghelement 阅读(364) 评论(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 阅读(1070) 评论(0) 推荐(0)
 
c# 去除文本的html标签
摘要: 1 public static string ContentReplace(string input) 2 { 3 input = Regex.Replace(input, @"]*)>", "", RegexOptions.IgnoreCase); 4 ... 阅读全文
posted @ 2015-05-18 11:31 ghelement 阅读(826) 评论(0) 推荐(0)
 
jQuery 数据滚动(上下)
摘要: setInterval(function() { jq('.sjbg02 li:first').animate({ 'height': '0', 'opacity': '0' }, 'slow', function() { jq(this).removeAttr('style')... 阅读全文
posted @ 2015-05-18 11:29 ghelement 阅读(721) 评论(0) 推荐(0)
 
jQuery 图片随滚动条滚动加载
摘要: 1 2 3 4 JQurey.LazyLoad.js插件使用说明-http://www.jb51.net 5 8 9 10 11 1、将文件解压,将Js文件夹所有文件上传至网站根目录,目录形式为:12 http://www.jb51.net/Js/lazyload/grey.gif13 ... 阅读全文
posted @ 2015-05-18 11:25 ghelement 阅读(790) 评论(0) 推荐(0)
 
sql 指定范围 获取随机数
摘要: DECLARE @nMinimumCount INT= 1DECLARE @nMaximumCount INT= 100SELECT abs(CHECKSUM(NEWID()))%(@nMaximumCount+ 1-@nMinimumCount)+@nMinimumCount@nMinimumC... 阅读全文
posted @ 2015-05-18 11:18 ghelement 阅读(1244) 评论(0) 推荐(0)
 
js 时间格式化
摘要: 开发的过程中经常会碰到时间格式化的事,针对那些时间戳,2015-05-05,2015/05/05等都能很好的转换成你想要的格式function FormatDate(strDate, strFormat){ if (!strDate) return; if (!strFormat... 阅读全文
posted @ 2015-05-18 10:56 ghelement 阅读(334) 评论(0) 推荐(0)
 
js自写字符串 append 方法
摘要: function stringbuilder(){ this.arr = new Array(); this.append=function(str) { this.arr.push(str); } this.tostring = function() { ... 阅读全文
posted @ 2015-05-18 10:47 ghelement 阅读(5066) 评论(0) 推荐(0)
 
js滚动条
摘要: /*滚动条在Y轴上的滚动距离*/function ScrollTop(){ var scrollTop = 0, bodyScrollTop = 0, documentScrollTop = 0; if (document.body) { bodyScrollTop ... 阅读全文
posted @ 2015-05-18 10:44 ghelement 阅读(297) 评论(0) 推荐(0)
 
js播放器
摘要: ? 阅读全文
posted @ 2015-05-18 10:42 ghelement 阅读(179) 评论(0) 推荐(0)
 
sql 按时间二段排序
摘要: 业务需用为数据按倒序排序,当天数据排在以往日期前面,但当天数据需按小时进行升序排列select *from( select vcTitle,dtBeginDate,case when dtBeginDate<=getdate() then 1 else 2 end tt from TableA )... 阅读全文
posted @ 2015-05-18 10:41 ghelement 阅读(689) 评论(0) 推荐(0)
 
C#,js数据排序及其操作
摘要: List listint=new List{2,1,7,3,8,5,4,6};listint.Sort((x, y) => x - y);var array = newArray()array.sort(function(x, y) {return Number(x[1]) - Number(y[1... 阅读全文
posted @ 2015-05-18 10:33 ghelement 阅读(329) 评论(0) 推荐(0)