摘要: 例: 匹配<a href="Request?&dse_sessionId=9qznb8P7TyQjSjLtgwiD4li&dse_applicationId=-1&dse_pageId=2&dse_operationName=displayPageNotLoginOp&dse_errorPage=i 阅读全文
posted @ 2016-06-04 15:37 楊柳 阅读(477) 评论(0) 推荐(0) 编辑
摘要: 1. a标签href赋值 $("#ref").attr("href", encodeURI(url)); 2. span标签text赋值 $("#time").html("<b>" + arr[2] + arr[3] + "~" + arr[4] + "</b>"); 阅读全文
posted @ 2016-06-03 09:57 楊柳 阅读(108) 评论(0) 推荐(0) 编辑
摘要: ContentType: When sending data to the server, use this content type. Default is application/x-www-form-urlencoded; charset=UTF-8, which is fine for mo 阅读全文
posted @ 2016-06-01 15:48 楊柳 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 1. xml读取及写入2.文件读取与写入(包含流) 阅读全文
posted @ 2016-05-31 14:02 楊柳 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 1.错误画面 2.修改配置管理器,平台选择x86 3.重新生成就好了。 阅读全文
posted @ 2016-05-07 15:56 楊柳 阅读(440) 评论(0) 推荐(0) 编辑
摘要: Web应用程序项目已配置为使用IIS。未能找到Web服务器"http://localhost/***" 搜索 .csproj文件,找到<UseIIS>true</UseIIS>改成<UseIIS>false</UseIIS>就好 阅读全文
posted @ 2016-04-28 15:03 楊柳 阅读(1212) 评论(0) 推荐(0) 编辑
摘要: 1. spider_main 2. url_manager 3. html_downloader 4. html_parser 5. html_outputer 最终获取的html,有些字符不能显示,查资料,说是用命令cmd /K chcp 65001 但是用控制台查询codepage编码依然是,改 阅读全文
posted @ 2016-04-27 23:09 楊柳 阅读(492) 评论(0) 推荐(0) 编辑
摘要: 原文链接:http://www.dofactory.com/reference/csharp-coding-standards 补充 原文链接:http://www.cnblogs.com/JimmyZhang/archive/2013/06/05/3118936.html 阅读全文
posted @ 2016-04-27 02:22 楊柳 阅读(633) 评论(0) 推荐(0) 编辑
摘要: 1.运算符 使用对象初始值设定项来简化对象创建// Object initializer.var instance3 = new ExampleClass { Name = "Desktop", ID = 37414, Location = "Redmond", Age = 2.3 }; // De 阅读全文
posted @ 2016-04-27 01:10 楊柳 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 1. NavigateComplete2 事件 在一个窗口windows元素或者框架frameset元素,导航navigate到链接完成时触发此事件替换 在 IE4.0 和 IE5 为兼容 IE3.0 继续使用的 NavigateComplete 和 FrameNavigateComplete 事件 阅读全文
posted @ 2016-04-26 19:55 楊柳 阅读(270) 评论(0) 推荐(0) 编辑
摘要: DataSet是一个离线托管Object Dispose() 是的典型被调用来释放非托管资源,例如 文件指针,流等。大部分情况,像类也会为它们暴露一个更合适的Close()方法。 DataSet类是继承自MarshalByValueComponent. 它作为组件实现了IDisposable接口。D 阅读全文
posted @ 2016-04-26 19:33 楊柳 阅读(690) 评论(0) 推荐(0) 编辑
摘要: 1. python中的标识符是区分大小写的。以下划线开头的标识符是有特殊意义的。以单下划线开头(_foo)的代表不能直接访问的类属性,需通过类提供的接口进行访问,不能用"from xxx import *"而导入;以双下划线开头的(__foo)代表类的私有成员;以双下划线开头和结尾的(__foo__ 阅读全文
posted @ 2016-04-26 00:27 楊柳 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 1.升级pip windows CMD D:\Program Files\Python34\Scripts>pip install --upgrade pip 升级失败,提示尝试替换自身失败改用 D:\Program Files\Python34\Scripts>easy_install pip 升 阅读全文
posted @ 2016-04-25 19:54 楊柳 阅读(1993) 评论(0) 推荐(0) 编辑
摘要: 权威来源:http://www.python.org/dev/peps/pep-0263/Python源文件的头部声明(声明在文件的第一行或第二行) # coding=utf-8 # coding:utf-8 # -*- coding:utf-8 -*- 要符合正则规范"coding[:=]\s*( 阅读全文
posted @ 2016-04-25 12:45 楊柳 阅读(827) 评论(0) 推荐(0) 编辑
摘要: Response.End() VS Context.ApplicationInstance.CompleteRequest() The Server.Transfer, Response.Redirect, Response.End methods all raise exceptions. Eac 阅读全文
posted @ 2016-04-25 12:31 楊柳 阅读(1051) 评论(0) 推荐(0) 编辑
摘要: # _*_ coding:utf-8 _*_ import re line = "Cats are smarter than dogs" matchObj = re.match(r'(.*) are (.*?) .*', line, re.M|re.I) if matchObj: print("matchObj.group():", matchObj.group()) pri... 阅读全文
posted @ 2016-04-23 12:12 楊柳 阅读(230) 评论(0) 推荐(0) 编辑
摘要: Eclipse New Project | New PyDev Package | New PyDev ModuleProject:0418 Package:SpiderTest Module: 5个模块,spider_main爬虫入口,=》 url_manager URL管理器, =》html_d 阅读全文
posted @ 2016-04-22 23:57 楊柳 阅读(532) 评论(0) 推荐(0) 编辑
摘要: 若在try{} catch{}的catch 块中加入 catch (Exception ex) { Response.Write(ex.Message); Response.End(); } 则捕获异常后,提示未知错误:1000正在终止线程 阅读全文
posted @ 2016-04-22 19:49 楊柳 阅读(207) 评论(0) 推荐(0) 编辑
摘要: string path = @"d:\test"; var files =System.IO.Directory.GetFiles(path, "*.txt"); foreach (var file in files) { Str... 阅读全文
posted @ 2016-04-12 19:49 楊柳 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 1. 读取目录下的文件 string path=@"d:\pinlog"; Files[] files= Directory.GetFiles(path,"*.txt"); Foreach(File file in files) { StreamReader reader=new StreamRea 阅读全文
posted @ 2016-04-06 18:49 楊柳 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 当用户在在SQL Server 2008企业管理器中更改表结构时,必须要先删除原来的表,然后重新创建新表,才能完成表的更改,如果强行更改会出现以下提示:不允许保存更改。您所做的更改要求删除并重新创建以下表。您对无法重新创建的标进行了更改或者启用了“阻止保存要求重新创建表的更改”选项。 如果要去掉此提 阅读全文
posted @ 2016-04-01 14:34 楊柳 阅读(447) 评论(0) 推荐(0) 编辑
摘要: Control.Invoke The delegate can be an instance of EventHandler, in which case the sender parameter will contain this control, and the event parameter 阅读全文
posted @ 2016-01-17 19:26 楊柳 阅读(609) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/kirinboy/archive/2009/10/28/use-dropdownlist-in-asp-net-mvc.htmlhttp://kevintsengtw.blogspot.com/2012/09/aspnet-mvc-3-dropdownl... 阅读全文
posted @ 2016-01-15 15:26 楊柳 阅读(155) 评论(0) 推荐(0) 编辑
摘要: You can use the net user command to create and modify user accounts on computers. When you use this command without command-line switches, the user ac... 阅读全文
posted @ 2016-01-15 15:18 楊柳 阅读(370) 评论(0) 推荐(0) 编辑
摘要: 或者xpath写错,HtmlDocument.LoadHtml(string)会加载出错或者文件缺失tagXPath维基百科介绍如下:XPath即为XML路径语言(XML Path Language),它是一种用来确定XML文档中某部分位置的语言。XPath基于XML的树状结构,提供在数据结构树中找... 阅读全文
posted @ 2015-12-10 19:09 楊柳 阅读(1407) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2015-12-06 11:56 楊柳 阅读(3) 评论(0) 推荐(0) 编辑
摘要: TCP 使用固定的连接TCP 用于应用程序之间的通信。 当应用程序希望通过 TCP 与另一个应用程序通信时,它会发送一个通信请求。这个请求必须被送到一个确切的地址。在双方“握手”之后,TCP 将在两个应用程序之间建立一个全双工 (full-duplex) 的通信。 这个全双工的通信将占用两个计算机之... 阅读全文
posted @ 2015-04-30 10:26 楊柳 阅读(176) 评论(0) 推荐(0) 编辑
摘要: public string GetIp() { Regex reg1 = new Regex("(\\d+).(\\d+).(\\d+).(\\d+)"); return reg1.Replace(GetRealIp, "*.$2.$3.$4"); } /// /// 获取用户的IP地址 ///... 阅读全文
posted @ 2015-04-30 09:26 楊柳 阅读(409) 评论(0) 推荐(0) 编辑
摘要: url:http://www.darlingbank.com/cutpage/index.php/promote/edit/getfun/json/源碼:{#recmdRegName#}'>js:var J_data = { debug : true, log : function(s)... 阅读全文
posted @ 2014-04-28 17:03 楊柳 阅读(716) 评论(0) 推荐(0) 编辑
摘要: create table sc(name char(10), kc char(10), score decimal(5,2) ) insert into scvalues ('張三','國語',80), ('張三','數學',81), ('張三','英語',100), ... 阅读全文
posted @ 2014-04-28 11:47 楊柳 阅读(139) 评论(0) 推荐(0) 编辑
摘要: http://codereview.stackexchange.com/questions/3290/check-null-before-adding-into-listIs there anyway to refactor this ? public IEnumerable Options ... 阅读全文
posted @ 2014-04-21 16:02 楊柳 阅读(195) 评论(0) 推荐(0) 编辑
摘要: SQL Server 存储过程的分页,这个问题已经讨论过几年了,很多朋友在问我,所以在此发表一下我的观点 建立表:CREATE TABLE [TestTable] ( [ID] [int] IDENTITY (1, 1) NOT NULL , [FirstName] [nvarchar] (100) COLLATE Chinese_PRC_CI_AS NULL , [LastName] [nvarchar] (100) COLLATE Chinese_PRC_CI_AS NULL , [Country] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NUL 阅读全文
posted @ 2013-04-18 13:59 楊柳 阅读(118) 评论(0) 推荐(0) 编辑
摘要: [sql] IF OBJECT_ID('tempdb..#ABC') IS NOT NULL DROP TABLE #ABC create table #ABC ( ID INT ,UserID BIGINT ,UserExamID INT ,TestPaperID INT ,QuestionID 阅读全文
posted @ 2013-04-15 16:04 楊柳 阅读(143) 评论(0) 推荐(0) 编辑
摘要: SET @SQL=SUBSTRING(@SQL,1,LEN(@SQL)-1) 阅读全文
posted @ 2013-04-15 14:41 楊柳 阅读(143) 评论(0) 推荐(0) 编辑
摘要: #26楼2013-03-27 16:55李彬你没有用源代码管理工具。 我一般都是先画图,客户确认,再设计数据库,数据库文档,再吩咐手下人去做, 在用TFS或HG 等源代码管理器,每次更新都有说明。 你把工期压的太紧了,导致一系列的后果。 阅读全文
posted @ 2013-03-29 10:06 楊柳 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 1.建表測試用create table denny_repeate(empno varchar(20),enname varchar(20))insert into denny_repeate values('K1007F86','DENNY'),('K1007F86','DENNY'),('K10 阅读全文
posted @ 2013-03-29 09:52 楊柳 阅读(154) 评论(0) 推荐(0) 编辑