摘要: 前言:这两天在做百度地图的功能,查看了百度官网的api完成了基本功能 api地址http://developer.baidu.com/map/jshome.htm注意是javascript API 大众版2.0 废话不说先上图 一、导入百度地图api 二、Html源码 1 doctype... 阅读全文
posted @ 2014-05-30 14:13 狄大人 阅读(14075) 评论(1) 推荐(1) 编辑
摘要: 1。创建一个临时表#tmp,表结构与目标存储过程procedure_name的返回结果集兼容(兼容即可,不必相同)。 CREATE TABLE #tmp( [columns_list] ) 2。执行存储过程并将存储过程的返回结果集插入临时表。 INSERT INTO #tmp EXEC proced... 阅读全文
posted @ 2014-03-05 11:58 狄大人 阅读(415) 评论(0) 推荐(0) 编辑
摘要: 1 DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 html xmlns="http://www.... 阅读全文
posted @ 2013-11-03 20:02 狄大人 阅读(903) 评论(0) 推荐(0) 编辑
摘要: 1、左连接:var LeftJoin = from emp in ListOfEmployees join dept in ListOfDepartment on emp.DeptID equals dept.ID into JoinedEmpDept from dept in JoinedEmpDept.DefaultIfEmpty() select new { EmployeeName = emp.Name, DepartmentName = dept != null ? dept.Name : null };2、右连接:var RightJoin = from dept in ListO 阅读全文
posted @ 2013-10-15 18:10 狄大人 阅读(260) 评论(0) 推荐(0) 编辑
摘要: // ****************************// 日期格式化// ****************************Date.prototype.format = function (format) { var o = { "M+": this.getMonth() + 1,... 阅读全文
posted @ 2013-05-16 20:24 狄大人 阅读(340) 评论(0) 推荐(0) 编辑
摘要: //统计今日 startDate = DateTime.Now.ToString("yyyy-MM-dd 00:00:00"); //统计本周 startDate = DateTime.Now.AddDays(DayOfWeek.Monday - DateTime.Today.DayOfWeek).ToString("yyyy-MM-dd 00:00:00"); //统计本月 startDate = DateTime.Now.ToString("yyyy-MM-01 00:00:00"); 阅读全文
posted @ 2013-05-16 20:23 狄大人 阅读(208) 评论(0) 推荐(0) 编辑
摘要: /// /// 获取一个类指定的属性值 /// /// object对象 /// 属性名称 /// public static object GetPropertyValue(object info, string field) { if (info == null) return null... 阅读全文
posted @ 2013-05-08 12:59 狄大人 阅读(4414) 评论(0) 推荐(0) 编辑
摘要: 谷歌浏览器离线下载地址 http://www.google.com/chrome/eula.html?hl=zh-CN&standalone=1 阅读全文
posted @ 2013-03-29 13:40 狄大人 阅读(268) 评论(0) 推荐(0) 编辑
摘要: @{string a="111";} 想要输出html,可以三种方式:@Html.Raw(a)@MvcHtmlString.Create(a)@{WriteLiteral(a);} @(new HtmlString( "asdfasd")) @(Html.Encode("asdfasd"... 阅读全文
posted @ 2013-03-19 09:13 狄大人 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 1 namespace shendeng.lottery.helper 2 { 3 public class ControllerHelper 4 { 5 /// 6 /// 取出公告 7 /// 8 /// 9 public static List GetNewList... 阅读全文
posted @ 2013-03-06 14:38 狄大人 阅读(1065) 评论(0) 推荐(0) 编辑