07 2017 档案

摘要:网上很多错误 的[text ='xxx'] ,我晕。 option 标签没有 text 属性。所以[]选取不到。 正确的: $("#yearCardTypeState option:contains(@Yeardata.CardType)").attr("selected", true); 不然旧换 阅读全文
posted @ 2017-07-26 11:12 越过那个限制 阅读(203) 评论(0) 推荐(0)
摘要:获得当前系统时间: DateTime dt = DateTime.Now;Environment.TickCount可以得到“系统启动到现在”的毫秒值DateTime now = DateTime.Now;Console.WriteLine(now.ToString("yyyy-MM-dd")); 阅读全文
posted @ 2017-07-25 18:12 越过那个限制 阅读(530) 评论(0) 推荐(0)
摘要:return ;只能跳出each方法 ,无法跳出aaa() function aaa{ var result = false; //非空 $("input[type='text']").each( function () { if ($(this).val().length <= 0) { pare 阅读全文
posted @ 2017-07-21 18:59 越过那个限制 阅读(155) 评论(0) 推荐(0)
摘要:var poject_Array = ""; $('input[name="yearCardPoject"]:checked').each(function () { poject_Array += $(this).val() + ",";//向数组中添加元素 }); 阅读全文
posted @ 2017-07-20 18:58 越过那个限制 阅读(145) 评论(0) 推荐(0)
摘要:String dateNow= DateTime.Now.ToString("yyyyMMddhhmmss"+ new Random().Next(1, 99)); //随机数 StringBuilder sqlStr = new StringBuilder(); //1.添加年卡基础信息,获得自增 阅读全文
posted @ 2017-07-20 18:56 越过那个限制 阅读(431) 评论(0) 推荐(0)
摘要:后台: //1.查询所有年卡类型 StringBuilder sqlStr = new StringBuilder(); sqlStr.Append(string.Format(" select Id,TypeName from tb_yearcard_cardtype where Merchant 阅读全文
posted @ 2017-07-19 18:49 越过那个限制 阅读(147) 评论(0) 推荐(0)
摘要:VS2015 ADO.NET无果后果断~! 动软生成:http://pan.baidu.com/s/1gfIf0ZL 阅读全文
posted @ 2017-07-13 18:37 越过那个限制 阅读(325) 评论(0) 推荐(0)
摘要:c#事件 委托: 1.类似观察者模式。 2.当某个对象(类),执行某个动作时,之前委托的事情会自动完成。 (如B,C订阅A的事件,当A执行某动作,B和C均会按照约定进行对应动作)//使用步骤: 1.定义 delegate委托类,event 事件 //首领A:举杯委托 public delegate 阅读全文
posted @ 2017-07-13 13:37 越过那个限制 阅读(180) 评论(0) 推荐(0)
摘要:namespace ConsoleApplication { class GenericDemo { public static void Test() { double[] numbers = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }; PrintArrayInfo(number 阅读全文
posted @ 2017-07-13 10:25 越过那个限制 阅读(479) 评论(0) 推荐(0)
摘要:实现技术: 存储过程 ,零时表(3) 一句话说完 :把父级查询下来的子级ID 保存成零时表,并且将符合子级ID数据添加到另一张零时表。 同时清空数据时需要使用到一张零时表作为容器; alter PROCEDURE sel_sum@a int ASBEGINselect id,nodename ,pi 阅读全文
posted @ 2017-07-12 17:26 越过那个限制 阅读(470) 评论(0) 推荐(0)
摘要:Ajax直接请求普通文件存在跨域无权限访问的问题,甭管你是静态页面、动态网页、web服务、WCF,只要是跨域请求,一律不准;Web页面上调用js文件时则不受是否跨域的影响(不仅如此,我们还发现凡是拥有"src"这个属性的标签都拥有跨域的能力,比如<script>、<img>、<iframe>)实现原 阅读全文
posted @ 2017-07-11 17:32 越过那个限制 阅读(658) 评论(0) 推荐(0)
摘要:1.继承Controller public class TestController : Controller2.编写控制器方法 // URL : test/Edit/1 [HttpPost]//http请求方式 public ActionResult Edit(int id, FormCollec 阅读全文
posted @ 2017-07-11 15:12 越过那个限制 阅读(530) 评论(0) 推荐(0)

点击右上角即可分享
微信分享提示
展开/收缩