var uri = “http://www.wrox.com/illegal value.htm#start”;//”http://www.wrox.com/illegal%20value.htm#start”alert(encodeURI(uri));//”http%3A%2F%2Fwww.wrox.com%2Fillegal%20value.htm%23start”alert(encodeURIComponent(uri));The URI methods encodeURI(), encodeURIComponent(), decodeURI(), anddecodeURICompone Read More
posted @ 2012-10-12 13:20 liuwei0514 Views(188) Comments(0) Diggs(0) Edit
http://elegantcode.com/2011/01/14/taking-baby-steps-with-node-js-debugging-with-node-inspector/ Read More
posted @ 2012-08-27 15:28 liuwei0514 Views(104) Comments(0) Diggs(0) Edit
bll.出库申请单管理.ChangeState()这个方法执行出库单的状态更改动作因为 每个bll都是单独的数据库连接 为了事务的一致我在 bll.出库单管理.出库()这个方法里直接操作出库申请单表的state字段而不是调用bll.出库申请单管理.ChangeState()然后 现在写销售单管理 销售单生成出库申请单当出库申请单状态更改时需要更改销售单的状态这样的 我就还要更改两处的代码bll.出... Read More
posted @ 2010-12-21 16:21 liuwei0514 Views(294) Comments(0) Diggs(0) Edit
1 把浮动在最上面的元素放在html代码的最后面 2 以下是正解 giving the parent element a higher z-index actual fixes the bug   http://brenelz.com/blog/squish-the-internet-explorer-z-index-bug/ 原因:“In Internet Explorer posit... Read More
posted @ 2010-12-07 21:53 liuwei0514 Views(220) Comments(0) Diggs(0) Edit
blowing in the wind 歌手:Bob Dylan How many roads must a man walk down Before they call him a man How many seas must a white dove sail Before she sleeps in the sand How many times must the cannon bal... Read More
posted @ 2010-11-26 21:29 liuwei0514 Views(216) Comments(0) Diggs(0) Edit
http://forums.asp.net/t/1183564.aspx 在这里提出了一个我也想问的问题 问题描述: bll 4个类 blla bllb bllc blld blld.f() { blla.f(); bllb.f(); bllc.f(); } 这里 bllc.f();发生异常要撤销bllb.f();blla.f(); 解决 1: http://forums.asp.ne... Read More
posted @ 2010-11-25 11:50 liuwei0514 Views(449) Comments(0) Diggs(0) Edit
y.Level.ToString().PadLeft(y.Level*2, (char)0xA0) + y.Name, 想了好久 终于找到了 Read More
posted @ 2010-11-23 21:56 liuwei0514 Views(119) Comments(0) Diggs(0) Edit
首先 一个生成Lambda表达式的静态类 public static class PredicateExtensions    {        public static Expression<Func<T, bool>> True<T>() { return f => true; }        public static Expressio... Read More
posted @ 2010-11-03 17:11 liuwei0514 Views(1198) Comments(1) Diggs(0) Edit
验证工作交给谁,service、controller、model? 交给 service 比如:添加用户 UserModel 有 Validate 方法 再去验证内部的各个字段什么的~~~ 具体的验证 用 asp.net mvc validation framework xVal ... Read More
posted @ 2010-10-25 16:37 liuwei0514 Views(195) Comments(0) Diggs(0) Edit
Membership.GetUser(user.ProviderUserKey.ToString()); Read More
posted @ 2010-10-12 15:49 liuwei0514 Views(295) Comments(0) Diggs(0) Edit