摘要: 1.onkeypress="return event.keyCode>=48&&event.keyCode<=57" ng-pattern="/[^a-zA-Z]/" 阅读全文
posted @ 2017-11-14 16:45 Forekoy 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 借鉴的例子: select id,name from table order by case when id like 'shanghai%' then 0 when id like 'beijing%' then 1 else 2 end select new {ul.Id,ul.UserId,d 阅读全文
posted @ 2017-10-17 11:29 Forekoy 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 抄来的例子 string url = "http://wx.sysmex.com.cn:8080/Utility/AddressBookSync.aspx"; string postData = "method=sync"; postData += "&data2=xxx"; byte[] data 阅读全文
posted @ 2017-08-31 17:19 Forekoy 阅读(188) 评论(0) 推荐(0) 编辑
摘要: var td5 = $('<td> <button onclick="DoRemove(' + "'" + attachmentid + "'" +')">删除附件</button> </td>'); 阅读全文
posted @ 2017-08-29 14:53 Forekoy 阅读(1192) 评论(0) 推荐(0) 编辑
摘要: <input name="pwd" type="password" id="pwd" onpaste="return false" oncontextmenu="return false" oncopy="return false" oncut="return false"/>onpaste:粘贴时 阅读全文
posted @ 2017-08-28 16:21 Forekoy 阅读(1436) 评论(0) 推荐(0) 编辑
摘要: formatter: "date", formatoptions: { srcformat: "y-m-d H:i:s", newformat: "y-m-d H:i:s" } 阅读全文
posted @ 2017-08-10 14:57 Forekoy 阅读(296) 评论(0) 推荐(0) 编辑
摘要: public static string Input(string standard) { Regex regex = new Regex(standard); string input = Console.ReadLine(); while(regex.IsMatch(input)==false) 阅读全文
posted @ 2017-02-07 16:36 Forekoy 阅读(157) 评论(0) 推荐(0) 编辑
摘要: forexample declare @NewWork xml='<NewWork> <Work Mno="100009"> <Sno0 Sno="10010001"></Sno0> <Sno0 Sno="10010002"></Sno0> </Work></NewWork>' declare @i 阅读全文
posted @ 2017-01-19 16:08 Forekoy 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 举个栗子 if object_id(N'[dbo].[TestForekoy_Mission]',N'u') is not null drop table [dbo].[TestForekoy_Mission]gocreate table [dbo].[TestForekoy_Mission]( [ 阅读全文
posted @ 2017-01-18 14:38 Forekoy 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 举个栗子 alter table dbo.TestForekoy_StaffSecurity add InputWrong int not null constraint DF_TestForekoy_StaffSecurity_InputWrong default (0) 阅读全文
posted @ 2017-01-18 14:34 Forekoy 阅读(1449) 评论(0) 推荐(0) 编辑